RE: Win32Lib: RichEdit wordwrap

new topic     » topic index » view thread      » older message » newer message

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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu