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