forum.vdsworld.com Forum Index forum.vdsworld.com
Visit VDSWORLD.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


VDSOBJ: RICHEDIT and Word Wrap

 
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements
View previous topic :: View next topic  
Author Message
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Wed Jan 04, 2006 4:45 am    Post subject: VDSOBJ: RICHEDIT and Word Wrap Reply with quote

Anyone know of a way to dynamically change Word Wrap on a Richedit Control without having to remove it and add it back.

I'm sure there is an API for it but I can't remember where I saw it.


Thanks in advance,

Aslan
Back to top
View user's profile Send private message Send e-mail
Aslan
Valued Contributor
Valued Contributor


Joined: 31 May 2001
Posts: 589
Location: Memphis, TN USA

PostPosted: Sun Jan 08, 2006 3:40 am    Post subject: Reply with quote

Anyone?
Back to top
View user's profile Send private message Send e-mail
SnarlingSheep
Professional Member
Professional Member


Joined: 13 Mar 2001
Posts: 759
Location: Michigan

PostPosted: Sun Jan 08, 2006 5:20 pm    Post subject: Reply with quote

ES_AUTOHSCROLL is the style that keeps an edit or richedit control from wrapping, but, good ol Microsoft didn't make it possible to dynamically change it.
So you can't just turn word-wrap on and off, without recreating the richedit control.

When turning word-wrap off, you'd need to add a horizontal scrollbar anyway, so unwrapped text can be scrolled, so you might as well recreate the control.

_________________
-Sheep
My pockets hurt...
Back to top
View user's profile Send private message Send e-mail
ShinobiSoft
Professional Member
Professional Member


Joined: 06 Nov 2002
Posts: 790
Location: Knoxville, Tn

PostPosted: Sun Jun 04, 2006 1:50 am    Post subject: Reply with quote

Another idea is to maintain two controls. One with Word wrapping enabled
and another with out word wrapping. Then you can simply hide and show
the appropriate control when necessary.

_________________
Bill Weckel
ShinobiSoft Software

"The way is known to all, but not all know it."
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    forum.vdsworld.com Forum Index -> Other Product Support/Announcements 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
You can attach files in this forum
You can download files in this forum

Twitter@vdsworld       RSS

Powered by phpBB © 2001, 2005 phpBB Group