Board index » delphi » Multi-line Label

Multi-line Label

I need a what is equivalent to a memo component only just display a label.

I tried making the memo read only and no tab stop, but you can still get
focus to it by clicking anywhere inside the memo.

disabling it makes the colors grayed out.

Any ideas?

Douglas

 

Re:Multi-line Label


Douglas,

Does it have to scroll?  If so, a TLabel in a ScrollBox would work,
otherwise a TLabel on it's own.  Just set Autosize to False and WordWrap to
True.

To get it to size to the right height (at run-time) I have tricked it by
setting AutoSize to True, then setting the width property to the correct
value (I think that's how I did it).

HTH,
Rich

"Douglas Olson" <doug.ol...@no-spam-pocket-technologies.com> wrote in
message news:3c484b02$1_1@dnews...

Quote
> I need a what is equivalent to a memo component only just display a label.

> I tried making the memo read only and no tab stop, but you can still get
> focus to it by clicking anywhere inside the memo.

> disabling it makes the colors grayed out.

> Any ideas?

> Douglas

Re:Multi-line Label


<blush>Wow, did I overlook that one.</blush>

Thanks.  Sizing is always static so this will work great.  How do you put in
CRLF in the caption or do I have to do that inside code?

Thanks again!

Douglas

Quote
"Rich" <raptorr...@yahoo.ca> wrote in message news:3c48510a_2@dnews...
> Douglas,

> Does it have to scroll?  If so, a TLabel in a ScrollBox would work,
> otherwise a TLabel on it's own.  Just set Autosize to False and WordWrap
to
> True.

> To get it to size to the right height (at run-time) I have tricked it by
> setting AutoSize to True, then setting the width property to the correct
> value (I think that's how I did it).

> HTH,
> Rich

> "Douglas Olson" <doug.ol...@no-spam-pocket-technologies.com> wrote in
> message news:3c484b02$1_1@dnews...
> > I need a what is equivalent to a memo component only just display a
label.

> > I tried making the memo read only and no tab stop, but you can still get
> > focus to it by clicking anywhere inside the memo.

> > disabling it makes the colors grayed out.

> > Any ideas?

> > Douglas

Re:Multi-line Label


CRLF in code, AFAIK

Rich

"Douglas Olson (Pocket Technologies)"

Quote
<doug.olson@99~pocket-technologies.com> wrote in message

news:3c485a25$1_2@dnews...
Quote
> <blush>Wow, did I overlook that one.</blush>

> Thanks.  Sizing is always static so this will work great.  How do you put
in
> CRLF in the caption or do I have to do that inside code?

> Thanks again!

> Douglas

> "Rich" <raptorr...@yahoo.ca> wrote in message news:3c48510a_2@dnews...
> > Douglas,

> > Does it have to scroll?  If so, a TLabel in a ScrollBox would work,
> > otherwise a TLabel on it's own.  Just set Autosize to False and WordWrap
> to
> > True.

> > To get it to size to the right height (at run-time) I have tricked it by
> > setting AutoSize to True, then setting the width property to the correct
> > value (I think that's how I did it).

> > HTH,
> > Rich

> > "Douglas Olson" <doug.ol...@no-spam-pocket-technologies.com> wrote in
> > message news:3c484b02$1_1@dnews...
> > > I need a what is equivalent to a memo component only just display a
> label.

> > > I tried making the memo read only and no tab stop, but you can still
get
> > > focus to it by clicking anywhere inside the memo.

> > > disabling it makes the colors grayed out.

> > > Any ideas?

> > > Douglas

Re:Multi-line Label


In article <3c485a25$1_2@dnews>, Douglas Olson (Pocket Technologies) wrote:

Quote
> Thanks.  Sizing is always static so this will work great.  How do you put in
> CRLF in the caption or do I have to do that inside code?

You have to do it in code.

--
Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Re:Multi-line Label


Quote
Peter Below (TeamB) wrote:

> > How do you put in
> > CRLF in the caption or do I have to do that inside code?

> You have to do it in code.

Double click the Caption property.

-- Erwin Dokter
   mailto:edok...@home.nl
   http://members.home.nl/edokter

Re:Multi-line Label


Erwin,
Although double clicking in caption didn't work, I did right mouse click on
the label (on the form), did a view as text, changed the caption to what I
wanted there, right mouse clicked and did a view as form.  Perfect!

Thanks for all your help!

Douglas

Quote
"Erwin Dokter" <edok...@home.nl> wrote in message

news:3C496A2F.229F@home.nl...
Quote
> Peter Below (TeamB) wrote:

> > > How do you put in
> > > CRLF in the caption or do I have to do that inside code?

> > You have to do it in code.

> Double click the Caption property.

> -- Erwin Dokter
>    mailto:edok...@home.nl
>    http://members.home.nl/edokter

Re:Multi-line Label


Douglas Olson (Pocket Technologies) wrote:

Quote

> Erwin,
> Although double clicking in caption didn't work...

Hmm, must be an RxLib thing... I can doucle click a caption in Object
Inspector (or click on "...") and I get a multi-line editor.

Quote
> I did right mouse click on
> the label (on the form), did a view as text, changed the caption to what I
> wanted there, right mouse clicked and did a view as form.  Perfect!

There are many ways :)

-- Erwin Dokter
   mailto:edok...@home.nl
   http://members.home.nl/edokter

Re:Multi-line Label


Quote
In article <3C49E884.5...@home.nl>, Erwin Dokter wrote:
> Hmm, must be an RxLib thing... I can doucle click a caption in Object
> Inspector (or click on "...") and I get a multi-line editor.

That has to be an add-on, it is not the standard property editor for
Caption properties.

--
Peter Below (TeamB)  100113.1...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be

Other Threads