Recent

Author Topic: Icon for my component doesn't show  (Read 1583 times)

Raf20076

  • Full Member
  • ***
  • Posts: 184
    • https://github.com/Raf20076
Icon for my component doesn't show
« on: August 28, 2021, 01:04:08 pm »
Hi
I'm trying to add icon to my component which is 16x16 png and I use glazres from C:\lazarus\tools\glazres
to create my_con.lrs

In uses I added
Code: Pascal  [Select][+][-]
  1. Classes, SysUtils, Controls, Graphics, Dialogs, LResources, Forms,
  2.   LCLIntf, LCLType,LazarusPackageIntf, StdCtrls
(which one I need to show icon?)

At the end of unit I added
Code: Pascal  [Select][+][-]
  1. {$IFDEF FPC} //Lazarus
  2.   initialization
  3.     {$i my_icon.lrs}
  4. {$ENDIF}
  5. end.  

But still I cannot see icon in tab, only these three blue,green, blue squares.

Any ideas?

Thanks

jamie

  • Hero Member
  • *****
  • Posts: 7308
Re: Icon for my component doesn't show
« Reply #1 on: August 28, 2021, 02:39:47 pm »
try "yourIcon.res" instead.
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018