VLButtonBar Reference

Read/Write Property ButtonClickBehavior

See Also See Also Applies To Applies To

Returns or sets behavior of the button on click.

 

Syntax

object.ButtonClickBehavior[=value]

 

The ButtonClickBehavior property syntax has these parts:

Part Description
Object An object expression that evaluates to the objects in Applies to list.
Value A integer specifying the behavior of the button on click.

 

Settings

The settings for value are:

Constant Setting Description
ConstantvlRadioStyle 0 (Default) Buttons will behave like a group of radio buttons.
Note : The SelectedButton property will specify the currently selected button at all times.
ConstantvlCommandStyle 1 Buttons will behave like command buttons or menu items.
Note : The SelectedButton property will automatically revert to nothing, after the ButtonClick event.

 

Remarks

This property is useful is specifying if the buttons should behave like a set of radio buttons, where one of the buttons is always selected, or they should behave like command buttons or menu items, where the click event is triggered but no button stays in the selected state.