Author Topic: component icon  (Read 3666 times)


  • Newbie
  • Posts: 3
component icon
« on: August 10, 2005, 11:42:23 am »
How can i set my own icon for a custom component i have created?


  • Full Member
  • ***
  • Posts: 130
component icon
« Reply #1 on: August 12, 2005, 03:29:46 am »
First off, create a suitable size icon in the .xpm format (.bmp I think also should work, thou I've had trouble with that format). Then change it into a xxxx.lrs file with 'lazres' (you may need compile lazres, the source is in the lazarus/tools directory), where xxxx I believe has to match your component name.  Then put a {$I xxxx.lrs} statement int the initialization part of your component .pas file. That should do it.


TinyPortal © 2005-2018