dbTalk Databases Forums  

VFP 6: Copy, Cut, Paste not Working

comp.databases.xbase.fox comp.databases.xbase.fox


Discuss VFP 6: Copy, Cut, Paste not Working in the comp.databases.xbase.fox forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gene Wirchenko
 
Posts: n/a

Default VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 02:22 PM






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


Reply With Quote
  #2  
Old   
Dan Freeman
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 03:53 PM






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. :-(

Dan


Gene Wirchenko wrote:
Quote:
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



Reply With Quote
  #3  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 04:30 PM



On Fri, 22 Jul 2005 13:53:46 -0700, "Dan Freeman" <spam (AT) microsoft (DOT) com>
wrote:

Quote:
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.
That is what I suspected. Selecting text is no problem though,
and <Delete> works fine on selected text.

My boss found this one.

Quote:
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
They work in Word 2000.

Quote:
three are enabled.
They work in Excel 2000.

Quote:
So the answer to your question is "yep, that's the way it works -- but not
everywhere". Microsoft can't agree across platforms. :-(
All together now: "SIGH!"

Sincerely,

Gene Wirchenko



Reply With Quote
  #4  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 04:35 PM



On Fri, 22 Jul 2005 13:53:46 -0700, "Dan Freeman" <spam (AT) microsoft (DOT) com>
wrote:

Quote:
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



Reply With Quote
  #5  
Old   
Jan
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 06:04 PM



Gene,

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.

HTH
Jan

"Gene Wirchenko" <genew (AT) ucantrade (DOT) com.NOTHERE> wrote

Quote:
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




Reply With Quote
  #6  
Old   
man-wai chang
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-22-2005 , 08:23 PM



Quote:
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


Reply With Quote
  #7  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-25-2005 , 06:41 PM



On Sat, 23 Jul 2005 09:23:50 +0800, man-wai chang
<toylet.toylet (AT) gmail (DOT) com> wrote:

Quote:
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
Did you try this? It does not work. Note that the edit box is
in a toolbar. I already have
set system to _medit
in my startup, and consequently, copy, cut, and paste work fine in
forms. They do not work in the toolbar.

Sincerely,

Gene Wirchenko



Reply With Quote
  #8  
Old   
Gene Wirchenko
 
Posts: n/a

Default Re: VFP 6: Copy, Cut, Paste not Working - 07-25-2005 , 06:41 PM



On Sat, 23 Jul 2005 09:04:41 +1000, "Jan" <Nomail (AT) Nowhere (DOT) com> wrote:

Quote:
What about doing your own cut, copy and paste functions on a popup menu?
I have never used popup menus in VFP. How does one set them up?
(What do I need to look up in the docs?)

Quote:
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
I can not tell what you mean by "panel". Is it simply a
container class?

Quote:
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.
[snipped previous]

Sincerely,

Gene Wirchenko



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.