Font Used by @ ... PROMPT Command

ID: Q100451

The information in this article applies to:

SUMMARY

The font used by an @ ... PROMPT command in FoxPro for Windows is the Microsoft Windows system font, the same font that is used for all window titles and menu bars within the Windows environment. However, if the @ ... PROMPT command is in a window that has FoxFont as its font, the @ ... PROMPT command uses FoxFont instead of the Windows system font.

MORE INFORMATION

The following code example shows the difference between the two fonts:

   DEFINE WINDOW xxx FROM 1,1 SIZE 15,15 PANEL FONT "FoxFont",9
   ACTIVATE WINDOW xxx
   @ 2,2 PROMPT "One"
   @ 3,2 PROMPT "Two"
   @ 4,2 PROMPT "Three"
   STORE 1 TO mchoice
   MENU TO mchoice
   ? mchoice
   MODIFY WINDOW xxx FONT "Arial",12
   @ 6,2 PROMPT "One"
   @ 7,2 PROMPT "Two"
   @ 8,2 PROMPT "Three"
   STORE 1 TO mchoice
   MENU TO mchoice
   ? mchoice
   RELEASE WINDOW xxx

For information on how to change the Windows system font, query on the following words here in the Microsoft Knowledge Base:

   font and menu and bar and systemfont

Additional reference words: FoxWin 2.50 2.50a KBCategory: kbprg KBSubcategory: FxprgGeneral

Last Reviewed: June 27, 1995