Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A new global default font.....
Message
From
04/08/2000 17:48:15
 
 
To
04/08/2000 17:28:06
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00401230
Message ID:
00401426
Views:
22
>All I want, sigh, is for VFP *not* to default to Arial for new controls. Period. I know it can be worked around in a myriad of ways but I think this would be a simple thing......
>

John, a SWAG - try changing the following in your registry:

Registry Key:

HKEY_CURENT_USER\Software\Microsoft\VisualFoxPro\6.0\Desktop

Registry Value: FontName

It's a REG_SZ; mine is Arial; you can try changing that, but I can't make it stick beyond one VFP session. I've played around with it; closing VFP forces its value back to Arial, so either it's controlled by another key somewhere, or it's being reset by another Fox resource.

>
>>When the first columns are added, you can just double-click the grid.FontName to let it change, the right-click and ResetToDefault. All the contained controls get changed.
>>If you've resized the columns before setting the font, or are adding new columns or controls, it is trickier.
>>I wrote this little prg to help me with this, and gave it an ON KEY LABEL call.
>>
** FixGrid()
>>LOCAL ji, laCols(1,1), laObj(1,1), loGrid
>>ASELOBJ(laObj)
>>IF TYPE("laObj")#"O" OR UPPER(laObj[1].BaseClass)#"GRID"
>>  RETURN
>>ENDIF
>>loGrid = laObj[1]
>>DIMENSION laCols(loGrid.ColumnCount)
>>FOR ji = 1 TO loGrid.ColumnCount
>>  laCols[ji] = loGrid.Columns(ji).Width
>>ENDFOR
>>loGrid.ResetToDefault("FontName")
>>loGrid.ResetToDefault("FontSize")
>>FOR ji = 1 TO loGrid.ColumnCount
>>  loGrid.Columns(ji).Width = laCols[ji]
>>ENDFOR
>>HTH
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform