Re: Resizable DataGrid Question

2011-10-24 Thread zryip theSlug
On Thu, Oct 20, 2011 at 12:34 AM, Mike Doub m...@doub.com wrote: I am not sure that you can assume that the indexes always going to correspond to the display order. This is why I decided to use dgIndex function as it returns the indexes in the display order. I do plan on having multiple

Re: Resizable DataGrid Question

2011-10-24 Thread Bob Sneidar
I am a little bit fuzzy as to why you cannot use the dgindex without the math? Why get the dgIndexes and subtract 1 from the offset? It seems the only reason your code works is by happy chance. It just so happens that subtracting 1 from the offset gives you the correct index number in this

Re: Resizable DataGrid Question

2011-10-24 Thread zryip theSlug
On Mon, Oct 24, 2011 at 8:16 PM, Bob Sneidar b...@twft.com wrote: I am a little bit fuzzy as to why you cannot use the dgindex without the math? Why get the dgIndexes and subtract 1 from the offset? It seems the only reason your code works is by happy chance. It just so happens that

Re: Resizable DataGrid Question

2011-10-20 Thread Trevor DeVore
On Wed, Oct 19, 2011 at 4:56 PM, Mike Doub m...@doub.com wrote: on FillInData pDataArray set the text of field Name of me to pDataArray[LastName] \ comma space pDataArray[FirstName] space pDataArray[MiddleName] put char 1 of fld Name of me into field spacerLable of me put

RE: Resizable DataGrid Question

2011-10-20 Thread Mike Doub
Subject: Re: Resizable DataGrid Question On Wed, Oct 19, 2011 at 4:56 PM, Mike Doub m...@doub.com wrote: on FillInData pDataArray set the text of field Name of me to pDataArray[LastName] \ comma space pDataArray[FirstName] space pDataArray[MiddleName] put char 1 of fld Name of me

RE: Resizable DataGrid Question

2011-10-19 Thread Mike Doub
Sent: Tuesday, October 18, 2011 3:29 PM To: How to use LiveCode Subject: Re: Resizable DataGrid Question The selectionchanged message sent to the datagrid includes the index of the current and previous selected datagrid rows as parameters. I'm not sure if that will help though, since this happens

Re: Resizable DataGrid Question

2011-10-19 Thread Pete
a difference end if end if end FillInData -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Pete Sent: Tuesday, October 18, 2011 3:29 PM To: How to use LiveCode Subject: Re: Resizable DataGrid Question

Re: Resizable DataGrid Question

2011-10-19 Thread zryip theSlug
On Wed, Oct 19, 2011 at 10:56 PM, Mike Doub m...@doub.com wrote: I believe that I have found a way to get the previous grid item, but I must have the syntax incorrect for getting the dgIndex of me.   Nothing is being returned.  Can any DataGrid experts give me any guidance? Thanks   Mike

Re: Resizable DataGrid Question

2011-10-19 Thread zryip theSlug
On Wed, Oct 19, 2011 at 11:43 PM, zryip theSlug zryip.thes...@gmail.com wrote: on FillInData pDataArray   put pDataArray[LastName] \      comma space pDataArray[FirstName] space      pDataArray[MiddleName] into tCurrentName   set the text of field Name of me to tCurrentName   put the

RE: Resizable DataGrid Question

2011-10-19 Thread Mike Doub
, October 19, 2011 5:44 PM To: How to use LiveCode Subject: Re: Resizable DataGrid Question On Wed, Oct 19, 2011 at 10:56 PM, Mike Doub m...@doub.com wrote: I believe that I have found a way to get the previous grid item, but I must have the syntax incorrect for getting the dgIndex of me

Re: Resizable DataGrid Question

2011-10-18 Thread Pete
The selectionchanged message sent to the datagrid includes the index of the current and previous selected datagrid rows as parameters. I'm not sure if that will help though, since this happens outside of the custom behavior where the LayoutControl handler sits. Another way might be to store the