|
-
Sep 30th, 2004, 09:56 AM
#1
Thread Starter
Hyperactive Member
Cut, Copy, Paste [RESOLVED]
Hello....
If no text is selected in my textbox, I don't want the copy or cut functions to be available on my toolbar/menu. Likewise if the clipboard is empty I don't want to Paste to be available.
I'm thinking that on the keypress/mousemove/any activity events of my textbox I could put in the appropriate code to enable and disable the relevant options. But this seems a bit messy to me. Is this the correct way to go about doing this or does anyone know of a better way?
Thanks
Last edited by Help321; Sep 30th, 2004 at 11:29 AM.
-
Sep 30th, 2004, 10:16 AM
#2
-
Sep 30th, 2004, 10:35 AM
#3
Thread Starter
Hyperactive Member
That's perfect for half of my problem, thanks.
Have you got any ideas on how to do this for cut, copy and paste icons on a toolbar?
-
Sep 30th, 2004, 10:52 AM
#4
-
Sep 30th, 2004, 11:06 AM
#5
Thread Starter
Hyperactive Member
Cheers again. This is the route I was going down. As you say, there may be better solutions, but for now I'll go down this path. Thanks again for your help, appreciate it.
-
Sep 30th, 2004, 11:29 AM
#6
Thread Starter
Hyperactive Member
I have put the code to disable/enable the relevant menu options and toolbar options in the Click Event of the Edit menu.
Then called these on the key_up and mouse_up events of my textbox. 
Enjoy
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|