Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture the Screen Font and Width
Message
 
 
À
04/03/2002 18:00:25
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00628140
Message ID:
00628148
Vues:
15
This message has been marked as the solution to the initial question of the thread.
You can use WFONT() function to get font info.

>I seems that WCOLS() in the window resulting from the code below is a function of the Screen Font in effect at the time the window is defined
>
>  lnWinWidth = MAX(16,4+lnMaxWidth*lnColsNeeded)
>  DEFINE WINDOW (lcWinName);
>   FROM 1,0 ;
>   TO IIF(lnColsNeeded > 1,24,ALEN(laItems)+4),lnWinWidth;
>   TITLE "Check Items As Needed" ;
>   FONT "Fixedsys", 9 ;
>   NOFLOAT ;
>   NOCLOSE ;
>   NOMINIMIZE ;
>   SYSTEM ;
>   COLOR RGB(0,0,0,198,198,198)
>
>
>In FPW 2.6 is there some way of determining the current SCREEN settings so that I can capture, change, and reset them when the utility ends?
>
>Alternatively, is there some PUSH/POP combination which would allow me to save the settings and then restore them?
>
>Thanks to all..........Rich
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform