Results 1 to 2 of 2

Thread: MSFlexGrid copy/paste cell contents?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2002
    Posts
    16

    Question 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

  2. #2
    Frenzied Member John McKernan's Avatar
    Join Date
    Jan 2002
    Location
    SE PA
    Posts
    1,295
    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
  •  



Click Here to Expand Forum to Full Width