clickability in a DataGrid

2013-01-22 Thread Sieg Lindstrom
I've used LiveCode/RunRev for some time but an new to using DataGrids. What I'd like to do (for Mac/Windows users) is include a DataGrid configured as, say, four columns of data followed by two columns that are the same in each row: one that reads "Delete" and one that reads "Edit." I'd like to

Re: clickability in a DataGrid

2013-01-22 Thread Peter Haworth
Hi Sieg, I can't think of a way to detect a click in a specific cell of a datagrid. If nobody else can come up with something, a couple of alternatives would be to customize your Edit and Delete columns to contain buttons and put your delete/edit commands in the mouseUp handler for each button, or

Re: clickability in a DataGrid

2013-01-22 Thread dunbarx
and column properties. Craig Newman -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Tue, Jan 22, 2013 7:44 pm Subject: Re: clickability in a DataGrid Hi Sieg, I can't think of a way to detect a click in a specific cell of a datagrid. If nobody else can come up

Re: clickability in a DataGrid

2013-01-22 Thread Peter Haworth
econstructed to row and column references. > > > You can also trap the "editFieldText" message, or any of the row and > column properties. > > > Craig Newman > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Tue, J

Re: clickability in a DataGrid

2013-01-22 Thread dunbarx
"Col 1 0001" which can be easily broken out as required. The handler is in the group script, right? Craig -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Tue, Jan 22, 2013 9:56 pm Subject: Re: clickability in a DataGrid Hi Craig, I tried your mous

Re: clickability in a DataGrid

2013-01-22 Thread Peter Haworth
> > Craig > > > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Tue, Jan 22, 2013 9:56 pm > Subject: Re: clickability in a DataGrid > > > Hi Craig, > I tried your mouseUp Script and all I got was a reference to graphic

Re: clickability in a DataGrid

2013-01-23 Thread Sieg Lindstrom
Thanks, Peter & Craig. It appears, Craig, that your solution is just the ticket. With your mouseUp handler in the group script, if I click on a column in the sixth row of the grid, I get the following parseable output: field "[column name] 0006" Exactly what I need. Thanks. Minor sidebar ques

Re: clickability in a DataGrid

2013-01-23 Thread Sieg Lindstrom
Alas, I spoke too soon. The output on this handler correctly identifies the column by column name but the four digit integer that follows does not correspond to the row number. Sieg Lindstrom On Jan 22, 2013, at 7:21 PM, use-livecode-requ...@lists.runrev.com wrote: > Hi. > > > There are a f

Re: clickability in a DataGrid

2013-01-23 Thread Marek Niesiobedzki
For me mouseUp handler is working correct. Marek ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode

Re: clickability in a DataGrid

2013-01-23 Thread Trevor DeVore
On Tue, Jan 22, 2013 at 7:09 PM, Sieg Lindstrom wrote: > > What I'd like to do (for Mac/Windows users) is include a DataGrid > configured as, say, four columns of data followed by two columns that are > the same in each row: one that reads "Delete" and one that reads "Edit." > I'd like to set it

Re: clickability in a DataGrid

2013-01-23 Thread Klaus on-rev
Hej Sieg, Am 23.01.2013 um 01:09 schrieb Sieg Lindstrom : > I've used LiveCode/RunRev for some time but an new to using DataGrids. > > What I'd like to do (for Mac/Windows users) is include a DataGrid configured > as, say, four columns of data followed by two columns that are the same in > eac

Re: clickability in a DataGrid

2013-01-23 Thread Peter Haworth
e, or any of the row and > column properties. > > > Craig Newman > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Tue, Jan 22, 2013 7:44 pm > Subject: Re: clickability in a DataGrid > > > Hi Sieg, > I can't think of

Re: clickability in a DataGrid

2013-01-23 Thread Peter Haworth
t; > > which can be easily broken out as required. The handler is in the group > script, right? > > > Craig > > > > > > -Original Message- > From: Peter Haworth > To: How to use LiveCode > Sent: Tue, Jan 22, 2013 9:56 pm > Subject: Re: cli

Re: clickability in a DataGrid

2013-01-23 Thread dunbarx
Who is Colin? Craig Newman -Original Message- From: Peter Haworth To: How to use LiveCode Sent: Wed, Jan 23, 2013 1:00 pm Subject: Re: clickability in a DataGrid Hi Colin, For some reason your script now works as predicted instead of giving me a reference to dgalternatingrows so

Re: clickability in a DataGrid

2013-01-23 Thread Peter Haworth
Hi Sieg, If you use my handler, the dghilitedline will give you the correct line number. By way of explanation, the "Col 1 0006" you see is the name of the field in the datagrid that holds the value. The 4-digit number at the end refers to the visible line number within the datagrid, not the abso

Re: clickability in a DataGrid

2013-01-23 Thread Sieg Lindstrom
Thanks, Peter. This script works. Thank you and apologies for my earlier confusion. Sieg Lindstrom On Jan 22, 2013, at 7:21 PM, Peter Haworth wrote: > Hi Craig, > I tried your mouseUp Script and all I got was a reference to graphic > "dgalternatingrows" no matter which row or column I click in.

Re: clickability in a DataGrid

2013-01-23 Thread Peter Haworth
Haworth > To: How to use LiveCode > Sent: Wed, Jan 23, 2013 1:00 pm > Subject: Re: clickability in a DataGrid > > > Hi Colin, > For some reason your script now works as predicted instead of giving me a > reference to dgalternatingrows so sorry for the confusion. > Pete &g

Re: clickability in a DataGrid

2013-01-23 Thread Peter Haworth
No problem Sieg, glad we found a solution for you. Pete lcSQL Software On Wed, Jan 23, 2013 at 10:29 AM, Sieg Lindstrom wrote: > Thanks, Peter. > > This script works. Thank you and apologies for my earlier confusion. > > Sieg Lindstrom > > On Jan 22, 2013, at 7:21 PM, Pete

Re: clickability in a DataGrid

2013-01-23 Thread Sieg Lindstrom
Hej Klaus, Many thanks for the tip and the link to the datagrid manual as PDF. I used too much shorthand in describing my desire to "edit" the content of the row. I'm trying to duplicate an admin tool that runs in Javascript on a server. The Javascript is a black box to me; I'm just trying to d

Re: clickability in a DataGrid

2013-01-23 Thread Robert Sneidar
mething like: field "Col 1 0001" >> >> >> which can be easily broken out as required. The handler is in the group > script, right? >> >> >> Craig >> >> >> >> >> >> -Original Message- >> From