Delphi .NET (2) Database (71) Delphi IDE (89) Network (39) Printing (3) Strings (12) VCL (83) Windows with Delphi (280)
Exchange Links About this site Links to us 
|
Adding an item to the main menu or the tools menu
This article has not been rated yet. After reading, feel free to leave comments and rate it.
You need to add an item into Delphi's IDE for your expert?
Here is how I did it for TMultiLang..
if you do not want to use the tools menu, but instead create a new main menu entry, you need to replace the
menMain.FindMenuItem ()
with
menMain.InsertItem(8, '&Test', 'TestMainMenuItem', '', 0, 0, 0, [mfVisible, mfEnabled], nil);
 | |  | |
constructor TMultiLangExpert.Create;
var
menMain : TIMainMenuIntf;
menToolsGallery : TIMenuItemIntf;
menToolsMenu : TIMenuItemIntf;
begin
Inherited Create;
menMain := ToolServices.GetMainMenu; if Assigned (menMain) then
try
// get the | |  | |  |
Comments:
|