Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Overlay Icons in Delphi IDE

Tags:

ide

hook

delphi

How do you implement overlay icons in the Delphi IDE like this:

  • on editor's files tabs;
  • on Project Manager's tree;
  • on Project Manager's popup menu?

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

like image 977
vlad_n Avatar asked May 23 '15 10:05

vlad_n


1 Answers

I have recently been playing around with the Project Manager's context menu and the context menu (TPopupMenu) doesn't have a TCustomImageList assigned to it.

So to get images on the context menu, you will need to assign a TCustomImageList (TImageList) to it. What I have done is to create one with the same owner as the TPopupMenu component.

For the others, I know very little:

  • The Project Manager's tree is a virtual tree view, so it might worth playing around with it in an application to see what can be done.

  • The editor tabs are a custom component, so some low level hooking maybe required. Have a look at how the Delphi IDE Colorizer handles the custom tabs; that might help with hooks.

Plea: Since this is playing around with the internals of the IDE, please don't assume you are the first person there and start over writing everyone else's work.

Edit: There is an EDN article on Extending the Project Manager Context menu

like image 160
Nicholas Ring Avatar answered Nov 04 '22 02:11

Nicholas Ring