hmischel@diligentsystems.com
2016-03-11, 12:12
Hi,
I have created a class based on a section. Like so.
define class contTopStatusBar as container
layout = "vertical"
fixedheight = 40
backcolor = "white"
enddefine
This works fine.
However, I want the class to have certain UI objects in it by default.
But I can't seem to get that working.
I have tried different ways to get this working. Does "this" work in class based on container?
define class contTopStatusBar as container
layout = "vertical"
fixedheight = 40
backcolor = "white"
this.addObject("buttonTest","commandbutton")
enddefine
Thanks.
Herb
I have created a class based on a section. Like so.
define class contTopStatusBar as container
layout = "vertical"
fixedheight = 40
backcolor = "white"
enddefine
This works fine.
However, I want the class to have certain UI objects in it by default.
But I can't seem to get that working.
I have tried different ways to get this working. Does "this" work in class based on container?
define class contTopStatusBar as container
layout = "vertical"
fixedheight = 40
backcolor = "white"
this.addObject("buttonTest","commandbutton")
enddefine
Thanks.
Herb