Sign in Join
FPDoc Onlineexperiment

TMainMenu class

In unit Menus

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

Declaration

pascal
TMainMenu = class(TMenu)

Inheritance

  1. TMainMenu
  2. TMenu
  3. TLCLComponent
  4. TComponent
  5. TPersistent
  6. TObject

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

HeightpublicHeight for the menu.
WindowHandlepublicHandle for the window where the menu is displayed.

Methods

ItemChangedprotectedPerforms actions needed when a menu item has been changed.
WSRegisterClassprotectedRegisters this component class with the current WidgetSet.
MenuChangedprotectedImplements the OnChange event handler used for menu items in the class instance.
CreatepublicConstructor for the class instance.
MergepublicMerges menu items from the specified main menu instance.
UnmergepublicRemoves merged menu items for the specified menu.

Events

OnChangepublishedEvent 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.