Icon Overlay in Delphi IDE

How do you implement overlay icons in a Delphi environment, such as:

  • on the tabs of the editor files;
  • in the project manager tree;
  • in the Project Manager popup menu?

Screenshot of Mercurial icon in the right-click menu on a file in the Project Manager

+7
ide delphi hook
source share
1 answer

I recently played in the Project Manager context menu, and the context menu ( TPopupMenu ) does not have a TCustomImageList assigned to TCustomImageList .

So, to get the images in the context menu, you need to assign it a TCustomImageList ( TCustomImageList ). I did this with the same owner as with the TPopupMenu component.

For the rest, I know very little:

  • The Project Manager tree is a virtual tree view , so it might be worth playing with it in the application to find out what you can do.

  • Editor tabs are a custom component, so some lower level binding may be required. See how Delphi IDE Colorizer handles custom tabs; which can help with hooks.

Request: since this happens with internal IDEs, please do not think that you are the first person, and start with the fact that everyone else works.

Edit : There is an EDN article on Project Manager Context Menu Extension

+2
source share

All Articles