As most ActiveX type libraries include the OLE Automation library, which contains standard interfaces, the STDOLE2.TLB OLE Automation library is preloaded into the JADE RootSchema. You can create instances of the OLE Automation object and then manipulate them in the same way you can any other imported ActiveX object.
The preloaded OLE Automation type library created the standard font and picture JadeAutoFont and JadeAutoPicture objects as subclasses of OLE_Automation in the ActiveXAutomation superclass and their corresponding IJadeAutoFont, IJadeAutoFontEvents, and IJadeAutoPicture interface subclasses of the
The following example shows the creation of a font object and the setting of font properties.
createAFont(); vars autoFont : JadeAutoFont; begin create autoFont; write autoFont.bold; autoFont.bold := true; write autoFont.bold; epilog delete autoFont; end;
The JADE methods that are provided for the JadeAutoPicture and IJadeAutoPicture classes preloaded into the RootSchema with the OLE Automation object are summarized in the following table.
Method | Description |
---|---|
|
Creates a picture object from an external file |
|
Creates a picture object from a JADE binary |
|
Saves the image of a picture to the specified external file |