1. Win32Lib: RichEdit wordwrap
- Posted by michaelstee at yahoo.com May 26, 2001
- 442 views
Hi folks! I've been using Win32Lib 0.52 for most of my projects, but I want to switch everything to 0.55. Under 0.52, my RichEdit control always displayed text word-wrapped. When I change to 0.55, the text is not wrapped (so a paragraph shows up as one long line). I'd like to include a menu option to switch back and forth from wrapped to non-wrapped, but I can't find any documentation on it. Is this possible? Thanks (BTW, I have used Eu and Win32 at work, a very large printing company, writing file manip. utilites. My bosses might like it if I used C or Delphi, but they *are* impressed with the speed of development and processing using Eu. Thanks, Robert!)
2. Re: Win32Lib: RichEdit wordwrap
- Posted by Derek Parnell <ddparnell at bigpond.com> May 26, 2001
- 411 views
----- Original Message ----- From: <michaelstee at yahoo.com> To: "EUforum" <EUforum at topica.com> Subject: Win32Lib: RichEdit wordwrap Hi, > Hi folks! I've been using Win32Lib 0.52 for most of my projects, > but I want to switch everything to 0.55. > Under 0.52, my RichEdit control always displayed text word-wrapped. > When I change to 0.55, the text is not wrapped (so a paragraph shows > up as one long line). I'm not sure why the word-wrap effect is not happening for you in RichEdit controls. To stop richedit controls doing word wrap, the control must be created with either WS_HSCROLL or WS_SCROLLBARS flag. Below is how the v0.55.1 version is defined. classStyle[RichEdit]=or_all({WS_CHILD, WS_VISIBLE, WS_VSCROLL, ES_DISABLENOSCROLL, ES_AUTOVSCROLL, WS_TABSTOP, ES_SAVESEL, ES_MULTILINE, WS_BORDER}) Does your version have the same code in it? Does your application change these settings by calling the classDefaults() routine? > I'd like to include a menu option to switch > back and forth from wrapped to non-wrapped, but I can't find any > documentation on it. Is this possible? I haven't found any way to flip a RichEdit from word wrap to non-word wrap after it has been created. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower."
3. Re: Win32Lib: RichEdit wordwrap
- Posted by Derek Parnell <ddparnell at bigpond.com> May 26, 2001
- 428 views
Hi again, sorry, I don't think I made myself clear. The 0.55 version you are now using, it should have these flags to work. If it doesn't you should change your copy of w32lib.ew to match this... classStyle[RichEdit]=or_all({WS_CHILD, WS_VISIBLE, WS_VSCROLL, ES_DISABLENOSCROLL, ES_AUTOVSCROLL, WS_TABSTOP, ES_SAVESEL, ES_MULTILINE, WS_BORDER}) The problem with 0.52 was that it did word wrap ok, but you couldn't scroll up and down the text. By adding ... WS_VSCROLL, ES_DISABLENOSCROLL, ES_AUTOVSCROLL, you can scroll and see the vertical scroll bar. > Thanks for looking. If you do find a way to change the attributes, > please note it in the changes list. Again, thanks! and keep up the > excellent work! I really don't think that it can be done. Once the control is created, the wrapping mode is set. I can't even change the righthand margin, would might have simulated no-wordwrap. ------ Derek Parnell Melbourne, Australia "To finish a job quickly, go slower."