ButtonTool property (TAnnMenu)

C++ Builder example

Delphi 4.0 example

 

Builder Syntax

int ButtonTool [int iButtonIndex]

Delphi Syntax

ButtonTool [iButtonIndex: Integer]: Integer

Overview

Refer to Annotation Toolbar

Remarks

(Document/Medical only) Contains the tool associated with the specified button of the annotation toolbar. This is actually an array of values that indicates the tools associated with every button in the annotation toolbar.

If ButtonToolCount Property for the specified button is one, then the button has one tool associated with it, and the ButtonTool property and the Tool property contain the ANNTOOL_XXX constant corresponding to that tool.

If ButtonToolCount for the specified button is >1 then there are several tools associated with the specified button. In that case, ButtonTool () and the Tool property contain the ANNTOOL_XXX constant corresponding to the currently selected tool. When the user clicks on a button having more than one tool, a menu is displayed. The ButtonMenuXXX properties describe the menu items and the tools associated with the specified button.

For example, if ButtonToolCount Property [2] contains the value 1, then there is only one tool associated with the third button of the annotation toolbar. The constant for that tool is contained in ButtonTool [2].

If ButtonToolCount Property [2] contains the value 3, then there are three tools associated with the third button of the annotation toolbar. Clicking on this button will display a menu. The text for the menu is set in the ButtonMenuText Property and ButtonMenuTextID Property properties. The tools associated with the menu are set in the ButtonMenuTool property.

See Also

Elements

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

Topics

Annotations (Document/Medical only): Automation