vlad_n
vlad_n

Reputation: 123

Overlay Icons in Delphi IDE

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

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

Upvotes: 7

Views: 904

Answers (1)

Nicholas Ring
Nicholas Ring

Reputation: 1016

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

Upvotes: 2

Related Questions