OnButtonClick Event (AToolBar)

Occurs when the mouse button is pressed and released upon any of the toolbar's button objects.

Syntax

Object.OnButtonClick(tbrb)

The OnButtonClick event syntax has the following parts:

 

Name

Type

Description

Object

AToolBar

AToolBar control

tbrb

AToolBarButton

AToolBarButton object

Comments

A mouse button is double-clicked when the user presses and releases, then presses and releases the mouse button again, within a time interval set in Windows as the double-click speed of the mouse.

Example

tbr1.OnButtonClick(tbrb)

{

tbrb.Caption="Hello"

}

Applies to

AToolBar

See Also

Buttons, OnButtonDblClick