|
|
| Fonts, ? and set alternate |
|
| Author |
Message |
Aleniko29139

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Hi;
I have lots of older code that uses commands and set alternate to create a text file and then it uses modify command to view the file.
I have noticed that on my development PC, this created a file with Fixedsys font. On the installation pcs the font is "Courier".
Is there a way to determine what font will be used when issuing commands to a set alte file
I know that I can use the font clause in the command itself but I was wondering what determines the default font used.
Thank you all for puting up with my "oldie" questions.
Visual FoxPro1
|
| |
|
| |
 |
CetinBasoz

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Aleniko,
I don't think the file is created with a font attribute. Maybe you changed your own modify command font
|
| |
|
| |
 |
Aleniko

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
I don't even know how to change my midy command font...
I would love to know how to change my default font. No idea.
|
| |
|
| |
 |
AndyKr

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
TOOLS -> OPTIONS -> IDE Tab
THere is a drop-down for "Specify Window/File Type" Choose "Text Files" Amend the settings to whatever you want!
|
| |
|
| |
 |
Aleniko

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Andy;
This won't do much for my runtime install though... Correct
Thanks.
|
| |
|
| |
 |
AndyKr

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Your what You mustn't change the font settings on and end-user's machine!
If you want this to display in a given font at run time, use DEFINE WINDOW (which includes a FONT clause) and then use MODIFY FILE nnnn WINDOW xxxx
like this:
DEFINE WINDOW textdisp FROM 2,1 TO 13,75 TITLE 'TextFile' FONT 'Tahoma', 12 CLOSE FLOAT GROW ZOOM MODIFY FILE mytext.txt WINDOW textdisp NOWAIT
|
| |
|
| |
 |
Aleniko

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Of course not. I wanted to change the default font for VFP on the machine. But the modi wind font would work too. thx.
|
| |
|
| |
 |
AndyKr

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
You could always update the registry in that case...
HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options\IDE
Look for the "TextFont" setting....
|
| |
|
| |
 |
Aleniko

|
Posted: Visual FoxPro General, Fonts, ? and set alternate |
Top |
Andy;
Thank you so much for all your help. I feel like Mcflie senior from "back to the future" going "This is good stuff".
|
| |
|
| |
 |
| |
|