Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2010-07

Many parts of screen are not redrawn in Windows XP Classic theme and Win 2000

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank Church

I came across this problem a while ago, but did not press on it because I thought it was a Windows 2000 issue only.

When the application' screen is minimized and restored many elements are not redrawn so the contents of the previous windows show through some parts of the screen.

It happens on Windows 2000, Windows XP Classic theme and Windows 2003 (nobody bothers with downloading themes).

Is that a known bug, surely others must have observed it by now. I initially thought it was a Windows 2000 driver issue until I realized that Windows 2003 and Windows XP Classic displayed the same bug.

It is present in 0.9.26 and 0.9.28

Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100718/4683e318/attachment.html>

Reply by email

Paul Ishenin
to Frank Church
Frank Church wrote 6 lines
When the application' screen is minimized and restored many elements are not redrawn so the contents of the previous windows show through some parts of the screen. It happens on Windows 2000, Windows XP Classic theme and Windows 2003 (nobody bothers with downloading themes).

What controls for example does not redraw themself (so I can test them)? I have windows xp and can test although I never noticed this problem.

Best regards,
Paul Ishenin.

Reply by email

Frank Church
to Paul Ishenin
Paul Ishenin wrote 14 lines
18.07.2010 23:37, Frank Church wrote: > When the application' screen is minimized and restored many elements are > not redrawn so the contents of the previous windows show through some parts > of the screen. > > It happens on Windows 2000, Windows XP Classic theme and Windows 2003 > (nobody bothers with downloading themes). > What controls for example does not redraw themself (so I can test them)? I have windows xp and can test although I never noticed this problem.

It happens a lot with grids and some areas of the panel, and in the Windows Classic theme, which you probably have no cause to use. It is as though the lower layers of the Windows are not drawn, ie the brushes etc. Text comes up, but underneath the next is are the contents of the previous screen.

I will construct a quick demo to display it soon.

Show quoted text 9 lines
Best regards, Paul Ishenin. -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100719/97b39445/attachment.html>

Reply by email

dmitry boyarintsev
to Paul Ishenin: What controls for example does not redraw themself (so I can test them)? I have windows…
Paul Ishenin wrote
What controls for example does not redraw themself (so I can test them)? I have windows xp and can test although I never noticed this problem.

This is not related to WinXP/2003, but could be also a problem with painting handling.

Paul Ishenin please test on Win 7 with Aero enabled (if possible).

- create a form and put a combo box on it.
- make sure the application uses themes manifest. compile and run
- move the mouse to the right part of the combo box (drop-down arrow).

combo-box changes its view to "hot" state in one frame (while it should be fade in a several frames). The same happens if you move the mouse away. ComboBox changes its view to "normal" state in one frame, though animation should be used.

You can see ComboBox animation in non LCL applications (Windows, VCL etc).

The bug is minor, so i did create the bug report.

thanks,
dmitry

Reply by email

Paul Ishenin
to dmitry boyarintsev
dmitry boyarintsev wrote
Paul Ishenin please test on Win 7 with Aero enabled (if possible).

This is unrelated problem. Double buffering can't be applied if you want the correct fade effects. I already removed the double buffering for buttons before.

Best regards,
Paul Ishenin.

Reply by email

Frank Church
to Paul Ishenin
Paul Ishenin wrote 14 lines
19.07.2010 14:50, dmitry boyarintsev wrote: > Paul Ishenin please test on Win 7 with Aero enabled (if possible). > This is unrelated problem. Double buffering can't be applied if you want the correct fade effects. I already removed the double buffering for buttons before. Best regards, Paul Ishenin.

After further tests it appears the problem arises when I use the OnDrawColumnCell event to draw the grid. When I disable the code the problem goes away, but I don't understand why it affects objects which are not part of the grid.

I'll will test the problem with another dataset and report my findings.

Show quoted text 6 lines
-- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Frank Church ======================= http://devblog.brahmancreations.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20100721/909233f2/attachment.html>

Reply by email