Skip to main content

TdxBarCustomPopupMenu.Popup(Integer,Integer) Method

Displays the popup menu on screen.

Declaration

procedure Popup(X: Integer; Y: Integer); override;

Parameters

Name Type
X Integer
Y Integer

Remarks

This method is used to display the popup menu on screen at the point specified by the X and Y absolute coordinates. Use the PopupAlignment property to specify how the popup menu is horizontally aligned relative to this point.

The Popup method does the following:

  • Handles the OnPopup and OnShow events of the submenu control associated with the popup menu to fire the popup menu’s OnPopup and OnShow events instead;

  • Provides popup settings (including the pop-up position, alignment, animation effects, etc.) for the submenu control’s Show method;

  • Calls this Show method to display the submenu control and generate the events.

See Also