How to change Default FONTS in Forms, Menus, status bar, title bar and so on...??
Hi, Could somebody tell me, how to change default fonts of Menus, Status bar, titke bar and so on... Right now I can see everything in Arial but I need to use different font. Thanks
You can set the StatusBar's font from it's Font property. myStatusBar.Font = new Font(...)
As for Menu and TitleBar, unless you provide OwnerDrawing, these controls will use the default settings of System Display (Start->Settings->Control Panel->Display->Appearance).
The class SystemInformation is used to draw these sttings from your system.
>> Could somebody tell me, how to change default fonts of Menus, Status bar, title bar and so on
These are controlled by the user settings in Windows itself and are (by design) under the control of the user. You can access them interactively through the "Appearance" tab of the Desktop Properties dialog. The settings are stored in the registry under HKEY_USERS for each registered user under the "Control Panel" group in "Appearance", "Colors" and "Desktop" hives.
However, I really strongly advise you not to mess with these (any application that messes around with my windows settings does not stay long on my machine, I can assure you).
If changing the Windows settings isn't an option, you have to spend a lot of time on replacing these parts. There basically two paths that I can see.
1) On the API route you can either create Windows yourself, or use BINDEVENTS() to hook into an existing VFP form. In both cases you need to implement all the messages that deal with drawing the borders. Use GDI+ for displaying the text.
2) Create them as VFP controls. Make your form borderless without a titlebar. Then use a container and a label to simulate the title bar. You need to implement things like the window menu, allowing to drag the window around, minimizing on double-click, etc. all yourself.
For the menu and the title bar you can either use ActiveX controls, or one of the VFP classes that are available on various places. For example, recently there's been an article about the CommandBar library in FoxPro Advisor.
One last word: If a user needs Mongolian characters, it's likely that their system is already configured to display Mongolian characters. If you have a non-Monogolian windows system, try to find a spare computer or use Virtual PC to install a Mongolian version of Windows. VFP is quite sensitive to the operating system in this regards. Many non-Western language features only work well if the operating system matches the application language.
How to change Default FONTS in Forms, Menus, status bar, title bar and so on...??
How to change Default FONTS in Forms, Menus, status bar, title bar and so on...??
doonavin
You can set the StatusBar's font from it's Font property.
myStatusBar.Font = new Font(...)
As for Menu and TitleBar, unless you provide OwnerDrawing, these controls will use the default settings of System Display
(Start->Settings->Control Panel->Display->Appearance).
The class SystemInformation is used to draw these sttings from your system.
Regards,
-chris
Sweeps78
These are controlled by the user settings in Windows itself and are (by design) under the control of the user. You can access them interactively through the "Appearance" tab of the Desktop Properties dialog. The settings are stored in the registry under HKEY_USERS for each registered user under the "Control Panel" group in "Appearance", "Colors" and "Desktop" hives.
However, I really strongly advise you not to mess with these (any application that messes around with my windows settings does not stay long on my machine, I can assure you).
AbhishekVerma
1) On the API route you can either create Windows yourself, or use BINDEVENTS() to hook into an existing VFP form. In both cases you need to implement all the messages that deal with drawing the borders. Use GDI+ for displaying the text.
2) Create them as VFP controls. Make your form borderless without a titlebar. Then use a container and a label to simulate the title bar. You need to implement things like the window menu, allowing to drag the window around, minimizing on double-click, etc. all yourself.
For the menu and the title bar you can either use ActiveX controls, or one of the VFP classes that are available on various places. For example, recently there's been an article about the CommandBar library in FoxPro Advisor.
One last word: If a user needs Mongolian characters, it's likely that their system is already configured to display Mongolian characters. If you have a non-Monogolian windows system, try to find a spare computer or use Virtual PC to install a Mongolian version of Windows. VFP is quite sensitive to the operating system in this regards. Many non-Western language features only work well if the operating system matches the application language.