DEFINE VARIABLE CtrlFrame AS HANDLE NO-UNDO.
DEFINE VARIABLE chCtrlFrame AS COM-HANDLE NO-UNDO. DEFINE VARIABLE chCSSpin AS COM-HANDLE NO-UNDO. DEFINE VARIABLE chCollection AS COM-HANDLE NO-UNDO. /* Create frame Foo and instantiate control */ CREATE CONTROL-FRAME CtrlFrame ASSIGN FRAME = FRAME Foo:HANDLE NAME = "CtrlFrame":U. chCtrlFrame = CtrlFrame:COM-HANDLE. chCtrlFrame:LoadControls("csspinapp.wrx":U, "CtrlFrame":U). chCollection = chCtrlFrame:controls. chCSSpin = chCollection:Item(1). chCSSpin:ShadeColor = RGB-VALUE(0,128,0). RELEASE OBJECT chCollection. /* Do some more stuff ... WAIT-FOR ... */ DELETE WIDGET CtrlFrame. |