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:
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