Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / March 2007

Tip: Looking for answers? Try searching our database.

Form Painting property causing strange font rendering

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
RealJC - 23 Mar 2007 00:51 GMT
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 - 23 Mar 2007 05:39 GMT
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?

Signature

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.

> Hi all,
>
[quoted text clipped - 19 lines]
> Many thanks,
> RealJC
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.