Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Intercept right mouse click going from @Say to SCX
Message
From
19/01/2009 23:35:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/01/2009 19:49:33
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01375317
Message ID:
01375358
Views:
30
This message has been marked as the solution to the initial question of the thread.
>Without getting too complicated with the telling, we have an SCX that can have an @Say screen popup over it using a hot key. We have code on almost all of our objects to close the form if the right-click of the mouse is done. On @Say screens, we have ON KEY LABEL handling the right-click of the mouse to do the same. What is happening is that if the @Say is over the form, when we right-click, the @Say screen closes, but then immediately the form does also. We have tried a number of things like CLEAR TYPEAHEAD and DO WHILE INKEY(0,'M') > 0...enddo, but to no avail. Anyone have any ideas? We are almost to the point of putting up an invisible form under the @Say screen, but above the SCX and letting both of those close, keeping the SCX open. But I really don't like those sort of solutions.

I don't think you can debug this deep enough to find out what's going on.

Can't you host the @Say screen in a form? Just createobject() a form, Show Window (oForm.name), set that form's font to something monospace and then do your 2.6 magic. When you exit the Read, kill this form and you're done; the code in the popup will (my guess, fingers crossed) consume its evil powers on this host form.

Worth a try, eh?

(if this is what you're already doing, then go for that transparent kamikaze form - you can create it just when you want to show this popup, and remove it when done, if it's still there)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform