CategorySelectionChanging

Description

Occurs when another category is about to be selected.

Event ID

Event ID

Objects

None

RibbonBar


Arguments

Argument

Description

OldIndex

Long by value (the index of the currently selected category)

NewIndex

Long by value (the index of the category that is about to be selected)


Return Values

Long.

Return code choices (specify in a RETURN statement):

0 -- Allow the selection to change

1 -- Prevent the selection from changing

Examples

Boolean lb_Auth
lb_Auth = gb_Auth //Global Variable
Choose Case NewIndex
 Case 2,3
 //Whether to authorize
 If lb_Auth Then
  Return 0
 Else
  Return 1
 End If
End Choose

See also

CategorySelectionChanged

CategoryExpanded

CategoryCollapsed

ItemUnselected