Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Make popup to be at the check box
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Make popup to be at the check box
Miscellaneous
Thread ID:
01677728
Message ID:
01677728
Views:
103
Hi,

I have a check box in one of the columns of a grid. The check box appears as a button (be design). I want a pop-up menu appear when user clicks on a check box image. But the pop-up always appears in the upper-left corner of the form where grid resides. This is the code inside the Click method of the the check box:
	LOCAL lnPosX, lnPosY, selmenu, OutputChoice

	Thisform.ScaleMode = 0		     && Foxels
	lnPosX = This.Left 
	lnPosY = This.Top  
	Thisform.ScaleMode = 3             && Back to Pixels

	selmenu = 0

	define popup OutputChoice shortcut relative from (lnPosY),(lnPosX)
	on selection popup OutputChoice selmenu = 1
	define bar 1 of OutputChoice prompt "Preview Work Order"
	define bar 2 of OutputChoice prompt "Print Work Order  "
	
	activate popup OutputChoice
What am I missing? How do I make this pop-up to be right at the check box image?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform