Recent

Author Topic: How to wordrap the Bitbtn?  (Read 930 times)

Jvan

  • Full Member
  • ***
  • Posts: 181
How to wordrap the Bitbtn?
« on: May 12, 2021, 12:07:25 am »
Please, is it possible?

jamie

  • Hero Member
  • *****
  • Posts: 4751
Re: How to wordrap the Bitbtn?
« Reply #1 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...
The only true wisdom is knowing you know nothing

winni

  • Hero Member
  • *****
  • Posts: 2521
Re: How to wordrap the Bitbtn?
« Reply #2 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




jamie

  • Hero Member
  • *****
  • Posts: 4751
Re: How to wordrap the Bitbtn?
« Reply #3 on: May 13, 2021, 12:36:43 am »
That's like going from Console to GUI mode  :)
The only true wisdom is knowing you know nothing

 

TinyPortal © 2005-2018