Recent

Author Topic: 32x32 icon toolbar-button  (Read 5626 times)

digiflash

  • New Member
  • *
  • Posts: 13
32x32 icon toolbar-button
« on: November 18, 2013, 02:27:03 pm »
Hi!

Maybe I'm too stupid to get it working.
I added a icon with 32x32 to an imagelist.
Connected the imagelist to the toolbar.
A 16x16 imagelist worked but none with 22x22 or 32x32.
So the toolbar-buttons only support 16x16 icons?

King Regards
« Last Edit: November 18, 2013, 02:32:43 pm by digiflash »

taazz

  • Hero Member
  • *****
  • Posts: 5368
Re: 32x32 icon toolbar-button
« Reply #1 on: November 18, 2013, 03:09:58 pm »
For me it works as expected you need to be aware of 2 things
1) the imagelist properties width and height must be set to 32 before loading the 32x32 bitmaps.
2) the toolbar buttonwidth and buttonheight properties do not auto refresh to the new icon size so you need to set them manually after you set the imagelist. A ButtonHeight around 52 will do fine.
Good judgement is the result of experience … Experience is the result of bad judgement.

OS : Windows 7 64 bit
Laz: Lazarus 1.4.4 FPC 2.6.4 i386-win32-win32/win64

digiflash

  • New Member
  • *
  • Posts: 13
Re: 32x32 icon toolbar-button
« Reply #2 on: November 18, 2013, 03:48:27 pm »
Thanks for the advice!
I changed the properties before. Otherwise a 32x32 icon will be splitted in multiple images.
The change of the button might be my problem.

 

TinyPortal © 2005-2018