Advanced PowerBuilder

HomePrevious Lesson: Display Type
Next Lesson: Link Update

Activation

This allows you to specify how the OLE Server application is activated. The default method is Double Click, but you can change it to Get Focus or Manual. If you specify Manual, then you have to take care of activating the server programmatically.
result = ole_1.Activate(Offsite!) 

Activate is the function you need to call to invoke the OLE server. The Offsite! enumerated variable opens the server in its own window. You can choose to have the server open in its own window or in the same window as your PowerBuilder application, by specifying appropriate argument to Activate function. You can invoke the OLE server in-place only when the content is embedded. While placing the OLE control, if you choose either 'Create From File' without selecting 'Link' option or 'Create New', the content is embedded. Linked objects can be edited only offsite always. When you choose 'Link' while painting the OLE control and call the Activate() with InPlace! argument, PowerBuilder simply ignores the argument and invokes the OLE server off-site. When OLE Server invokes for in-place editing, the existing PowerBuilder application menus and OLE server menus would merge. This is explained in detail in the next section 'OLE Server Menus'.
HomePrevious Lesson: Display Type
Next Lesson: Link Update