Add more icons to project lazarus / 39-Graphics ---------------------------------------------------------------------- SaraT · 2020-03-20 22:41 Hello coders I want to add more than one icon to my project to use the index number (1, 2, ...) in the Windows Registry but would like to know if it possible to do this. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i //i.e. to call second icon index from Registry@%ProgramFiles%\My Project\Application.exe,-1 See attached image. Many thanks ---------------------------------------------------------------------- eljo · 2020-03-20 22:55 create an .rc file with all the icons you want to be included in your application and {$R myicons.rc} in your application code somewhere and they will be included. PS. RC is a text script that describes the resources to be included in your exe search for the format and commands in the online microsoft documentation. ---------------------------------------------------------------------- winni · 2020-03-20 23:36 Hi! Forget about the registry, that neverending trouble. Either you use a resource file like eljo said or you save your icons in a TImageList. The later was discussed here: https://forum.lazarus.freepascal.org/index.php?topic=39311.0 Winni ---------------------------------------------------------------------- lainz · 2020-03-21 15:25 That icons are for file association? ---------------------------------------------------------------------- SaraT · 2020-03-24 02:45 Quote from: lainz on March 21, 2020, 04:25:09 pmThat icons are for file association? Hi Lainz, yes, that what I need more icons for. Any idea how to do it? Thnx ---------------------------------------------------------------------- lainz · 2020-03-24 10:26 Quote from: SaraT on March 24, 2020, 03:45:35 amQuote from: lainz on March 21, 2020, 04:25:09 pmThat icons are for file association? Hi Lainz, yes, that what I need more icons for. Any idea how to do it? Thnx What I did before was creating an icon dll that is never loaded by my application but it just stores the icons. From registry is used like an exe. To create that you need an .rc file containing all the icons. ---------------------------------------------------------------------- lainz · 2020-03-24 10:36 Quote from: eljo on March 20, 2020, 11:55:01 pmcreate an .rc file with all the icons you want to be included in your application and {$R myicons.rc} in your application code somewhere and they will be included. PS. RC is a text script that describes the resources to be included in your exe search for the format and commands in the online microsoft documentation. That's all this is the right answer