Edits an OLE object contained in an OLE control. To perform this operation, OLEActivate
invokes the OLE server that created the object. The OLE server is started and the object contained in the OLE control is edited.
Remark: A double click performed in the OLE control and OLEActivate have the same effect.
// Create a Paint Brush object
// Start Paint Brush to edit the object
<Result> = OLEActivate(<OLE control> [, <Locks>])
- True if the object was edited,
- False otherwise (the OLE control contains no object for example).
<OLE control>: Control name
Name of the OLE control associated with the OLE object. If this parameter corresponds to an empty string (""), the control used will be the control to which the current event belongs.
<Locks>: Optional boolean
- True (default value): Locking server.
The window containing the OLE control cannot be in edit as long as the user has not exited from the server.
- False: Non-locking server.
The user can perform inputs in the window containing the OLE control while the server is still started. Used to play a verb with OLEPlay.
Only OLE version 1 is supported.