Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
On Key Label RightMouse (does it block RightClick event?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01023788
Message ID:
01024167
Views:
22
I don't understand why it is working the way it does... so I don't know if I can count on it in all situations. Why does the rightclick() get invoked automatically, yet in that case it does not work correctly with selected text in a textbox?

>Mark,
>
>It sounds that you manage to do what you need. Then what is the actual problem?
>
>Ben
>
>
>>That is my experience, too. The RightClick() event will fire. However, I've noticed that if I have a "ON KEY LABEL RIGHTMOUSE" active, and then select some text in a textbox that has a rightclick event, and then rightclick in the textbox, the text becomes UNselected. Thus, any desired Cut or Copy operation with the selected text will no longer work. Very strange. Same behavior does NOT happen with an editbox. AND...even stranger... if I do issue an explicit call to rightclick() for the textbox control from within the RightMouse event, everything works correctly, INCLUDING the fact that I don't get a rightclick firing twice as you would expect if the rightclick() was still happening by default anyway.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform