Board index » delphi » Multiline captions (TButton ex) : How?

Multiline captions (TButton ex) : How?

Hi Howard,

Try:

Button1.Caption := 'First Line' + #13#10 + 'Second Line';

Regards,
Theodor

____________________________________________
theo...@gem.co.za
http://members.gem.co.za/~theodor/index.html
+27-21-9132479 (tel & fax)

Howard Goldstein <hgold...@mpcs.com> wrote in article
<5gsa5u.lue.hgold...@bbs.mpcs.com>...

Quote
> Is it possible to coerce a newline into the Caption property from the
> Object Inspector?  If not, how might it be done?  I have text to
> put on a square button.  Please help my button square; it'll have to
> grow into a rectangle if I can't embed a newline.

> Thanks!

> (cc: by email appreciated)

 

Re:Multiline captions (TButton ex) : How?


Quote
>put on a square button.  Please help my button square; it'll have to
>grow into a rectangle if I can't embed a newline.

Fast solution: make it a glyph.

Re:Multiline captions (TButton ex) : How?


In article <5gsa5u.lue.hgold...@bbs.mpcs.com>,
   hgold...@mpcs.com (Howard Goldstein) wrote:
]-Is it possible to coerce a newline into the Caption property from the
]-Object Inspector?  If not, how might it be done?  I have text to
]-put on a square button.  Please help my button square; it'll have to
]-grow into a rectangle if I can't embed a newline.
]-
]-Thanks!
]-
]-(cc: by email appreciated)

go to the web site listed below, download their TXButton
component...allows multi-line captions, different colors,
lots of other good stuff

the info below is a cut 'n paste from the TXButton help
file.

Mark Vaughan

----

The www page of FIDDLE is at
http://www.nedernet.nl/~braincom/index.html

You can also contact us by e-mail.
K.Bleijenb...@inter.nl.net
brain...@nedernet.nl

Other Threads