Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCustomNavBar.OnActiveGroupChanging Event

In This Article

Enables you to prohibit a group from being activated.

#Declaration

Delphi
property OnActiveGroupChanging: TdxNavBarGroupChangingEvent read; write;

#Remarks

Handle this event to perform specific actions when either the ActiveGroup or ActiveGroupIndex property value of the NavBar control is about to be changed. The ANewGroup parameter provides access to the group being activated. To prohibit this group from being activated, pass False as the AAllowChange parameter. In this instance, the OnActiveGroupChanged event does not fire.

The OnActiveGroupChanged and OnActiveGroupChanging events do not fire when any of the following takes place:

  • The NavBar control is loaded from a DFM file;

  • Calling the NavBar control’s Groups.Clear method removes all groups.

See Also