XIDE Painter and Tabcontrols
Posted: Thu Jul 12, 2018 2:05 pm
Hi Chris,
it seems that each time XIDE generates the class and the constructor, the code for the pages is not created.
in my sample there are 3 pages:
oTPTABCONTROL1_PAGE1
oTPTABCONTROL1_PAGE2
oTPTABCONTROL1_PAGE3
when i add the missing code manually all works as expected again. Before i dive in deeper, are there any known issues when tabcontrols are involved ?
regards
Karl-Heinz
it seems that each time XIDE generates the class and the constructor, the code for the pages is not created.
in my sample there are 3 pages:
oTPTABCONTROL1_PAGE1
oTPTABCONTROL1_PAGE2
oTPTABCONTROL1_PAGE3
when i add the missing code manually all works as expected again. Before i dive in deeper, are there any known issues when tabcontrols are involved ?
regards
Karl-Heinz
Code: Select all
--------------------------------------
---------- VO - created code --------
--------------------------------------
CLASS Tab INHERIT DATAWINDOW
PROTECT oDCTabControl1 AS TABCONTROL
PROTECT oTPTABCONTROL1_PAGE1 AS TABCONTROL1_PAGE1
PROTECT oTPTABCONTROL1_PAGE2 AS TABCONTROL1_PAGE2
PROTECT oTPTABCONTROL1_PAGE3 AS TABCONTROL1_PAGE3
//{{%UC%}} USER CODE STARTS HERE (do NOT remove this line)
----------------------------------------------------------------
METHOD Init(oWindow,iCtlID,oServer,uExtra) CLASS Tab
SELF:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER:Init(oWindow,ResourceID{"Tab",_GetInst()},iCtlID)
oDCTabControl1 := TabControl{SELF,ResourceID{TAB_TABCONTROL1,_GetInst()}}
oDCTabControl1:HyperLabel := HyperLabel{#TabControl1,NULL_STRING,NULL_STRING,NULL_STRING}
SELF:Caption := "DataWindow Caption"
SELF:HyperLabel := HyperLabel{#Tab,"DataWindow Caption",NULL_STRING,NULL_STRING}
IF !IsNil(oServer)
SELF:Use(oServer)
ENDIF
oTPTABCONTROL1_PAGE1 := TABCONTROL1_PAGE1{SELF, 0}
oDCTabControl1:AppendTab(#TABCONTROL1_PAGE1,"Page",oTPTABCONTROL1_PAGE1,0)
oTPTABCONTROL1_PAGE2 := TABCONTROL1_PAGE2{SELF, 0}
oDCTabControl1:AppendTab(#TABCONTROL1_PAGE2,"Page",oTPTABCONTROL1_PAGE2,0)
oTPTABCONTROL1_PAGE3 := TABCONTROL1_PAGE3{SELF, 0}
oDCTabControl1:AppendTab(#TABCONTROL1_PAGE3,"Page",oTPTABCONTROL1_PAGE3,0)
oDCTabControl1:SelectTab(#TABCONTROL1_PAGE1)
SELF:PostInit(oWindow,iCtlID,oServer,uExtra)
RETURN SELF
------------------------------------------------------------
------------ XIDE generated code after Painter changes ----
As you see the code for the 3 Pages is missing
-------------------------------------------------------------
PARTIAL CLASS Tab INHERIT DATAWINDOW
PROTECT oDCTabControl1 AS TABCONTROL
// User code starts here (DO NOT remove this line) ##USER##
------------------------------------------
CONSTRUCTOR(oWindow,iCtlID,oServer,uExtra)
SELF:PreInit(oWindow,iCtlID,oServer,uExtra)
SUPER(oWindow , ResourceID{"Tab" , _GetInst()},iCtlID)
SELF:oDCTabControl1 := TABCONTROL{SELF , ResourceID{ TAB_TABCONTROL1 , _GetInst() } }
SELF:oDCTabControl1:HyperLabel := HyperLabel{#TabControl1 , NULL_STRING , NULL_STRING , NULL_STRING}
SELF:Caption := "DataWindow Caption"
SELF:HyperLabel := HyperLabel{#Tab , "DataWindow Caption" , NULL_STRING , NULL_STRING}
IF !IsNil(oServer)
SELF:Use(oServer)
ENDIF
SELF:PostInit(oWindow,iCtlID,oServer,uExtra)
RETURN