ToolsAPI.INTAEditorLocalMenu.RegisterActionList
Delphi
procedure RegisterActionList(Actions: TActionList; const MenuCategory: string;
InsertAfter: string = '');
C++
virtual void __fastcall RegisterActionList(Vcl::Actnlist::TActionList* Actions, const System::UnicodeString MenuCategory, System::UnicodeString InsertAfter = System::UnicodeString()) = 0 ;
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
public | ToolsAPI.pas ToolsAPI.hpp |
ToolsAPI | INTAEditorLocalMenu |
Description
Registers a new TActionList category to the editor's local menu.
The RegisterActionList method registers a new TActionList category for use when the editor's local menu is created. The local menu will be created each time it is used and will call the action's OnUpdate before it is shown.
Use a category name for each action to create a sub-menus. The sub-menu category is the parent's name with a "." followed by the sub-menu's name. For example, if the category for the parent menu item is "ParMenu," then the sub-menu category will be "ParMenu.sub1". The sub-menus must be added to the action list as the next actions after their parent. If the sub-menu is before its parent, then it will not show.
Note: If a TActionList is registered, it must be unregistered before the package is unloaded.