Sean,

Thanks a million ... using

$MainWindow->InvalidateRect(0);

did the trick!


Jonathan


At 6/4/2002 05:40 AM, you wrote:
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.)


Reply via email to