Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Understanding ScaleMode and control coordinates
Message
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01347419
Message ID:
01347512
Views:
24
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform