Recent

Author Topic: Adding Icon's/Glyphs to components in the pallette bar  (Read 6554 times)

Joda26

  • Guest
Adding Icon's/Glyphs to components in the pallette bar
« on: March 31, 2006, 10:05:28 am »
Hi,

I've started porting all my delphi and kylix components to lazarus. But I can't seem to get the resources linked properly.

I've used Lazitool to create the resource file but I can't seem to get the rest right.

If someone can send me a link to the relevant doc's or just a quick example how to do that it would be greatly appreciated

Thx 4 all the gr8 work so far

Joda26

OnixJr

  • Full Member
  • ***
  • Posts: 172
    • http://www.brlazarus.kit.net
RE: Adding Icon
« Reply #1 on: April 01, 2006, 06:11:03 am »
you should create resource file...
If you have an componente TMyComponent, create an resource file as follow (in my example, I use BMP format, but you can use XMP format):

lazres myresource.lrs tmycomponent.bmp

Use directive {$I myresource.lrs} in your code

Ps: you bmp should have name same of component.
Portal Lazarus Brasil - http://lazaruspascal.codigolivre.org.br/portal.php
Lazarus BOOK (in portuguese) - http://lazarus-book.blogspot.com
<hipernetjr@yahoo.com.br> - Curitiba/Brazil

Joda26

  • Guest
Adding Icon's/Glyphs to components in the pallette bar
« Reply #2 on: April 03, 2006, 05:48:58 pm »
Oh my greatness, It's working!

Thanx a whole heap man!

 

TinyPortal © 2005-2018