Vcl.Menus.TPopupMenu.Alignment

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Alignment: TPopupAlignment read FAlignment write FAlignment default paLeft;

C++

__property TPopupAlignment Alignment = {read=FAlignment, write=FAlignment, default=0};

Properties

Type Visibility Source Unit Parent
property published
Vcl.Menus.pas
Vcl.Menus.hpp
Vcl.Menus TPopupMenu

Description

Determines where the pop-up menu appears when the user clicks the right mouse button.

Set Alignment to control the placement of the popup menu. Alignment controls whether the menu appears to the left of the mouse, to the right of the mouse, or centered over the mouse.

By default, the menu appears with its top left corner under the mouse (paLeft).

See Also