When you create an OLE control and insert an object, PowerBuilder activates the server application to allow you to modify the object. After you deactivate it (by clicking outside the object’s borders in the Layout view), you can use the control’s property sheets to set up the control.
To specify the control’s appearance and behavior:
Double-click the control, or select Properties from the control’s pop-up menu.
In the Properties view, give the control a name that is relevant to your application.
You will use this name in scripts. The default name is ole_ followed by a number.
Specify a value for Display Name for use by the OLE server. The OLE server can use this name in window title bars.
Specify the control’s appearance and behavior by choosing appropriate settings in the Properties view.
In addition to the standard Visible, Enabled, Focus Rectangle, and Border properties, which are available for most controls, there are several options that control the object’s interaction with the server:
Option |
Meaning |
---|---|
Activation |
How the user activates the control. Options are:
The control can always be activated programmatically, regardless of the Activation setting. |
Display Type |
What the control displays. Options are:
|
Contents |
What the user can insert in the control at runtime. Options are:
Setting Contents changes the value of the ContentsAllowed property. |
Link Update |
When the object in the control is linked, the method for updating link information. Options are:
Setting Link Update changes the value of the LinkUpdateOptions property. |
Size Mode |
How the object is displayed in the container. Options are:
|