VLButtonBar Reference

Method SetNewIndex

See Also See Also Applies To Applies To

Reindexes the button to the new index.

 

Syntax

object.SetNewIndex (ByVal aButton As CButton, ByVal Index As Long ) As Boolean

 

The SetNewIndex property syntax has these parts:

Part Description
Object An expression evaluating to an object of type CButtons.
aButton Required. An expression evaluates to the CButton that specifies the Button to be reindexed or moved to the new index specified by index value.
index Required. An expression that specifies the position of a member of the CButtons collection. A numeric expression, index must be a number from 1 to the value of the collection's Count property.

 

Remarks

This method, along with SetNewIndex method of CGroups, can be used to provide runtime re-ordering / customization of buttons and groups in the control.