Skip to main content

TdxCustomNavBar.OnActiveGroupChanging Event

Enables you to prohibit a group from being activated.

Declaration

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