Dialog pseudo-object

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > DIALOGS > Dialog Creation >

Dialog pseudo-object


While thinBasic allows you to define and use dialogs via Win32-like low level approach, it also introduces the concept of the dialog Pseudo-objects.


These entities behave like objects (have methods and properties), allow processing of events and make the whole process of dialog manipulation much easier, than the low level Win32 route:


frmMain.X = 10

frmMain.Y = 10

frmMain.Title = "Hello World"


How do you create dialog pseudo-object variable?


They are created for you in the following cases:

oDIALOG NEW created dialog from #RESOURCE (then dialog pseudo-object named as the dialog is created for given dialog)

oDIALOG NEW has NAME parameter specified (then dialog pseudo-object named as NAME specifies is created for given dialog)