Returns the number of buttons in the object.
[ lButtonCount = ] Object.ButtonCount
The ButtonCount property syntax has the following parts:
|
Name |
Type |
Description |
|
Object |
AToolBar |
AToolBar control |
|
lButtonCount |
Long |
The number of buttons in the object. |
The following statements disable all buttons:
lButtonCount=tbr.ButtonCount
for lButton=0 To (lButtonCount-1)
tbr.Buttons(lButton).Enabled=False
Next
ButtonHeight, Buttons, ButtonWidth, InsertButton, MoveButton, OnButtonClick, OnButtonDblClick, RemoveButton