Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capture the Screen Font and Width
Message
De
04/03/2002 18:41:26
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00628140
Message ID:
00628154
Vues:
16
>You can use WFONT() function to get font info.

Duh.........Don't know why I fixated on SET and SYS() and ignored the Wxxx() functions but I did. Thanks a bunch Sergey.

........Rich




>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform