| View previous topic :: View next topic |
| Author |
Message |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Wed Jan 04, 2006 4:45 am Post subject: VDSOBJ: RICHEDIT and Word Wrap |
|
|
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 |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Sun Jan 08, 2006 3:40 am Post subject: |
|
|
| Anyone? |
|
| Back to top |
|
 |
SnarlingSheep Professional Member


Joined: 13 Mar 2001 Posts: 759 Location: Michigan
|
Posted: Sun Jan 08, 2006 5:20 pm Post subject: |
|
|
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 |
|
 |
ShinobiSoft Professional Member


Joined: 06 Nov 2002 Posts: 790 Location: Knoxville, Tn
|
Posted: Sun Jun 04, 2006 1:50 am Post subject: |
|
|
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 |
|
 |
|