Vcl.Menus
| Package | vcl270.bpl |
|---|
Contents
Classes
| EMenuError | EMenuError is the exception class for errors involving menu items. |
| TMainMenu | TMainMenu encapsulates a menu bar and its accompanying drop-down menus for a form. |
| TMenu | TMenu is the base type for menu components such as TMainMenu and TPopupMenu. |
| TMenuActionLink | Links a client (menu item) to the corresponding action. |
| TMenuActionLinkClass | Represents the metaclass for the TMenuActionLink class. |
| TMenuItem | TMenuItem describes the properties of an item in a menu. |
| TMenuItemEnumerator | Enumerates through the menu items of a TMenuItem object. |
| TMenuItemStack | Represents a stack of menu items. |
| TPopupList | TPopupList manages the window that handles popup menu messages. |
| TPopupMenu | TPopupMenu encapsulates the properties, methods, and events of a pop-up menu. |
Routines
| AnsiSameCaption | Indicates whether two strings are the same based on the current locale, ignoring case information and accelerator characters. |
| DrawMenuItem | Draws a menu item. |
| GetHotkey | Returns the last character in a string marked with an ampersand (&). |
| IsAltGRPressed | Specifies whether AltGR is pressed. |
| NewItem | Creates and initializes a menu item. |
| NewLine | Creates a menu item for a separator. |
| NewMenu | Creates and initializes a main menu. |
| NewPopupMenu | Creates and initializes a popup menu. |
| NewSubMenu | Creates and initializes a menu item that represents a submenu. |
| SameCaption | Compares two texts. |
| ShortCut | Returns an instance of TShortCut that represents the combination of the specified key code and the specified combination of modifier keys. |
| ShortCutFromMessage | Generates a shortcut ID from a received message. |
| ShortCutToKey | Gives 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. |
| ShortCutToText | Returns the string representation that matches the specified code representation of a shortcut. |
| StripHotkey | Removes the accelerator character marker from a string. |
| TextToShortCut | Returns the code representation that matches the specified string representation of a shortcut. |
Types
| PMenuItem | Defines a pointer to a TMenuItem value. |
| TAdvancedMenuDrawItemEvent | TAdvancedMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn menus. |
| TFindItemKind | TFindItemKind indicates the criterion to use when locating menu items. |
| TMenuAnimation | TMenuAnimation and TMenuAnimations indicate how a pop-up menu appears on screen. |
| TMenuAnimations | TMenuAnimation and TMenuAnimations indicate how a pop-up menu appears on screen. |
| TMenuAutoFlag | TMenuItemAutoFlag and TMenuAutoFlag indicate when menu items are automatically maintained. |
| TMenuBreak | TMenuBreak indicates the criterion to use when locating menu items. |
| TMenuChangeEvent | Defines the type for event handlers that occur when the menu changes. |
| TMenuDrawItemEvent | TMenuDrawItemEvent is the type for event handlers that render menu items in owner-drawn menus. |
| TMenuHandle | Defines the handle to a TMenu object. |
| TMenuItemAutoFlag | TMenuItemAutoFlag and TMenuAutoFlag indicate when menu items are automatically maintained. |
| TMenuMeasureItemEvent | TMenuMeasureItemEvent is the type for event handlers that render menu items in owner-Measuren menus. |
| TPopupAlignment | TPopupAlignment represents the position of a pop-up menu relative to the mouse. |
| TTrackButton | TTrackButton specifies which mouse button activates a tool button menu. |
Variables
| PopupList | Provides centralized handling of Windows messages directed at pop-up menus. |
| ShortCutItems | Contains the items that have a shortcut. |
| ValidMenuHotkeys | Determines what accelerator keys can be automatically assigned to a menu item caption. |
Constants
| cDialogSuffix | cDialogSuffix: string = ...; |
| cHotkeyPrefix | cHotkeyPrefix: Char = $26; |
| cLineCaption | cLineCaption: Char = $2D; |