Recent

Author Topic: Button and internal image  (Read 3220 times)

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
Button and internal image
« on: June 16, 2011, 02:07:08 pm »
how can I create a button with an image inside? possibly a cross-platform solution. thanks
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

Shebuka

  • Sr. Member
  • ****
  • Posts: 429
Re: Button and internal image
« Reply #1 on: June 16, 2011, 02:51:52 pm »
how can I create a button with an image inside? possibly a cross-platform solution. thanks
Simple, Btn_OfYours.Glyph.LoadFrom[File,Stream, ecc.]()

xinyiman

  • Hero Member
  • *****
  • Posts: 2259
    • Lazarus and Free Pascal italian community
Re: Button and internal image
« Reply #2 on: June 16, 2011, 04:32:10 pm »
Thank you  ;)
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1

 

TinyPortal © 2005-2018