ButtonMenuTool property (TAnnMenu)

C++ Builder example

Delphi example

 

Builder Syntax

int ButtonMenuTool [int iButtonIndex][int iToolIndex]

Delphi Syntax

ButtonMenuTool [iButtonIndex: integer; iToolIndex: integer]: integer

Overview

Refer to Annotation Toolbar

Remarks

(Document/Medical only) Contains the tool associated with the specified menu item of the specified annotation toolbar button.

For example, if ButtonMenuTool [2, 1] contains the value ANNTOOL_POINT, then the second menu item of the third button of the annotation toolbar will be associated with the Point Tool. Therefore, when the user clicks on the third button of the annotation toolbar a menu will be displayed with all the tools associated with that button. The second menu item will be the Point Tool.

Use the ButtonMenuText and ButtonMenuTextID properties to set the text for the menu item.

The ButtonMenuXXX properties are only used for buttons that are associated with multiple tools.

See Also

Elements

AutoSetTool property, ButtonBitmapDown property, ButtonBitmapUp property, ButtonColumns property,ButtonCount property, ButtonMenuText property, ButtonMenuTextID property, ButtonRows property, ButtonTool property, ButtonToolCount property, ButtonToolTipText property, ButtonToolTipTextID property, ButtonVisible property, CreateTB method, h_Wnd property, Tool property, Visible property

Topics

Annotations (Document/Medical only): Automation