Datagrid lost focus to next cell

Trevor DeVore lists at
Mon Jun 21 11:04:04 CDT 2010

On Jun 18, 2010, at 7:32 PM, JosepM wrote:

> I have a datagrid inside a group. I add a row and doubleclick to  
> edit the
> cell value, and pressing tab key jump to the next cell. But If I  
> fill some
> value and press tab, the next cell is edit but lost the focus and the
> datagrid still in edit mode but without the focus.

Seems to be a bug in the engine. Focus is supposed to be on the field  
that opens for editing. If you look at EditFieldText in the data grid  
behavior script you will see these lines:

lock messages
    focus on sFieldEditor
    focus on sFieldEditor ## When tabbing through table cells engine  
would not focus on sFieldEditor without 2nd call

As you can see I have two calls to focus on the field because the  
engine was not behaving properly. When the data grid is inside another  
group even this workaround doesn't seem to do the trick. You could add  
a third call to focus on the field editor and it might do the trick.

Trevor DeVore
Blue Mango Learning Systems
Releasable Revolution Resources for Developers:

More information about the use-livecode mailing list