ButtonMenuTool property (ILEADRasterAnnToolBar)

Visual Basic example

Visual C++ 5.0 example

Delphi 4 example

C++ Builder example

 

Syntax

short ButtonMenuTool (short iButtonIndex, short iToolIndex);

Overview

Refer to Annotation Toolbar.

Remarks

Contains the tool associated with the specified menu item of the specified annotation toolbar button.

For example, if ButtonMenuTool(2, 1) contains the value ANN_TOOL_POINT, then the second menu item of the button at the position (iButtonIndex = 2) of the annotation toolbar will be associated with the Point Tool. Therefore, when the user clicks on the button at the position (iButtonIndex = 2) 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.

You must 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

AnnGetFillModeExt method, AnnSetFillModeExt method, AnnFillMode property, AnnAlpha property, AnnSetOptions method, AnnGetOptions method, AnnSetTextOptions method, AnnGetTextOptions method, AnnShowText property, AnnShowBorder property, AnnTextColor property, AnnAutoSnapCursor property, AnnTextEdit method, AnnShowRotateHandles property, AnnGetRotateOptions method, AnnSetRotateOptions method, AnnCalibrateRuler method, ButtonBitmapDown property, ButtonBitmapDown property, ButtonColumns property,ButtonCount property, ButtonMenuText property, ButtonMenuTextID property, ButtonRows property, ButtonTool property, ButtonToolCount property, ButtonToolTipText property, ButtonToolTipTextID property, ButtonVisible property, Create method, ParenthWnd property, Tool property, Visible property

Topics

Annotations (Document/Medical only): Automation