I have a memo field that I want to create a menu with edit and paste capabilities. Can someone steer me in the right direction? I know how to do a right click menu. What is the build in function to do the edit and paste?
I've tried your code, and got the same result as Mike. Your code works perfectly. So, is there any code in your keypress or interactive or click events? Maybe it has something that changes the behaviour
DO BETTY.MPR && or whever your MPR is called
THISFORM.Refresh
I just tried that code myself, and it still works as expected. On the other hand, this was with a very simple form, with no other controls or tables.
Then again, even with the Refresh, I can't see why the insertion point should actually move to another location. If you positivley click on the point where you want the pasted-in text to go, there is nothing in the code you have mentioned which would move the insertion point back to where it was.
Look forward to hearing the result of your next test.
You've got it. I added a buffered table, and bound the edit box (that's the control with the right-click menu) to a memo field.
Now, when I do anything with the right-click menu, I get all kinds of weirdnesses -- not just the behaviour Betty described. When I removed the Refresh, everything was fine.
Betty,
When you get to your desk in the morning, I think you'll find AirCon's suggestion will solve the problem.
Thanks again for everyone help. I believe in giving the stars for good help. I really am gratiful for this site. Sometimes I can not see the forest for the trees.
The users will be delighted for their cut and paste that WORKS!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.