I want this control to word-wrap but it isn't. Do I need to add something
to one of the style options?
Use the multiline => 1 option. I did a little testing with the code you
gave, and for some reason, ES_MULTILINE doesn't work (nor did 4, the value
of ES_MULTILINE). Perhaps multiline is something that needs to be set a
creation time, but I thought that the -addstyle option took effect at
creation time, so I don't know what's going on there. In any case, using
the option above works for me.
The text gets to the last position in the richedit control fine but the
whole control isn't refreshed properly. There are grey lines through the
control and the vertical scroll bar doesn't display properly. If I
minimize my window and then restore it then it displays properly.
I suggest adding the following line to your update sub:
$MainWindow->Results->InvalidateRect(0);
This will force Windows to redraw the RichEdit. (I didn't test this on your
code, but InvalidateRect has worked for me in the past.) You may need to
use $MainWindow->InvalidateRect(0) - I seem to recall some problem in the
past with InvalidateRect on child controls. (Of course, my memory could be
faulty.)
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.