The best way to add menu items or additional menus is to use the method we use when creating the default Report Explorer dialog. Take a look at the TppReportExplorerForm.Initialize, and LoadMainMenu routines for how this is done.
First i have to say this. Your newest release is a great piece of software with some excellent improvement from your previous releases. Keep up the good work, which i'm sure you will.
I used your '04. End-User with Custom Explorer" and added the code below to LoadMainMenu.
That works very well. I would like to add my own images to the custom menues. Is this possible? If so, could you please give me a clue on how to solve this?
You can use the global ToolImageList object to add images to each TBXItem. The ToolImageList is simply a descendent of a TImageList. You can either add images to the list before assigning the index or in line. Something like the following...
Comments
The best way to add menu items or additional menus is to use the method we
use when creating the default Report Explorer dialog. Take a look at the
TppReportExplorerForm.Initialize, and LoadMainMenu routines for how this is
done.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
First i have to say this. Your newest release is a great piece of software
with some excellent improvement from your previous releases. Keep up the
good work, which i'm sure you will.
I used your '04. End-User with Custom Explorer" and added the code below to
LoadMainMenu.
FBoman := FMenuBar.AddSubMenu;
FBoman.FontSettings.Color := clBlack;
FBoman.Caption := 'Boman';
FProvider := TppTBXCustomItem.Create(Self);
FProvider.Caption := 'Provider';
FProvider.Tag := 1;
FProvider.OnClick := bomanMenuClick;
FBoman.Add(FProvider);
That works very well. I would like to add my own images to the custom
menues. Is this possible?
If so, could you please give me a clue on how to solve this?
Best regards,
Terje
You can use the global ToolImageList object to add images to each TBXItem.
The ToolImageList is simply a descendent of a TImageList. You can either
add images to the list before assigning the index or in line. Something
like the following...
uses
ppToolResources;
FBoman.ImageIndex := ToolImageList.Add({image});
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com