Re: Win32Lib: RichEdit wordwrap

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

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

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

Search



Quick Links

User menu

Not signed in.

Misc Menu