1 (edited by mathmathou 2016-10-25 05:40:19)

Topic: [Script] - Short guide to add icons to your menus

Hello all MVD fans,


Aaaaaaaaah, that was a huge step forward when Dmitry showed us how to hide the standard menu and add our own instead. But I found the menu alone a bit boring so I decided to add icons to them !


The attached project shows how to do that and, as usual, code is fully commented.


Keep in mind that the MainMenu (TMenu) is already created when you launch your application (we have hidden the default items). All what we create are SubMenus (TMenuItem) that we then add to it.


Also, I used bitmaps with a grey background to match the default color of the menu. I seam to have problems with PNG and transparency smile


Finally, I added an example (for the beginners) on how to create a 4 levels menu.


Have fun


Cheers


Mathias

Post's attachments

Attachment icon MENUs.zip 6.78 kb, 953 downloads since 2016-10-25 

I'm a very good housekeeper !
Each time I get a divorce, I keep the house

Zaza Gabor

Re: [Script] - Short guide to add icons to your menus

Thank you for the example.

Dmitry.

Re: [Script] - Short guide to add icons to your menus

Excellent work Mathias.


Thank you very much.................


Now I have much better understanding of dealing with menus and menu items.

Adam
God... please help me become the person my dog thinks I am.