Re: Resizable DataGrid Question

2011-10-24 Thread zryip theSlug
On Mon, Oct 24, 2011 at 8:16 PM, Bob Sneidar 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 > subtracting 1 f

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 spe

Re: Resizable DataGrid Question

2011-10-24 Thread zryip theSlug
On Thu, Oct 20, 2011 at 12:34 AM, Mike Doub 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 sorting optio

RE: Resizable DataGrid Question

2011-10-20 Thread Mike Doub
How to use LiveCode Subject: Re: Resizable DataGrid Question On Wed, Oct 19, 2011 at 4:56 PM, Mike Doub wrote: > > on FillInData pDataArray > set the text of field "Name" of me to pDataArray["LastName"] & \ > comma & space & pDataArray["Fi

Re: Resizable DataGrid Question

2011-10-20 Thread Trevor DeVore
On Wed, Oct 19, 2011 at 4:56 PM, Mike Doub 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

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 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

Re: Resizable DataGrid Question

2011-10-19 Thread zryip theSlug
On Wed, Oct 19, 2011 at 11:43 PM, zryip theSlug 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 dgInde

RE: Resizable DataGrid Question

2011-10-19 Thread Mike Doub
Nope, same result. Thanks just the same. -= Mike -Original Message- From: use-livecode-boun...@lists.runrev.com [mailto:use-livecode-boun...@lists.runrev.com] On Behalf Of Pete Sent: Wednesday, October 19, 2011 5:22 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 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 > > > on Fi

Re: Resizable DataGrid Question

2011-10-19 Thread Pete
d 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 LiveC

RE: Resizable DataGrid Question

2011-10-19 Thread Mike Doub
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 The selectionchanged message sent to

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 i

Resizable DataGrid Question

2011-10-18 Thread Mike Doub
I am trying to use a DataGrid to create a contact list that has a spacer between each alphabetic grouping of names. I was thinking to use the non-fixed length attribute of the DataGrid and adjust the size dynamically in the LayoutControl handler as well as showing a field that would contain the s