tab for next cell in DataGrid

Trevor DeVore lists at mangomultimedia.com
Tue Sep 22 09:41:11 EDT 2009


On Sep 21, 2009, at 3:15 PM, Beat Cornaz wrote:

> Thanks for your kind answers, Trevor.
>
> Trevor wrote :
> >The GLX App Framework won't affect tabbing in data grids as it  
> doesn't
> >process any tabkey messages.
>
> >Is it possible that an error is occurring in a CloseFieldEditor/
> >ExitFieldExitor or OpenFieldEditor message in your data grid?
>
> I don't think that an error is occuring, as a test datagrid also has  
> the same behavior (does not open the next cell on tabbing).
> I want with the insertion point in an open cell, with a tabKey open  
> the next cell on the same line (and close the one that was open). So  
> fill in a cell, hit tabKey, fill in next cell, etc.
> Is it a custom property I have to set? I don't think so, as I have  
> not found it.

There is no property to set. Look through the code I see that you need  
to make sure and pass OpenNextFieldEditor in order for tabbing to  
work. Any chance you are capturing that message but not passing?

Otherwise as long as you have > 1 column in your data grid tabbing  
will just work by default. I just tested by:

1) Dragging a data grid table onto a new stack
2) Adding two columns worth of data
3) Double-clicking on column 1 to edit
4) Pressing tab key.

I'm not aware of any way to break this unless you a) customized your  
column template and turned autotab off or b) have a script getting in  
the way of the tabKey message or c) have a script execution error that  
occurs while messages are being fired off during tabkey.

You could always trying editing the "field editor" script in the data  
grid library and seeing if the tabkey message is being called. You  
could follow the code through from there.

1) Make sure 'the preservevariables' is true.
2) Edit script of button "field editor" of stack "revdatagridlibrary"
3) Edit script of button "data grid" of stack "revdatagridlibrary"

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Application Development with Revolution Course: http://revolution.bluemangolearning.com/software/revproappdev/



More information about the use-livecode mailing list