Advanced PowerBuilder

HomePrevious Lesson: PasteLink()
Next Lesson: In-Place Editing & OLE Server Menus

Editing/Printing the Object In the OLE Control

Executes the verb that is supported by the server. The verbs supported by the OLE server you can find out from two sources. One from the OLE Server documentation and other is from the Registration database. For example, Paintbrush supports one verb, that is "Edit". DoVerb() takes a number as the argument. Generally argument 1 is for "Edit". For example, you placed a bitmap in the OLE control and called:
OLEControlName.DoVerb(1)

This will invoke PaintBrush in its own window. Calling this function with 1 as argument is equal to activating the OLE Server, however, there is a small difference. When you activate the server with this function, the OLE Server always activates off site, even though the server supports OLE (For example: Word 6.0). This function is basically intended for OLE 1.0 servers.

There are few more functions related to the OLE control. These are explained in detail in the advanced section of OLE, i.e., next session. Now let us see how the menus affect when we activate the OLE Server in-place.
HomePrevious Lesson: PasteLink()
Next Lesson: In-Place Editing & OLE Server Menus