Difference between revisions of "Obj.Create"
From OpenEUO
(Created page with " local oref = Obj.Create (str) Create a gui object of the given type as specified by the string str. e.g. local form = Obj.Create ("TForm") instantiates a TForm object and as...") |
(No difference)
|
Revision as of 18:11, 7 October 2010
local oref = Obj.Create (str)
Create a gui object of the given type as specified by the string str. e.g.
local form = Obj.Create ("TForm")
instantiates a TForm object and assigns form a pointer to this object. Access members, methods, and event handlers of an object using dot notation:
form.Caption = "Test" form.OnClose = function (pSender) Obj.Exit() return form.Show()
An object's set event handlers won't be active until the script enters an Obj.Loop call. See objects.txt in the openeuo distribution for available objects, their inheritance hierarchies, and associated members.