Forum > LCL

How to wordrap the Bitbtn?

(1/1)

Jvan:
Please, is it possible?

jamie:
Use a TSpeedButton instead, with that it has a Onpaint handler and you can paint the button yourself...

winni:
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:
That's like going from Console to GUI mode  :)

Navigation

[0] Message Index

Go to full version