Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From control position to WAIT row
Message
De
09/08/1999 11:08:08
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
 
 
À
09/08/1999 11:02:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00251449
Message ID:
00251475
Vues:
9
John-

>PITA, huh?

Yeah, that's what I thought as I was writing the translation. I really thought I was probably missing something simple. I'll take yours and George's suggestions (SROW()) and post my results here.

Thanks, bunches, John.

>Hi Nancy ---
>
>Wish there was a reasonable way but there isn't :-)
>
>INT(SYSMETRIC(1)/FONTMETRIC(6,WFONT(1),WFONT(2),WFONT(3))) = Max # of "cols"
>INT(SYSMETRIC(2)/FONTMETRIC(1,WFONT(1),WFONT(2),WFONT(3))) = Max # of "rows"
>
>Now use the Top and Left properties of the open Window vs. _SCREEN and the Top and Left properties of the control vs the Window to determine an absolute position for the control. Once you have those absolutes, get a factor of those coordinates vs the maximum (use SYSMETRIC) for the screen and use divide the formulas above by that factor and use those values for the WAIT AT value.
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform