Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows default font for labels in VFP
Message
From
18/05/2004 09:33:27
 
 
To
18/05/2004 09:00:10
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00904883
Message ID:
00904898
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.

Hi,

In my application, I would like that the font of my labels/textbox.. match the Windows default font.
But in Visual FoxPro, you must specify a fontname.
(if the Win defaut font is XXX, I would like my labels/texbox fontname to be XXX)
How to tell Visual FoxPro fontname property to match Win default font ?

Thanks a lot !
Regards

Steph


You can do this for .PRG subclasses:
* when the app start fill the public g_WindowFontName with the XXX ( use a API to get it )

DEFINE CLASSS myTextBox AS TextBox
     Fontname = m.g_WindowFontName
...
ENDDEFINE
Ill-fatedly on VFP PRG and VCX classes are two different worlds
(I hope that they will come unified to more soon).
For now you must be pleased to insert this in the init of the Form:
ThisForm.SetAll('fontname', m.g_WindowFontName)
Of course, the resize of TextBoxes it is all to your burden.

Fabio


For VCX
Previous
Reply
Map
View

Click here to load this message in the networking platform