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

TMainMenu

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

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

Declaration

Source position: menus.pp line 367

type TMainMenu = class(TMenu)

protected

  procedure ItemChanged;

  

ItemChanged - method to deal with a changed Item

protected

  class procedure WSRegisterClass; override;

  

WSRegisterClass - Register this Class for the current Widget Set

protected

  procedure MenuChanged(); override;

public

  constructor Create(); override;

  

Create - constructor for TMainMenu: sets style to MainMenu then calls inherited Create

  property WindowHandle: HWND; [rw]

published

  property OnChange;

  

OnChange - event handler for a change in the Menu

end;

Inheritance

TMainMenu

  

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

|

TMenu

  

TMenu : The base class for all menus

|

TLCLComponent

  

TLCLComponent - base class for LCL components

|

TComponent,IUnknown,IInterfaceComponentReference

|

TPersistent

|

TObject

Description

TMainMenu - the Main Menu that appears at the top of most windows; form designers can customise by choosing various menu items.

Main Menu is a non-visible component : that is, if the icon is selected from the Component Pallete and placed on the Form, it will not appear at Run-time. Instead, a Menu bar with a structure defined by the Menu Editor will appear.

To see the Menu Editor, right-click on the Main Menu icon on your Form.

See also

HowToUseMenus

  

HowToUseMenus - hints for creating Menus for your Forms

TMenuItem

  

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

TMenu

  

TMenu : The base class for all menus

TMenuActionLink

  

TMenuActionLink: defines the link between a selected menu item and its corresponding action

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