1. RE: Win32Lib: RichEdit wordwrap

Derek Parnell wrote:
> 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?

No, the class styles in 0.52 do not have these: WS_VSCROLL,
  ES_DISABLENOSCROLL, ES_AUTOVSCROLL


> 
> > 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

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!

new topic     » topic index » view message » categorize

2. RE: Win32Lib: RichEdit wordwrap

michaelstee at yahoo.com wrote:
> 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!)
> 

Hi,

  It's been a long time since I've done any win32lib programming, but 
maybe since once the controls are created, you can't change them.  Maybe 
you could create two RichEdit controls one with word wrap and one with 
out, then make one visible and the other not visible depending on which 
mode they are in, just locate them in the same position on the screen.  
Just a though.

+ + + Ferlin Scarborough - Centreville, Alabama - USA + + +

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu