| View previous topic :: View next topic |
| Author |
Message |
Freddy Mas Guest
|
Posted: Sun May 29, 2005 3:14 pm Post subject: Wrap Text for Edit |
|
|
Hi,
I use the Edit component to display some text. However, I need to give it a specific Width and Height such as
Edit1->Width=300;
Edit1->Height=100;
How can I make the text wrapped around these dimensions....I
looked for a WrapText property but there wasn't any.
P.S: The text to be display is about 20 words and I need to fit it in the Edit component.
Thanks
Freddy
|
|
| Back to top |
|
 |
Pete Fraser Guest
|
Posted: Sun May 29, 2005 3:26 pm Post subject: Re: Wrap Text for Edit |
|
|
If you use TMemo you can do what you want.
HTH Pete
"Freddy Mas" <no-thanks (AT) nospam (DOT) com> wrote
| Quote: |
Hi,
I use the Edit component to display some text. However, I need to give it
a specific Width and Height such as
Edit1->Width=300;
Edit1->Height=100;
How can I make the text wrapped around these dimensions....I
looked for a WrapText property but there wasn't any.
|
|
|
| Back to top |
|
 |
Michael Kutscher Guest
|
Posted: Sun May 29, 2005 3:35 pm Post subject: Re: Wrap Text for Edit |
|
|
Hi,
| Quote: | How can I make the text wrapped around these dimensions....I
looked for a WrapText property but there wasn't any.
|
AFAIK, with TEdit its not possible. But its no problem eighter: Simply
use a TMemo instead of the TEdit. TMemo has a word-wrap-Propery and
there is also a Text-Property to get the content, similar to TEdit.
Good Luck
Michael Kutscher
--
www.kutschersoft.de
|
|
| Back to top |
|
 |
Freddy Mas Guest
|
Posted: Sun May 29, 2005 4:29 pm Post subject: Re: Wrap Text for Edit |
|
|
That's right, but in this case I am stuck with Edit
Is there a workaround?
"Pete Fraser" <pete.fraser (AT) frasersoft (DOT) nospam.com> wrote:
| Quote: | If you use TMemo you can do what you want.
HTH Pete
"Freddy Mas" <no-thanks (AT) nospam (DOT) com> wrote in message
news:4299dc58$1 (AT) newsgroups (DOT) borland.com...
Hi,
I use the Edit component to display some text. However, I need to give it
a specific Width and Height such as
Edit1->Width=300;
Edit1->Height=100;
How can I make the text wrapped around these dimensions....I
looked for a WrapText property but there wasn't any.
|
|
|
| Back to top |
|
 |
JD Guest
|
Posted: Mon May 30, 2005 4:42 am Post subject: Re: Wrap Text for Edit |
|
|
"Freddy Mas" <no-thanks (AT) nospam (DOT) com> wrote:
| Quote: |
That's right, but in this case I am stuck with Edit
Is there a workaround?
|
TEdit is a single-line control ... period.
~ JD
|
|
| Back to top |
|
 |
Michael Kutscher Guest
|
Posted: Mon May 30, 2005 6:54 am Post subject: Re: Wrap Text for Edit |
|
|
Hi,
| Quote: | That's right, but in this case I am stuck with Edit
Is there a workaround?
|
Why? It might look strange, but You can call a TMemo "Edit1" without
changing _anything_ else in Your code.
Good luck.
Michael
|
|
| Back to top |
|
 |
|