Implementing cut, copy, paste, undo, select all
-
Here's the question: textboxes themseleves already handle all these events so if I want to make a menu item that is going to do the same thing how do I get it to simply use the functionality that's already built into the textbox? If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality. So the question is how do I get my menu commands to simply use the textboxes already built-in functionality? Thanks for the help. - Aaron
-
Here's the question: textboxes themseleves already handle all these events so if I want to make a menu item that is going to do the same thing how do I get it to simply use the functionality that's already built into the textbox? If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality. So the question is how do I get my menu commands to simply use the textboxes already built-in functionality? Thanks for the help. - Aaron
monrobot13 wrote:
If I put a menu on my form and add and edit menu that has Cut, Copy, Paste, etc and the default shortcut keys Ctrl X, Ctrl C, etc then the textboxes no longer have that functionality
My guess would be that you are overriding the default textbox menu with your own, so in essence this is why you're disabling the default behavior. So if this is the case, I guess you would have to re-implement this kind of behaviour in your new menu. I don't know whether you can merge the default functionality with your own. But then again, why on earth would you want to do that?? Correct me if I am wrong, but it's like re-inventing the wheel... isn't it? Regards, Polis Can you practice what you teach?