Form Painting property causing strange font rendering

G

Guest

Hi all,

I am using Access 2003 and have a form which does some enabling/disabling of
controls as the user keys data. To avoid screen flicker I set the form's
Painting property to False in the function that handles the enable/disable
process. I then set Painting back to True before exiting the function.

My problem is this: when Painting is set back to True all the label fonts
are repainted slightly darker than when the form is first painted. This
might not be too bad if not for the fact that I have a lot of controls on the
form and the effect is noticable.

I have also tested this on a fresh database with a new form with just a
couple of option buttons, and the behaviour is the same.

Has anybody else noticed this odd behaviour? Incidentally this also happens
if I use the Application.Echo method to control repainting.

Many thanks,
RealJC
 
A

Allen Browne

Painting is a weird property!

On my computers (Win XP and Win Vista), setting a form's Painting property
to False stops redrawing that window, but the window behind (e.g. Database
window) gradually replaces the pixels, and you can click through the form's
window. When you do, the form loses focus, though it is still painted in
front of the other one. At the point it loses focus, Access resets its
Painting to True.

I'm not seeing the labels paint darker though.
Does this happen even if your font is MS Sans Serif?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top