Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Form Painting property causing strange font rendering

0 views
Skip to first unread message

RealJC

unread,
Mar 22, 2007, 7:51:00 PM3/22/07
to
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

Allen Browne

unread,
Mar 23, 2007, 12:39:58 AM3/23/07
to
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?

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RealJC" <Rea...@discussions.microsoft.com> wrote in message
news:56B14865-27E2-4E8F...@microsoft.com...

0 new messages