Show: Delphi C++
Display Preferences

Vcl.Menus

From RAD Studio API Documentation
Jump to: navigation, search


Package vcl.bpl

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.
TMenuActionLinkLinks a client (menu item) to the corresponding 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.
ShortCutReturns an instance of TShortCut that represents the combination of the specified key code and the specified combination of modifier keys.
ShortCutFromMessageGenerates a shortcut ID from a received message.
ShortCutToKeyGives a shortcut, fills Key with the code of the main key of the shortcut, and fills Shift with the combination of modifier keys of the shortcut, if any.
ShortCutToTextReturns the string representation that matches the specified code representation of a shortcut.
StripHotkeyRemoves the accelerator character marker from a string.
TextToShortCutReturns the code representation that matches the specified string representation of a shortcut.

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
In Other Languages
Previous Versions
Assistance