Lade...
 

CreateControl

CreateControl

CreateControl(windowID, widgetID), CreateControl(, widgetID), CreateControl

Parameter: Bezeichner eines Windows und eines Control-Widgets

Stack
Stack Position Beschreibung
Stack(In) Top STRING (die Prog-ID)
Stack(Out) Top  

Die auf dem Stack übergebene ProgID wird verwendet um das Control-Widget mit dem entsprechenden ActiveX-Control zu instantiieren.

Code-Beispiel:
Window(XMLExport, , , 0, 0, 0, T("&HTML Viewer", "&HTML viewer"))
[ INITIALIZE: Var(xmlFilename) NULL -> xmlFilename

Var(htmlFilename) NULL -> htmlFilename

// Try to create control

"DHTMLEdit.DHTMLEdit" CreateControl(, HTMLDisplay)

Widget(, HTMLDisplay) Call(IsValid) ifnot { //not installed (or invalid)

"DHTMLEdit.DHTMLEdit" T("Control (Zusatzmodul) \"%s\" nicht (korrekt) installiert! Keine Anzeige/Transformation möglich", "control (component)

\"%s\" isn't correct installed! No display/transformation available") String(STACK) Attention

}

]
{
// Control for displaying HTML after transformation
Control(HTMLDisplay, 10, 10, 100, 100)
}