Using the Lazarus IDE => General => Topic started by: avra on July 06, 2019, 10:37:38 am
Title: Can not add my icon to IDE menu item or Editor Toolbar
Post by: avra on July 06, 2019, 10:37:38 am
I have tried to create some missing icons to Editor Toolbar. Analyzing Lazarus source, it looks like Editor Toolbar uses same icons as IDE menu items, so I tried to add an icon to item that was missing it. Following example explains my try to add icon to 'Procedure List' menu item.
Searching through the IDE sources I have found that item in lazarusidestrconsts.pas is defined as
and rebuilding IDE would be enough. Unfortunately it is not. What am I missing?
Title: Re: Can not add my icon to IDE menu item or Editor Toolbar
Post by: Ally on July 06, 2019, 12:39:38 pm
Hello,
First you have to enter your icons in the file \ images \ laz_images_list.txt. Then use laz_images.bat to recreate the laz_images.res file. Then compile Lazarus. The icons are now available in Lazarus.exe. Unfortunately I can not answer how they are assigned to a menu item.