DEFINE VARIABLE chCSSpin AS COM-HANDLE. /* ActiveX Control */
DEFINE VARIABLE CtrlFrame AS HANDLE. /* Control-Frame Widget */ DEFINE VARIABLE chCtrlFrame AS COM-HANDLE. /* Control-Frame COM Object */ DEFINE VARIABLE OCXFile AS CHARACTER /* .wrx file pathname */ /* Define a FRAME widget named 'Foo' */ /* Create OCX Container */ CREATE CONTROL-FRAME CtrlFrame ASSIGN / FRAME = FRAME Foo:HANDLE. CtrlFrame:NAME = "CtrlFrame":U. /* Load (instantiate) ActiveX control */ OCXFile = SEARCH ( "csspinapp.wrx":U ). chCtrlFrame = CtrlFrame:COM-HANDLE. chCtrlFrame:LoadControls( OCXFile, "CtrlFrame":U ). chCSSpin = chCtrlFrame:CSSpin /* Control handle via the Control Name */ |