Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Placement of a Popup
Message
De
01/03/2005 18:49:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Divers
Thread ID:
00991788
Message ID:
00991822
Vues:
16
Got it. found the solution in the msn help.

the trick is to convert the pixels to foxels.
function _Pix2Fox
PARAMETER ;
	napixel, ;
	cdimension

* *** usage
* ***	myfoxelrow = _pix2fox(pixvalnum,"V") && for vertical (row) values
* ***	myfoxelcol = _pix2fox(pixvalnum,"H") && for horizontal (col) values

RETURN m.napixel/FONTMETRIC(IIF(UPPER(m.cdimension) = "H", 6, 1))
this now gets a lot closer to my button object. i now have to add/consider form border width, titlebar, etc - and i should have my popup right where i need it.

thanks Sergey for your help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform