Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Understanding ScaleMode and control coordinates
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01347419
Message ID:
01347512
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Hi Dmitry,

>How can I change the way the button coordinates are determined to make sure that the popup menu moves with the button?

For the simple case of a container, you can add the top and left coordinates. As a generic solution that also works inside a pageframe use:
	Local lnRow, lnColumn, lcName, loPos
	lcName = Sys(2015)
	Thisform.AddObject( m.lcName, "Commandbutton" )
	loPos = GetPem( Thisform, m.lcName )
	loPos.Move( Objtoclient(This,2), Objtoclient(This,1), This.Width, This.Height )
	Thisform.ScaleMode = 0
	lnRow = loPos.Top + loPos.Height
	lnColumn = loPos.Left
	Thisform.ScaleMode = 3
	Thisform.RemoveObject( m.lcName )
--
Christof
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform