NextPrevUpTopContentsIndex

ole-control-add-verbs

Function
Summary

Adds to the menu entries for the "verbs" that a component in an ole-control-pane supports.

Signature

ole-control-add-verbs pane menu item-identifier

Arguments

pane

An ole-control-pane.

menu

A menu.

item-identifier

A string or symbol.

Description

The function ole-control-add-verbs adds to the menu entries for the "verbs" that the component supports. The ole-control-pane pane must have an object already, and the menu menu must have already been created, so ole-control-add-verbs is typically called in the popup-callback of menu .

item-identifier identifies an item in the menu or a component in the menu (but not in a sub-menu), either by being eq to the name of the item or equalp to the title of the item. If the item is found, it is replaced either by a sub-menu with the verbs that the object supports, or, if the object supports only one verb, by an entry for this.

When the user selects an added menu item, the verb is passed to the object (by a call to IOleObject::DoVerb ).

Note: this function is implemented only in LispWorks for Windows. Load the functionality by (require "embed") .

Example

See the example in examples/com/ole/simple-container/doc-viewer-pair.lisp

See also

menu
ole-control-pane


LispWorks CAPI Reference Manual - 17 Mar 2008

NextPrevUpTopContentsIndex