VLButtonBar Reference

Method SetNewIndex

See AlsoSee Also Applies To Applies To

Sets a new position for CButton object in a CButtons collection of a group of a VLButtonBar control.

 

Syntax

object.SetNewIndex index

 

The Remove method syntax has these parts:

Part Description
object An expression evaluating to an object of type CButtons.
aButton An object of type CButton belonging to the specified CButtons collection.
index An integer specifying new position of the button in the collection.

Remarks

This method can be used to implement runtime reordering of buttons. If the button belongs to the active group, the control will automatically be refreshed to reflect new position of the button.