Obj.Create

From OpenEUO
Revision as of 19:11, 7 October 2010 by 76.184.213.234 (Talk) (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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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.

Obj.Loop

Obj.Free