Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

jrbbldr (Programmer) (OP)
24 Aug 04 13:58
Since the Tek-Tips' Search utility is not working well enough to search only this forum I have to run the risk of a possible redundant posting.

I want to do offer Cut/Copy & Paste functionality within a Grid on a Form.

Yes, I can take the time to create it myself, but I was wondering if someone else has already tackled this issue and has a solution so that I do not have to "re-invent the wheel".

Your replies are greatly appreciated.

Thanks,
JRB-Bldr
mgagnon (Programmer)
24 Aug 04 14:20
jrbbldr

Have you added this options in your menu?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.

jrbbldr (Programmer) (OP)
24 Aug 04 14:39
Mike - "Have you added this option in your menu"???

What menu?   

I want to add this to a Grid on a Form.

Thanks,
JRB-Bldr
jrbbldr (Programmer) (OP)
24 Aug 04 14:43
To add more detail to my question.

First I am doing this in VFP7 on Win2K

I was not originally planning on using a Menu on the Form to control the Cut/Copy & Paste.  

Instead, like in Excel, I want the users to be able to highlight a Range of cells and then use Ctrl+C to Copy  or  Ctrl+X  to Cut.  
Then use Ctrl+V  to Paste  the original cell contents into a new area on the Grid.

Thanks,
JRB-Bldr
mgagnon (Programmer)
24 Aug 04 15:34

Quote:

I was not originally planning on using a Menu on the Form to control the Cut/Copy & Paste.  

That was my suggestion. If you use the menu Cut/Paste options an create a grid, you can copy and paste (only one cell at a time, unless you do fancy programming to pick up all the fields).

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.

mspratt (Programmer)
24 Aug 04 16:00
Hi JRB-Bldr,

My recollection is that to have ctrl-c, ctrl-x and ctrl-v functionality in your form you have to have the menu. I believe it can be invisible, though.

Regards,

Mike
mgagnon (Programmer)
24 Aug 04 16:06

Quote:

My recollection is that to have ctrl-c, ctrl-x and ctrl-v functionality in your form you have to have the menu.

That is correct.

Quote:

I believe it can be invisible, though.

The options look disabled.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.

jrbbldr (Programmer) (OP)
24 Aug 04 16:13
Mike Gagnon - Sorry for the mis-understanding.

mspratt - I was going to use

CODE

   ON KEY LABEL <MyRoutine>
within the Form to support my CTRL+C, etc.

I am now looking at Mike Gagnon's suggestion of using the Microsoft Toolbar Menu on the form but I am running into some confusion.

1. When I add a Toolbar Menu onto the form and Insert a single button, the Form does not appear when I do a

CODE

   DO FORM <MyTestForm>

2. I have not been able to figure out how to Add an Image to the Toolbar Menu button - in spite of having added a Microsoft Image Control to the Form to create my Image File.  The Toolbar Menu can "see" it and will allow me to assign it on the General Tab, but I cannot assign it to any buttons.
Plus when I close the Toolbar oleProperties window and re-open it, the previous Image File setting is gone.

Any suggestions would be appreciated.

Thanks,
JRB-Bldr
jrbbldr (Programmer) (OP)
24 Aug 04 16:51
I just found and read
  adding pictures to toolbar with microsoft toolbar control
  Thread184-756031
where the suggestion is to use "the native VFP toolbar class" instead of the Microsoft Toolbar.

I don't know if this suggestion is equally "in sync" with Mike Gagnon's suggestion, but I am not adverse to taking an easier route as long as the results equally satisfactory.

However the posting does not explain how to go about dropping that toolbar onto a Form in the VFP7 Form Designer.  It is not in the Report Designer Toolbar and it does not appear within the OLE objects browse window.

Suggestions/Advice?

Thanks,
JRB-Bldr
mgagnon (Programmer)
24 Aug 04 17:25
jrbbldr

May I ask why your subject seems to have shifted from copy/paste in a grid to "how to add a toolbar to a form"?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.

jrbbldr (Programmer) (OP)
24 Aug 04 17:33
I want to follow along the lines of your top-most suggestion about adding a Menu.  

But instead of using a Menu on the Application, I would prefer to use a Toolbar on the specific Form to accomplish effectively the same thing.  It is a more easily recognized approach from the user's perspective.

My over-all goal has not changed - to provide Cut/Copy & Paste functionality within a Grid to my users.  But in addition to the "behind-the-scenes" CTRL+C, etc. ON KEY LABEL approach, I'd like to add the Toolbar approach.

Thanks,
JRB-Bldr

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close