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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Font in User Defined Windows

Status
Not open for further replies.

AstreliniaUSA1

Programmer
Aug 20, 2003
2
US

I have some user defined windows in my application under VFP 6.0, and I want to change the font name and size in some windows, How can I get it done? Please help out...
 
This is from the Help. I assume you are manually creating the user-defined window using a DEFINE WINDOW statement:

FONT cFontName [, nFontSize]
Specifies a font for text placed in the window. cFontName specifies the name of the font and nFontSize specifies the point size. If you omit nFontSize, a 9-point font is used.
For example, this command creates a window that displays output directed to the window in a 16-point Courier font:

DEFINE WINDOW wDisplayFont FROM 2,2 TO 12,22 FONT 'Courier', 16
If you omit the FONT clause, a 10-point FoxFont is used. If the font you specify is not available, a font with similar font characteristics is substituted.

FONT cFontName [, nFontSize]
Specifies a font for text placed in the window. cFontName specifies the name of the font and nFontSize specifies the point size. If you omit nFontSize, a 9-point font is used.
For example, this command creates a window that displays output directed to the window in a 16-point Courier font:

DEFINE WINDOW wDisplayFont FROM 2,2 TO 12,22 FONT 'Courier', 16

If you omit the FONT clause, a 10-point FoxFont is used. If the font you specify is not available, a font with similar font characteristics is substituted.



Jim Osieczonek
Delta Business Group, LLC
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top