Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Display file info in Fox Window 1

Status
Not open for further replies.

konLao

Programmer
Mar 10, 2003
61
US
Dear all,
When I do DIR to see file in the current folder, the display column is too wide. The info I get is wrapping around to the next line. How can I make it so I can see info on one line per file?

Thank you,
KonLao
 
konLao

And if you do DIR TO file.txt you would be a similar result. Its not a sofisticated command. You may consider using ADIR() and creatin your own display any way you like.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Play around with SET DISPLAY:

SET DISPLAY TO CGA | EGA25 | EGA43 | VGA25 | VGA50

Brian
 
Thank you baltman. It works the way I wanted.

 
Or:

_SCREEN.FontName = 'TimesNewRoman'
_SCREEN.FontSize = 8


Dave S.
[cheers]
 
Brian,
Your message intrigued me - I'd have never thought to use these old FPD settings. It turns out that they just do what Dave suggested - change the _SCREEN fontname and size - depending on what you have available.

There was a thread a while back where this topic was discussed and it was decided that by using a fixed width font like 'Courier New' or 'FoxFont' would give the best results.

Rick
 
Rick,

The advantage to stumbling around and teaching myself both basic programing and VFP at the same time is that I have no bias towards new or old commands since they're all new to me.

My question is why the default isn't the equivalent of VGA25?

Does VFP get the default from somewhere else (meant to be helpful) or is it just "the way things have always been"?

Brian
 
Brian,
The defaults are stored in the registry when VFP is first installed at HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\7.0\Desktop\ - FontName, FontSize, FontStyle and (I think) FontCharSet. I believe it starts with a standard Windows font - Arial ?

Since FoxFont 9 was used with SET DISPLAY TO VGA25 on my system, and this was only "officially" available with an install of FPW, I'm not sure what VFP would or could use instead.

Rick
 
On install the font/size is returned as Arial/10 and upon entering set display to vga25 it becomes FoxFont/9... so I guess FoxFont lives on.

Brian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top