Lazarus

Programming => LCL => Topic started by: Jvan on May 12, 2021, 12:07:25 am

Title: How to wordrap the Bitbtn?
Post by: Jvan on May 12, 2021, 12:07:25 am
Please, is it possible?
Title: Re: How to wordrap the Bitbtn?
Post by: jamie on May 12, 2021, 12:13:00 am
Use a TSpeedButton instead, with that it has a Onpaint handler and you can paint the button yourself...
Title: Re: How to wordrap the Bitbtn?
Post by: winni on May 12, 2021, 12:31:38 am
Hi!

The BitBtn has a Glyph which is nothing but a TBtmap.
So you dont need am onPaint event because you can paint on a bitmap outside the onPaint event.

Draw your   two lines of text on the BitBtn.glyph.canvas and set the caption to an empty string. FormCreate is a good place  to do that.

Winni



Title: Re: How to wordrap the Bitbtn?
Post by: jamie on May 13, 2021, 12:36:43 am
That's like going from Console to GUI mode  :)
TinyPortal © 2005-2018