Vcl.Menus

From RAD Studio API Documentation
Jump to: navigation, search


Contents

Classes

EMenuErrorEMenuError is the exception class for errors involving menu items.
TMainMenuTMainMenu encapsulates a menu bar and its accompanying drop-down menus for a form.
TMenuTMenu is the base type for menu components such as TMainMenu and TPopupMenu.
TMenuActionLinkTMenuActionLink links menu item clients to the corresponding menu action.
TMenuActionLinkClassRepresents the metaclass for the TMenuActionLink class.
TMenuItemTMenuItem describes the properties of an item in a menu.
TMenuItemEnumeratorEnumerates through the menu items of a TMenuItem object.
TMenuItemStackRepresents a stack of menu items.
TPopupListTPopupList manages the window that handles popup menu messages.
TPopupMenuTPopupMenu encapsulates the properties, methods, and events of a pop-up menu.

Routines

AnsiSameCaptionIndicates whether two strings are the same based on the current locale, ignoring case information and accelerator characters.
DrawMenuItemDraws a menu item.
GetHotkeyReturns the last character in a string marked with an ampersand (&).
IsAltGRPressedSpecifies whether AltGR is pressed.
NewItemCreates and initializes a menu item.
NewLineCreates a menu item for a separator.
NewMenuCreates and initializes a main menu.
NewPopupMenuCreates and initializes a popup menu.
NewSubMenuCreates and initializes a menu item that represents a submenu.
SameCaptionCompares two texts.
ShortCutCreates a menu shortcut for a specified key combination.
ShortCutFromMessageGenerates a shortcut ID from a received message.
ShortCutToKeyReturns the key code and shift state of a menu shortcut.
ShortCutToTextConverts a menu shortcut into a string that describes the shortcut.
StripHotkeyRemoves the accelerator character marker from a string.
TextToShortCutCreates a menu shortcut from a text string.

Types

PMenuItemDefines a pointer to a TMenuItem value.
TAdvancedMenuDrawItemEventTAdvancedMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn menus.
TFindItemKindTFindItemKind indicates the criterion to use when locating menu items.
TMenuAnimationTMenuAnimation and TMenuAnimations indicate how a pop-up menu appears on screen.
TMenuAnimationsTMenuAnimation and TMenuAnimations indicate how a pop-up menu appears on screen.
TMenuAutoFlagTMenuItemAutoFlag and TMenuAutoFlag indicate when menu items are automatically maintained.
TMenuBreakTMenuBreak indicates the criterion to use when locating menu items.
TMenuChangeEventDefines the type for event handlers that occur when the menu changes.
TMenuDrawItemEventTMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn menus.
TMenuHandleDefines the handle to a TMenu object.
TMenuItemAutoFlagTMenuItemAutoFlag and TMenuAutoFlag indicate when menu items are automatically maintained.
TMenuMeasureItemEventTMenuMeasureItemEvent is the type for event handlers that render menu items in owner-Measuren menus.
TPopupAlignmentTPopupAlignment represents the position of a pop-up menu relative to the mouse.
TTrackButtonTTrackButton specifies which mouse button activates a tool button menu.

Variables

PopupListProvides centralized handling of Windows messages directed at pop-up menus.
ShortCutItemsContains the items that have a shortcut.
ValidMenuHotkeysDetermines what accelerator keys can be automatically assigned to a menu item caption.

Constants

cDialogSuffixcDialogSuffix: string = ...;
cHotkeyPrefixcHotkeyPrefix: Char = $26;
cLineCaptioncLineCaption: Char = $2D;


Personal tools
Translations