I would normally just do the following and have had no problems

btnTest.Caption := 'Line 1' + chr(13) + 'Line 2';

Eion McIntosh
PPCS Ltd

> -----Original Message-----
> From: Mark Howard [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, 4 February 2000 11:27
> To:   Multiple recipients of list delphi
> Subject:      Re: [DUG]:  Multi-line Caption
> 
> No, it IS a TBitBtn.
> Mark
> 
> Oscar Martin wrote:
> 
> > Sounds like you are using a TButton - which doesnt support
> multilines - use
> > a TBitButton instead
> >
> > Oscar
> >
> > -----Original Message-----
> > From: Mark Howard [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 04, 2000 10:00 AM
> > To: Multiple recipients of list delphi
> > Subject: [DUG]: Multi-line Caption
> >
> > OK. Fine.  I'll risk the impure design!
> > Where do you guys learn all this stuff?!
> > Thanks everyone.
> > Mark
> > OK
> > When I try this, or the similar hex solution proposed all I get
> > is
> >
> > Line1||Line2  (ie 2 heavy vertical bars in place of the CR/LF
> > characters)
> >
> > or more precisely
> >
> > ne1||Lin
> >
> > There must be something simple that I am overlooking.
> > (I *have* closed the quotes after Line1)
> > Any ideas?
> >
> > Mark
> > Oscar said
> >
> > you can use:
> >
> > btnTest.Caption := 'Line 1' + #13#10 + 'Line 2';
> >
> > on a bit button - however it does violate every UI design rule
> > known to
> > mankind ;)
> >
> > Oscar.
> >
> > Original message -
> >
> > Does anyone know how to get a two line caption on a Bit Button,
> > please?
> >
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz

Reply via email to