locked
Font Size Randomly Changing RRS feed

  • Question

  • 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.
    Friday, January 19, 2007 3:16 PM

Answers

  • >>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...

     

    Tuesday, January 30, 2007 11:56 AM

All replies

  • 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

     

    Friday, January 19, 2007 5:12 PM
  • May be you have problems with gdi+ lib.?

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

    Friday, January 19, 2007 5:37 PM
  • 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.
    Friday, January 19, 2007 8:20 PM
  • May be is something wrong with windows font files (or video card settings)?
    Tuesday, January 23, 2007 2:53 PM
  • Was this an older Fox 2.6 for Windows application that was ported to Visual FoxPro? 

     

    Tuesday, January 23, 2007 3:15 PM
  • This application went from FoxPro 6 to FoxPro 9.
    Thursday, January 25, 2007 9:41 PM
  • 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.
    Thursday, January 25, 2007 9:43 PM
  • It could be a themes issue. Try setting _Screen.Themes = .F. at the beginning of your code.

    Tamar
    Thursday, January 25, 2007 9:44 PM
    Answerer
  • When the application was converted to FoxPro 9, _screen.Themes was set to False in the main.prg.
    Monday, January 29, 2007 10:09 PM
  • >>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...

     

    Tuesday, January 30, 2007 11:56 AM