|
-
Jun 27th, 2002, 08:51 AM
#1
Thread Starter
Junior Member
MSFlexGrid copy/paste cell contents?
I am using MSFlexGrids to display data from an array. I would like to be able to copy and paste contents of a cell to a text box, but I can't figure out how to make the right button on the mouse bring up the copy/paste menu. I can capture "pressing right mouse" button event, but can't get beyond this. I found an example program that automatically brings up this copy/paste menu, but I could find not code that made it happen. I checked all the properties for the MSFlexGrid they were using and matched them in my program, but still no copy/past menu. Can anyone help? thanks...TeeTime
-
Jun 27th, 2002, 09:03 AM
#2
Frenzied Member
The Flexgrid does not have a copy/paste menu, so you will have to create one yourself. Just create a hidden menu on your form and use Popupmenu to display in response to the right-button click.
You can then copy the contents of the current cell (using the .TextMatrix property of the grid) either to the clipboard or directly to whatever control you want.
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
|