Customized Datagrid TAB order

Pete pete at mollysrevenge.com
Tue Apr 5 18:12:20 EDT 2011


The best I can think of is that the datagrid has a property named columns
which returns a list of column names, one per line, in the order they
appear.  The dgColumn property gives you the name of the current column so
you can locate that in the columns property and move to the next/prev column
in that list.  Depending on where your script is you could probably get the
long ID with something like "the long id of control the dgcolumn of me"

Pete
Molly's Revenge <http://www.mollysrevenge.com>




On Tue, Apr 5, 2011 at 12:00 PM, Malte Brill <revolution at derbrill.de> wrote:

> Hi all,
>
> I have a datagrid that is highly customized ( no field editor, but editable
> fields in it. Data entry messes with XML and stuff). Now this all is working
> just fine, but I need to implement Tabbing from one column to the next on
> the same row. however, If I do not script anything, the TAB order is frist
> column down to the end, then next column from top to bottom. I need to TAb
> from the left to the right and than downwards (and in reverse if the
> shiftkey is down). To script this I need to know the long name (or ID) of
> the field in the next column on the same row (or if it is the last of the
> next row respectively). Anyone done something like this? Any pointers much
> appreciated.
>
> Cheers,
>
> Malte
>
> --
>
> Find my music on iTunes:
> http://itunes.apple.com/en/album/geek/id418516694?i=418516703
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>



More information about the use-livecode mailing list