Changing the object in an OLE control – PB Docs 126
Changing the object in an OLE control PowerBuilder provides several functions for changing the object in an OLE control. The function you choose depends on whether you want the user to choose an object and whether the object should be linked or embedded, as shown in Table 19-2. Table 19-2: Functions for changing object in…
Activating the OLE object – PB Docs 126
Activating the OLE object Generally, the OLE control is set so that the user can activate the object by double-clicking. You can also call the Activate function to activate the object in a script. If the control’s Activation property is set to Manual, you have to call Activate to start a server editing session:
1 |
ole_1.Activate(InPlace!) |
…
Modifying an object in an OLE control – PB Docs 126
Modifying an object in an OLE control When an OLE object is displayed in the OLE control, the user can interact with that object and the application that created it (the server). You can also program scripts that do the same things the user might do. This section describes how to: Activate the OLE object…
Return values from ancestor scripts – PB Docs 126
Return values from ancestor scripts If you want to perform some processing in an event in a descendent object, but that processing depends on the return value of the ancestor event script, you can use a local variable called AncestorReturnValue that is automatically declared and assigned the return value of the ancestor event. The first…
Menus for in-place activation – PB Docs 126
Menus for in-place activation When an object is activated in place, menus for its server application are merged with the menus in your PowerBuilder application. The Menu Merge Option settings in the Menu painter let you control how the menus of the two applications are merged. The values are standard menu names, as well as…
Offsite or in-place activation – PB Docs 126
Offsite or in-place activation During execution, when a user activates the object in the OLE control, PowerBuilder tries to activate an embedded object in place, meaning that the user interacts with the object inside the PowerBuilder window. The menus provided by the server application are merged with the PowerBuilder application’s menus. You can control how…
Referencing parts of a graph – PB Docs 126
Referencing parts of a graph You use dot notation to reference these display properties. For example, one of the properties of a graph’s title is whether the text is italicized or not. That information is stored in the boolean Italic property in the TitleDispAttr property of the graph. For example, to italicize title of graph…
Accessing data properties – PB Docs 126
Accessing data properties To access properties related to a graph’s data during execution, you use PowerScript graph functions. The graph functions related to data fall into several categories: Functions that provide information about a graph’s data Functions that save data from a graph Functions that change the color, fill patterns, and other visual properties of…
Programmable OLE Objects – PB Docs 126
Programmable OLE Objects You do not need to place an OLE control on a window to manipulate an OLE object in a script. If the object does not need to be visible in your PowerBuilder application, you can create an OLE object independent of a control, connect to the server application, and call functions and…
Assignments among OLEControl, OLECustomControl, and OLEObject datatypes – PB Docs 126
Assignments among OLEControl, OLECustomControl, and OLEObject datatypes You cannot assign an OLE control (object type OLEControl) or ActiveX control (object type OLECustomControl) to an OLEObject. If the vendor of the control exposes a programmatic identifier (in the form vendor.application), you can specify this identifier in the ConnectToNewObject function to connect to the programmable interface without…