Skip to main content

TdxCustomNavBar.OnCalcGroupClientHeight Event

Enables you to calculate custom height for groups’ client areas.

Declaration

property OnCalcGroupClientHeight: TdxNavBarCalcGroupClientHeightEvent read; write;

Remarks

The OnCalcGroupClientHeight event is fired when a particular group client height needs to be recalculated. Assign a new integer value to the AHeight parameter to change the group’s client region height.

The Sender parameter specifies the sender of the event. The sender of the OnCalcGroupClientHeight event is the NavBar control.

The AViewInfo parameter gets access to the object of the TdxNavBarGroupViewInfo type that stores ViewInfo information of the current NavBar group.

The AHeight parameter specifies height of the current group client region.

The OnCalcGroupClientHeight event is commonly used together with the OnCustomDraw.GroupClientForeground event. These are used to paint custom information within groups. The OnCalcGroupClientHeight event is used to specify the height of a group when there are no links in it.

See Also