Skip to main content

TdxNavBarGetOverlaySizeEvent Type

The procedural type of the Hamburger Menu overlay resize event.

Declaration

TdxNavBarGetOverlaySizeEvent = procedure(Sender: TObject; var AWidth: Integer; var AHeight: Integer) of object;

Parameters

Name Type
Sender TObject
AWidth Integer
AHeight Integer

Remarks

The Sender parameter provides access to a NavBar control that raised a TdxNavBarGetOverlaySizeEvent event. Cast the parameter value to the TdxNavBar class to access the control’s API.

The AWidth and AHeight parameters specify new dimensions (in pixels) of the Hamburger Menu expanded in minimal display mode (that is, if the NavBar control’s OptionsBehavior.HamburgerMenu.DisplayMode property is set to dmOverlayMinimal). You can assign new values to these parameters to adjust the expanded Hamburger Menu’s dimensions.

The NavBar control’s OnGetOverlaySize event references the TdxNavBarGetOverlaySizeEvent type.

See Also