Tad advanced for me - besides if the suggestions about including CF/LF work for
others, why does my app not accept them?
Are there other TBitBtn properties that clash with the suggested solutions?
Mark

Carl Reynolds wrote:

> You might have to roll your own.  If you include a "DT_WORDBREAK or " on
> each line in the implementation of TButtonGlyph (buttons.pas) that refers to
> "DT_CENTER ..." or "DT_CALCRECT", then your BitBtns will all wordwrap - and
> everything else that uses TButtonGlyph (caveat: not sure how that might
> throw out autosizing!).  Unfortunately you can't override anything because
> TButtonGlyph is implementation only, but you could just copy the lot and
> make those trivial changes for a new button of your own design (call it
> TWordwrapBitBtn and sell it on the web :).
>
> Cheers,
> Carl
>
> -----Original Message-----
> From: Mark Howard [mailto:[EMAIL PROTECTED]]
> Sent: Friday, 4 February 2000 9: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?
> >
> > TIA
> >
> > The information transmitted is intended only for the person or entity to
> > which it is addressed and may contain confidential and/or privileged
> > material. Any review, retransmission, dissemination or other use of, or
> > taking of any action in reliance upon, this information by persons or
> > entities other than the intended recipient is prohibited. If you
> > received this in error, please contact the sender and delete the material
> from
> > any computer. Opinions expressed in this transmission are not necessarily
> > those of Sanderson Computers Limited. For further clarification, please
> > contact [EMAIL PROTECTED]
> >
> >
> ---------------------------------------------------------------------------
> >     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
> >                   Website: http://www.delphi.org.nz
>
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
begin:vcard 
n:Howard;Mark
tel;cell:(021) 477 564
tel;fax:(07) 348 8178
tel;work:(07) 348 8177
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Forest Production Systems Ltd
end:vcard

Reply via email to