| Directives |
|
| Formats | 1.
Invisible
COM Object:
DEF OBJECT com_id,objname$ 2. Visible COM Object: DEF OBJECT com_id,@(col,ln,wth,ht) { |=}objname$ 3.List Available Objects: DEF OBJECT com_id, "*" Where: |
|
| "*" | Asterisk displays registered COM controls. | |
| @(col,ln, | Numeric expressions. Column and line coordinates for top left corner, | |
| wth,ht) | width in number of columns and height in number of lines. | |
| com_ID | Numeric variable to receive a handle (memory pointer to object). | |
| objname$ | Name by which the COM object is registered in the Windows system registry subkey HKEY_CLASSES_ROOT. | |
| Description | The
DEF OBJECT directive is used to create a
new instance of a specified COM object. Upon successful
execution of DEF OBJECT, a reference to
the object objname$ will be placed into the
supplied numeric variable com_id. This is a feature of the ProvideX Event Handling Interface and Component Object Model (COM), an industry-standard technology used by applications to expose methods, properties, and events to development tools, macro languages, and other applications. For complete information on this subject, refer to the document Automation in ProvideX available for download from the PVX Plus website. |
|
| Format 1 | Define Invisible COM
Object
Use this format to create a link to an invisible OLE/OCX/ActiveX object. This format associates the object with the current window, yet it is hidden from view; e.g., 0010 DEF OBJECT this_com_id,"Mabry.SoundX" Once the definition is complete, this_com_idwill contain a handle to the object. This handle will be used to get and set properties and methods and service events. Note that since the value returned in com_id is a handle (memory pointer) to the object, it should not be changed by the application. |
|
| Format 2 | Define Visible COM
Object
This format defines a visible object and associates it with a location in the current window; e.g.,
|
|
| Format 3 | List Available Objects
Use this format to display a pop-up window listing the COM controls currently installed on the system. |
|
| See Also | DELETE OBJECT Remove Windows Object ON EVENT Event Processing Apostrophe Operator Automation in ProvideX - COM Interface Documentation |
|
| Examples |
|
|