[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] Reference for unit 'Menus' (#lcl)

TMenu

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

TMenu : The base class for all menus

Declaration

Source position: menus.pp line 278

type TMenu = class(TLCLComponent)

protected

  procedure BidiModeChanged; virtual;

  procedure CreateHandle; virtual;

  

  procedure DoChange(); virtual;

  

  function GetHandle; virtual;

  

  procedure GetChildren(); override;

  

  procedure MenuChanged(); virtual;

  

  procedure Notification(); override;

  procedure ParentBidiModeChanged();

  procedure SetChildOrder(); override;

  procedure UpdateItems;

  

  property OnChange: TMenuChangeEvent; [rw]

  

public

  FCompStyle: LongInt;

  

  constructor Create(); override;

  

  destructor Destroy; override;

  

  procedure DestroyHandle; virtual;

  

  function FindItem();

  

  function IsShortcut();

  function HandleAllocated;

  

  function IsRightToLeft; virtual;

  

  function UseRightToLeftAlignment; virtual;

  function UseRightToLeftReading; virtual;

  procedure HandleNeeded;

  

  function DispatchCommand();

  

  property Handle: HMENU; [r]

  

  property Parent: TComponent; [rw]

  

  property ShortcutHandled: Boolean; [rw]

published

  property BidiMode: TBidiMode; [rws]

  property ParentBidiMode: Boolean; [rw]

  property Items: TMenuItem; [r]

  

Items - a list of Menu Items to be included in the menu display

  property Images: TCustomImageList; [rw]

  

Images - a list of images from which entries can be selected to illustrate menu choices

end;

Inheritance

TMenu

  

TMenu : The base class for all menus

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent

|

TObject

Description

TMenu : The base class for all menus

The class definition contains very few public or published properties or methods accessible to the application programmer, but contains the entry Items which points to the Menu Items that appear in the menu displays

See also

HowToUseMenus

  

HowToUseMenus - hints for creating Menus for your Forms

TMainMenu

  

TMainMenu - the Main Menu that appears at the top of most windows

TPopupMenu

  

TPopupMenu - a menu panel that pops up on the desktop when the right mouse button is clicked

TMenuItem

  

TMenuItem - The base structure of each item in a Menu.

The latest version of this document can be found at lazarus-ccr.sourceforge.net.