Form repaint problem
Hello.
I've started using D5.01Pro on Win2KPro SP2 and have encountered an
unexpected form repaint problem. If I create a basic application
consisting of a single form and no other controls/components then I
observe that the form is not repainted correctly when another
form/window is moved over the top of it. For instance, if I open NOTEPAD
and slowly move it over the basic form then white rectangular areas are
left scattered over the form. If I then select the form the white areas
remain even during form movement and maximize/restore. Minimizing the
form or moving out of the screen area cause it to be repainted
correctly. If controls are placed on the form then they are always
repainted correctly but the form area between them is corrupted as just
described. I put a status bar on the form and updated it in the
Form.OnPaint event to show that repaints are occuring and they are but
the form remains corrupt. It's as though the corrupted areas have become
part of the form.
Other non-Delphi applications do not exhibit this behaviour although I
have noticed it sometimes occurs in the main menu bar at the top of
these windows. However, as soon as focus returns to the application the
main menu is redrawn correctly. I have not noticed the repaint problem
in the client area of non-Delphi applications.
This same Delphi application on Win95/98 (different machine) does not
exhibit the problem.
I have upgraded my display drivers to the latest level but this did not
help. I doubt the drivers are the problem because, as I have said,
non-Delphi applications do not exhibit this bahaviour.
Is there something about Delphi forms in W2K that prevent a "full"
repaint from occuring?
Any help would be appreciated.
IBM Thinkpad I1300
Lynx EM+ 4M video
Win2K Pro SP2
Delphi 5.01 Pro
TIA
Richard Walton.