I have a form on which I've a number of text fields to which I've assigned a R-click menu. The R-click function I'm interested in invokes a function but how do I either pass to that function information about the control that was clicked or determine this information in some other way while in the function?
As a fictitious example, suppose my R-click menu contains:-
Note. I assume it's obvious that I already know how to create the sub-menu.
As a fictitious example, suppose my R-click menu contains:-
Cut
Copy
Paste
-------
Reverse
and suppose a form had two fields txtA and txtB each with this R-click menu. The command 'Reverse' is there to reverse the order of characters in that field and will invoke code to do it. How would my function find out which field to process?Copy
Paste
-------
Reverse
Note. I assume it's obvious that I already know how to create the sub-menu.