OLEControl control
An OLEControl placed in a window can contain an object, such as a
spreadsheet or word processing document, that was created by an OLE-aware
application. The PowerBuilder application’s user can activate the object
and edit it in the application in which it was created (the server
application).
OLE controls are displayed in the OLE tab of the Browser as
Insertable Objects.
For more information about using OLE in an application, see the section called “Using OLE in an Application” in Application Techniques.
Properties
|
OLEControl property |
Datatype |
Description |
|---|---|---|
|
String |
A description of the control and/or its purpose for |
|
|
String |
A label that briefly describes the control, such as |
|
|
AccessibleRole (enumerated) |
Describes what kind of user interface element the |
|
|
omActivation |
Specifies how the OLE object will be |
|
|
Long |
Specifies the numeric value of the background |
|
|
BinaryIndex |
Integer |
Internal use only. |
|
BinaryKey |
String |
Internal use only. |
|
Boolean |
Specifies whether the control has a border. Values TRUE — Control has a border. FALSE |
|
|
BorderStyle (enumerated) |
Specifies the style of the border of the control. StyleBox! StyleLowered! StyleRaised! StyleShadowBox! |
|
|
Boolean |
Specifies whether PowerBuilder moves the control to TRUE FALSE — Control not moved |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing |
|
ClassLongName |
String |
(Read-only) The long name for the server |
|
ClassShortName |
String |
(Read-only) The short name for the server |
|
omContentsAllowed |
Specifies whether the OLE object in the control |
|
|
String |
User-readable name for your OLE control when the |
|
|
omDisplayType |
Specifies how the OLE object will be displayed in |
|
|
DocFileName |
String |
(Read-only) The name of the file containing the |
|
Boolean |
Specifies whether PowerBuilder puts the control TRUE — FALSE — When the control is clicked, the |
|
|
String |
Specifies the name of the stock icon or the file When the user drags the control, the |
|
|
Boolean |
Specifies whether the control is enabled (can be TRUE — Control can be FALSE — Control cannot be |
|
|
Boolean |
Specifies whether a dotted rectangle (the focus TRUE — Control framed when it has FALSE — Control not framed when it has |
|
|
Integer |
Specifies the height of the control, in |
|
|
IsDragTarget |
Boolean |
Specifies whether an OLE object can be dropped on TRUE — OLE object can be FALSE — OLE object cannot be |
|
LinkItem |
String |
(Read-only) The entire link name of the item to |
|
omLinkUpdateOptions |
Specifies how a linked object in the control is |
|
|
Object |
omObject |
Used in scripts to apply server commands to the |
|
ObjectData |
Blob |
If the object is embedded, the object itself is If the |
|
ParentStorage |
omStorage |
(Read-only) Specifies the parent |
|
String |
Specifies the name of the stock pointer or the file |
|
|
Boolean |
Specifies whether the control is resizable. Values TRUE — Control is resizable. FALSE |
|
|
SizeMode |
SizeMode (enumerated) |
Specifies the size mode for the OLE document. Clip! — The object’s image displays Stretch! — The |
|
Integer |
Specifies tab value of the control within the |
|
|
String |
Specifies the tag value assigned to the |
|
|
Boolean |
Specifies whether the control is visible. Values TRUE — Control is visible. FALSE |
|
|
Integer |
Specifies the width of the control, in PowerBuilder |
|
|
Integer |
Specifies the X position (the distance from the |
|
|
Integer |
Specifies the Y position (the distance from the top |
Events
|
OLEControl event |
Occurs |
|---|---|
|
When the control is clicked (selected or |
|
|
Just before a window is removed from display |
|
|
Immediately before the Open event occurs in the |
|
|
When the server application notifies the control |
|
|
Immediately after the Close event occurs in the |
|
|
When the control is double-clicked (and possibly |
|
|
When a dragged control is dropped on the |
|
|
When a dragged control enters the |
|
|
When a dragged control leaves the |
|
|
When a dragged control is within the |
|
|
During OLE automation when an error |
|
|
During OLE automation when the OLE server generates |
|
|
Just before the control receives focus (and |
|
|
When the user presses the F1 key or drags the |
|
|
When the control loses focus (becomes |
|
|
When an operating environment message occurs that |
|
|
When an OLE Server supporting notifications sends |
|
|
When an OLE Server supporting notifications sends |
|
|
When the right mouse button is pressed in the |
|
|
When the server application notifies the control |
|
|
When the server application notifies the control |
|
|
When the server application saves the object in the |
|
|
When the server application notifies the control |
Functions
|
OLEControl function |
Datatype returned |
Description |
|---|---|---|
|
Integer |
Activates the object server either in place or |
|
|
String |
Returns the name assigned to the |
|
|
Integer |
Releases the OLE object and deletes references to |
|
|
Integer |
Copies the contents of the control to the |
|
|
Integer |
Copies the contents of the control to the clipboard |
|
|
Integer |
Executes the specified verb |
|
|
Integer |
Puts the object into drag mode |
|
|
Integer |
Creates a reference to a context-specific instance |
|
|
Integer |
Returns data in a caller-supplied format from an |
|
|
Integer |
Returns a pointer to the underlying OLE |
|
|
PowerObject |
Returns a reference to the name of the parent |
|
|
Integer |
Makes the control invisible |
|
|
Integer |
Inserts a new object created from a class |
|
|
Integer |
Inserts a new object where the source is a template |
|
|
Integer |
Presents the user with a standard dialog box and |
|
|
Integer |
Links to a file and (optionally) an item within the |
|
|
Integer |
Moves the control to a specified |
|
|
Integer |
Opens a document file and loads the object into the |
|
|
Integer |
Pastes the contents of the clipboard into the |
|
|
Integer |
Pastes a link to the contents of the clipboard into |
|
|
Integer |
Presents a dialog box allowing the user to select |
|
|
Integer |
Returns the distance of the pointer from the left |
|
|
Integer |
Returns the distance of the pointer from the top of |
|
|
Boolean |
Adds an event to the end of the message queue for |
|
|
Integer |
Prints the control |
|
|
Integer |
Releases the pointer to the underlying OLE |
|
|
Integer |
Changes the size of the control |
|
|
Integer |
Saves an object previously loaded from a |
|
|
Integer |
Saves the contained object as a member in the |
|
|
Integer |
Sets the internal state of the control (updates |
|
|
Integer |
Sends data in a caller-supplied format to an OLE |
|
|
Integer |
Sets focus to the control |
|
|
Integer |
Specifies the position of the control in the |
|
|
Integer |
Controls automatic redrawing of the control after |
|
|
Integer |
Makes the control visible |
|
|
Integer |
Triggers a specific event for the control and |
|
|
Object |
Returns the type of the control |
|
|
Integer |
Invokes the OLE dialog to update link information |