Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Murphy
  Where is Ken Murphy?
 Springhill
 Canada
 Ken Murphy
 To: Arjun Bagojikop
  Where is Arjun Bagojikop?
 Sangli
 India
 Arjun Bagojikop
 Tags
Subject: RE: Display Property-Appearance API
Thread ID: 143261 Message ID: 143278 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Active X Controls & OLE Automation
Date: Monday, August 27, 2007 12:59:37 PM         
   


> Hi All
> display Property
> Appearance
>
> In Display setting API only screen resolution will be change but i want to change
> Appearance fonts. so please tell me where is API about Display Appearance Setting
>
> Thanks in Advance
> Arjun

Arjun,

Not really sure what you are asking for, but it sounds as if you want to be able to programmatically change the Windows appearance settings and resolution. Don't do this. These are things that the user sets and are the user's preferences. If I were to load an application on my machine that changed my preferred settings, that app would be removed immediately. You have control over the way your App appears - you do not have control over how Windows appears.

You do need to make sure your app will adjust to the user's resolution. There are a number of "Sizer" classes in the archives (and I believe that there is even a class in the Foxite Downloads page) but all of them use the same function. Take a look at SYSMETRIC() in the help file. SYSMETRIC() will tell you the screen resolution at runtime (the user's preferred resolution.) You know the resolution you used when you developed your app. Using these values, you can determine the ratio and then apply that ratio to all of your forms and the objects on them.

You do not need to mess with the user selected Windows Fonts. Your app, on the other hand, can use which ever fonts you select. Go to the properties window for your base classes and set the font to what ever you want. The only fonts that I would not mess with are the Menu fonts. These again are controlled by Windows Appearance. Bernard recently published an FAQ on how to modify menu fonts: https://www.foxite.com/faq/default.aspx?id=52. Note that this will only change the menu fonts within your app. It is my opinion that the user's Windows Appearance settings SHOULD control the font settings in your menu, but if you do have a specific need, go to Bernard's FAQ.

Ken
You shall know the truth - and the truth shall set you free. (John 8:33)

ENTIRE THREAD

Display Property-Appearance API Posted by Arjun Bagojikop @ 8/27/2007 10:38:29 AM
RE: Display Property-Appearance API Posted by Ken Murphy @ 8/27/2007 12:59:37 PM
RE: Display Property-Appearance API Posted by Arjun Bagojikop @ 8/27/2007 5:53:56 PM
RE: Display Property-Appearance API Posted by Ken Murphy @ 8/27/2007 7:26:03 PM
RE: Display Property-Appearance API Posted by Andy Kramek @ 8/27/2007 7:50:57 PM
RE: Display Property-Appearance API Posted by Arjun Bagojikop @ 8/28/2007 4:41:15 AM
RE: Display Property-Appearance API Posted by Andy Kramek @ 8/27/2007 1:21:21 PM