BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Wrap Text for Edit

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Freddy Mas
Guest





PostPosted: Sun May 29, 2005 3:14 pm    Post subject: Wrap Text for Edit Reply with 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.

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





PostPosted: Sun May 29, 2005 3:26 pm    Post subject: Re: Wrap Text for Edit Reply with quote



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





PostPosted: Sun May 29, 2005 3:35 pm    Post subject: Re: Wrap Text for Edit Reply with quote



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





PostPosted: Sun May 29, 2005 4:29 pm    Post subject: Re: Wrap Text for Edit Reply with quote


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





PostPosted: Mon May 30, 2005 4:42 am    Post subject: Re: Wrap Text for Edit Reply with quote


"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





PostPosted: Mon May 30, 2005 6:54 am    Post subject: Re: Wrap Text for Edit Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.