TMainMenu class
TMainMenu - the Main Menu that appears at the top of most windows.Declaration
TMainMenu = class(TMenu)Inheritance
Description
TMainMenu - the Main Menu that appears at the top of most windows;
form designers can customize by choosing various menu items.
Main Menu is a non-visible component: that is, if the icon is selected from the Component Palette 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
Properties
Height | public | Height for the menu. |
WindowHandle | public | Handle for the window where the menu is displayed. |
Methods
ItemChanged | protected | Performs actions needed when a menu item has been changed. |
WSRegisterClass | protected | Registers this component class with the current WidgetSet. |
MenuChanged | protected | Implements the OnChange event handler used for menu items in the class instance. |
Create | public | Constructor for the class instance. |
Merge | public | Merges menu items from the specified main menu instance. |
Unmerge | public | Removes merged menu items for the specified menu. |
Events
OnChange | published | Event handler signalled when a menu item has been changed. |
Inherited
From TMenu (33)
AssignTo AutoLineReduction BidiMode BidiModeChanged CreateHandle Destroy DestroyHandle DispatchCommand DoChange FindItem GetChildren GetHandle GetHelpContext Handle HandleAllocated HandleNeeded Images ImagesWidth IsRightToLeft IsShortcut Items Notification OnDrawItem OnMeasureItem OwnerDraw Parent ParentBidiMode ParentBidiModeChanged SetChildOrder ShortcutHandled UpdateItems UseRightToLeftAlignment UseRightToLeftReading
From TLCLComponent (7)
DecLCLRefCount GetWSComponentClass IncLCLRefCount LCLRefCount NewInstance RemoveAllHandlersOfObject WidgetSetClass
From TComponent (71)
_AddRef _Release BeforeDestruction CanObserve ChangeName ComObject ComponentCount ComponentIndex Components ComponentState ComponentStyle DefineProperties DesignInfo DestroyComponents Destroying ExecuteAction FindComponent FreeNotification FreeOnRelease GetChildOwner GetChildParent GetDeltaStreams GetEnumerator GetIDsOfNames GetNamePath GetObservers GetOwner GetParentComponent GetTypeInfo GetTypeInfoCount HasParent iicrGetComponent InsertComponent Invoke IsImplementorOf Loaded Loading Name ObserverAdded Observers OnGetDeltaStreams Owner PaletteCreated QueryInterface ReadDeltaState ReadDeltaStream ReadState ReferenceInterface RemoveComponent RemoveFreeNotification RemoveFreeNotifications SafeCallException SetAncestor SetDesigning SetDesignInstance SetInline SetName SetParentComponent SetSubComponent Tag ToString TToStringNameMode UpdateAction Updated UpdateRegistry Updating ValidateContainer ValidateInsert ValidateRename VCLComObject WriteState
From TPersistent (4)
Assign FPOAttachObserver FPODetachObserver FPONotifyObservers
From TObject (36)
AfterConstruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName QualifiedClassName StringMessageTable SystemHasExtendedRTTI UnitName
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
