Recent

Author Topic: [SOLVED] TImagelist load at run time  (Read 3066 times)

torbente

  • Sr. Member
  • ****
  • Posts: 325
    • Noso Main Page
Re: TImagelist load at run time
« Reply #15 on: January 18, 2021, 07:09:38 am »
Great, i got all it. Thanks to you all.
I dont know if it belongs here, but it is related:
I can use the images in the imagelist whit its transparency using:

Code: Pascal  [Select][+][-]
  1. Imagelist.GetBitmap(number,COntrol.Glyph);

Not all the controls supports .glyph anyway, so how i could draw one glyph in the form (preserving transparency) that reacts to the mouse hover? I try with label, panel, statictext and others that can look clean, but they do not support .glyph.( xbutton do not fits my idea at all.) I guess it is something like

Code: Pascal  [Select][+][-]
  1. TPicture.LoadfromImagelist(imagelistname, imagenumber);

EDIT: Solved using GetIcon.
« Last Edit: January 18, 2021, 09:28:04 pm by torbente »
Noso Cryptocurrency Main Developer
https://github.com/DevTeamNoso/NosoWallet

 

TinyPortal © 2005-2018