Page 1 of 1

shortcut command

Posted: Fri Jan 10, 2014 11:28 am
by link76
Hello,
I would like to simulate pressing CTRL + C on double click, and copy the contents selected on the dg in the clip-board,

thank you

Re: shortcut command

Posted: Fri Jan 10, 2014 2:58 pm
by dunbarx
Hi.

As a quick test, make a datagrid with several line of data in it, and a button. Place this in the button script:

Code: Select all

on mouseDoubleUp
   get the dgHilitedLines of grp 1
end mouseDoubleUp


Hilite a line in the DG, and then click the button.

Now this only returns the line number that was selected, but you can substitute any other property of the DG that you need.

Craig Newman