Font Size Randomly Changing  
Author Message
clut





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

Has anyone experienced a problem in a FoxPro 9 application, where the font size of some controls on a form change It could happen going from form1 to form2, or form3 to form2.  The size changes from 9 to 8, 12, or 18. There doesn't seem to be a pattern, and it could happen today day and not happen for several days later.


Visual FoxPro2  
 
 
AndyKr





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

I have never heard or seen such a thing!

I also don't think that VFP implements self-programmed changes.

So this must be something to do with the environment - Themes

Maybe some wierd set up in the windows IDE configuration for "active" and "inactive" windows

But without a little more detail it is hard to guess



 
 
dni





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

May be you have problems with gdi+ lib.

http://msdn2.microsoft.com/en-us/library/ms947605.aspx



 
 
clut





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

gdiplus is an option we have not explored. Is there a specific version of the gdiplus.dll that FoxPro 9 applications should be using This application has been upgraded from previous version but the gdiplus.dll that goes out with the application may not have been.

 
 
dni





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

May be is something wrong with windows font files (or video card settings)

 
 
Don Higgins





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

Was this an older Fox 2.6 for Windows application that was ported to Visual FoxPro



 
 
clut





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

This application went from FoxPro 6 to FoxPro 9.

 
 
clut





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

I've thought that it might be that, but with the number of users experienceing the problem I don't believe that would be the problem. I would also think if it was the windows font problem then other applications would have the same problem.

 
 
Tamar E. Granor





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

It could be a themes issue. Try setting _Screen.Themes = .F. at the beginning of your code.

Tamar

 
 
clut





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

When the application was converted to FoxPro 9, _screen.Themes was set to False in the main.prg.

 
 
AndyKr





PostPosted: Visual FoxPro General, Font Size Randomly Changing Top

>>I've thought that it might be that, but with the number of users experienceing the problem I don't believe that would be the problem. I would also think if it was the windows font problem then other applications would have the same problem.

As I said earlier in this thread, I doubt very much if VFP is auto-generating random font changes. This is the first time in almost 20 years working with FoxPro in all its forms that I have ever heard of such a thing and you can be sure that if this was really some sort of bug, or setting, in VFP that SOMEONE would have noticed in all that time.

So it simply HAS to be something peculiar to your environment or settings that is causing this. However, what that might be, I cannot imagine - Themes are the most likely cause of these sorts of issues, but it might also be something in the User Configuration for windows - there are a bunch of settings for fonts in the "Appearance" optioon under Screen Properties and the "random" effect may actually be due to some odd setting there. For example, if the font for "Palette Title" is set to some weird font and, somehow, is being used under some peculiar combinatio of conditions, the result might well be an apparently 'random' change of font...Just a SWAG but I really cannot imagine anything else.

The only solution I can suggest is to review the user configurations on the affected machines and see if there is anything odd there...