![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
My app has a number of forms. Copy, cut, and paste work fine with them. The invoicing program has a secondary "form" on which it does not work. This secondary form is actually a toolbar which has a label, edit box, and command button. Copy, cut, and paste do not work with the edit box even though the system edit menu shows appropriate enabling of the functions as I highlight text in the edit box. Do copy, cut, and paste not work with toolbars, or is my problem something else? Sincerely, Gene Wirchenko |
#3
| ||||
| ||||
|
|
I just created a toolbar with one textbox, and sure enough cut/copy/paste are disabled. I suspect it has something to do with toolbars never receiving focus. If they can't receive focus, then there can't be anything to cut/copy and can't be anywhere to paste. |
|
Out of curiosity whether this was a "Microsoft thing" or a "Fox thing" I opened Word. Select some text in the Font combo box on the formatting toolbar. Cut/Copy are disabled (but paste isn't). In Excel, though, all |
|
three are enabled. |
|
So the answer to your question is "yep, that's the way it works -- but not everywhere". Microsoft can't agree across platforms. :-( |
#4
| |||
| |||
|
|
I just created a toolbar with one textbox, and sure enough cut/copy/paste are disabled. I suspect it has something to do with toolbars never receiving focus. If they can't receive focus, then there can't be anything to cut/copy and can't be anywhere to paste. |
#5
| |||
| |||
|
|
On Fri, 22 Jul 2005 13:53:46 -0700, "Dan Freeman" <spam (AT) microsoft (DOT) com wrote: I just created a toolbar with one textbox, and sure enough cut/copy/paste are disabled. I suspect it has something to do with toolbars never receiving focus. If they can't receive focus, then there can't be anything to cut/copy and can't be anywhere to paste. Now, I am stuck with what to do about it. The reason that I went with a toolbar in the first place was because I use modal forms and the subform I created was modal whether I wanted it that way or not. Setting it to nonmodal made no difference. (If I made an error here, I would love to be corrected.) I thought that a toolbar would help me get around that. It did, but at this then-unknown cost of having no copy, cut, and paste with it. Any ideas how to get both functionalities? Sincerely, Gene Wirchenko |
#6
| |||
| |||
|
|
This secondary form is actually a toolbar which has a label, edit box, and command button. Copy, cut, and paste do not work with the edit box even though the system edit menu shows appropriate enabling of the functions as I highlight text in the edit box. |
#7
| |||
| |||
|
|
This secondary form is actually a toolbar which has a label, edit box, and command button. Copy, cut, and paste do not work with the edit box even though the system edit menu shows appropriate enabling of the functions as I highlight text in the edit box. set sysmenu to _msm_edit |
#8
| |||
| |||
|
|
What about doing your own cut, copy and paste functions on a popup menu? |
|
Alternatively, instead of using a toolbar, could you do the same thing with a popup panel. What I use is a series of panels (containers) that I set to |
|
visible whenever I need them. I might have a series of buttons on a form, one might be "\<Add". When I click "Add" I hide the buttons container and show a data entry panel in which I use an apply or cancel button to close the panel (and validate/update the table as neccessary). I never do data entry directly into a grid. |
![]() |
| Thread Tools | |
| Display Modes | |
| |