<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Pseudo-object |
While thinBasic allows you to define and manipulate controls via procedural commands, it also introduces the concept of the Control Pseudo-objects.
These entities behave like objects (have methods and properties), allow processing of events and make the whole process of control manipulation much easier, than the low level Win32 route:
myButton.X = 10
myButton.Y = 10
myButton.Text = "Open"
How do you create control pseudo-object variable?
They are created for you in the following cases:
oDIALOG NEW created dialog from #RESOURCE (then control pseudo-objects named as the controls in the resource for given dialog are created)
oControl Add ... has NAME parameter specified (then control pseudo-object named as NAME specifies is created for given control)