Customized Datagrid TAB order

zryip theSlug zryip.theslug at gmail.com
Tue Apr 5 18:31:55 EDT 2011


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

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

Hi Malte,

It exists two functions in the API to get the long id of the control
inside a column. A possible solution is to use them inside the
datagrid group script.

ColumnControlOfIndex(pColumn, pIndex)

or

ColumnControlOfLine(pColumn, pLine)



Best regards,
-- 
-Zryip TheSlug- wish you the best! 8)
http://www.aslugontheroad.co.cc




More information about the use-livecode mailing list