Purpose | With
Control
you can embed an ActiveX control into a SAP GUI window. |
||||||||||||||||||||||||
Example |
Control
(10.5,40.2) (20.5,80)
progID="AcroPDF.PDF"
name="cid"
The ADOBE PDF reader is embedded into the screen.
If the GuiXT script variable V[cid] contains a valid reference to a PDF reader, this control is shown. Otherwise a new ActiveX object of class "AcroPDF.PDF" is created and the reference to the new object is stored in
V[cid]. |
||||||||||||||||||||||||
Format |
Control
(row1,column1)
(row2,colomn2)
progID="ProgId"
name="vname" With (row1,column1) (row2,colomn2) you specify the upper left hand and lower right hand corner; you may use decimal numbers as coordinates. For the progID= parameter the following formats are supported:
For communication with the control you can call VB.NET, JavaScript or VBScript functions; please see CallVB, CallJS and CallVBS for details. The name= parameter specifies a GuiXT variable that receives the object handle after creating the control. You can pass the variable to VB.NET, JavaScript or VBScript functions in order to access object properties and call up its methods. In order to handle the control events you can use the SetEventHandler() function of the "guixt" object in JavaScript / VBScript; see Object "guixt" in VBScript. After a Control command you can use if Q[ok] to query whether the control has been created. For HTML pages displayed
with the Control statement you may use
ConectHTML
in order to read and write attributes in the HTML page. Our
Tips,
Tricks and Samples contain examples for the communication between the
HTML page and GuiXT. |
||||||||||||||||||||||||
Additional options |
|
||||||||||||||||||||||||
Tips & Tricks |
|
||||||||||||||||||||||||
Components | GuiXT + Controls |