This is just a dummy app, but...
Posted: Mon Mar 04, 2019 6:26 am
This is ALL the code. A fixedtext on a datrawindow - simple right? :unsure: :unsure: :unsure:
// Application : XSharpRuntimeApp1
// File1.prg , Created : 4/3/2019 9:54 AM
// User : Jeff
PARTIAL CLASS DATAWINDOW1 INHERIT DATAWINDOW
PROTECT oDCFixedText1 AS FIXEDTEXT
// User code starts here (DO NOT remove this line) ##USER##
CONSTRUCTOR(oWindow,iCtlID,oServer,uExtra)
LOCAL oFont AS Font
SELF:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER(oWindow , ResourceID{"DATAWINDOW1" , _GetInst()},iCtlID)
SELF:oDCFixedText1 := FIXEDTEXT{SELF , ResourceID{ DATAWINDOW1_FIXEDTEXT1 , _GetInst() } }
SELF:oDCFixedText1:TextColor := Color{ 255 , 0 , 0 }
oFont := Font{ , 15.75 , "Microsoft Sans Serif" }
oFont:Bold := TRUE
oFont:Italic := TRUE
SELF:oDCFixedText1:Font( oFont )
SELF:oDCFixedText1:HyperLabel := HyperLabel{#FixedText1 , "My First attempt with X#" , NULL_STRING , NULL_STRING}
SELF:Caption := "DataWindow Caption"
SELF:HyperLabel := HyperLabel{#DATAWINDOW1 , "DataWindow Caption" , NULL_STRING , NULL_STRING}
IF !IsNil(oServer)
SELF:Use(oServer)
ENDIF
SELF:PostInit(oWindow,iCtlID,oServer,uExtra)
RETURN
END CLASS
STATIC DEFINE DATAWINDOW1_FIXEDTEXT1 := 100
Error is:
error XS0246: The type or namespace name 'DATAWINDOW' could not be found (are you missing a using directive or an assembly reference?) 4,1 File1.prg XSharpRuntimeApp1
error XS0246: The type or namespace name 'FIXEDTEXT' could not be found (are you missing a using directive or an assembly reference?) 5,1 File1.prg XSharpRuntimeApp1
Compilation failed (2 errors)
WTH could possibly be wrong with this please?
// Application : XSharpRuntimeApp1
// File1.prg , Created : 4/3/2019 9:54 AM
// User : Jeff
PARTIAL CLASS DATAWINDOW1 INHERIT DATAWINDOW
PROTECT oDCFixedText1 AS FIXEDTEXT
// User code starts here (DO NOT remove this line) ##USER##
CONSTRUCTOR(oWindow,iCtlID,oServer,uExtra)
LOCAL oFont AS Font
SELF:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER(oWindow , ResourceID{"DATAWINDOW1" , _GetInst()},iCtlID)
SELF:oDCFixedText1 := FIXEDTEXT{SELF , ResourceID{ DATAWINDOW1_FIXEDTEXT1 , _GetInst() } }
SELF:oDCFixedText1:TextColor := Color{ 255 , 0 , 0 }
oFont := Font{ , 15.75 , "Microsoft Sans Serif" }
oFont:Bold := TRUE
oFont:Italic := TRUE
SELF:oDCFixedText1:Font( oFont )
SELF:oDCFixedText1:HyperLabel := HyperLabel{#FixedText1 , "My First attempt with X#" , NULL_STRING , NULL_STRING}
SELF:Caption := "DataWindow Caption"
SELF:HyperLabel := HyperLabel{#DATAWINDOW1 , "DataWindow Caption" , NULL_STRING , NULL_STRING}
IF !IsNil(oServer)
SELF:Use(oServer)
ENDIF
SELF:PostInit(oWindow,iCtlID,oServer,uExtra)
RETURN
END CLASS
STATIC DEFINE DATAWINDOW1_FIXEDTEXT1 := 100
Error is:
error XS0246: The type or namespace name 'DATAWINDOW' could not be found (are you missing a using directive or an assembly reference?) 4,1 File1.prg XSharpRuntimeApp1
error XS0246: The type or namespace name 'FIXEDTEXT' could not be found (are you missing a using directive or an assembly reference?) 5,1 File1.prg XSharpRuntimeApp1
Compilation failed (2 errors)
WTH could possibly be wrong with this please?