Paul McNary wrote:
> Ed Leafe wrote:
>> On Sep 21, 2008, at 5:03 PM, Ed Leafe wrote:
>>
>>> afterCellEdit() is supposed to be called when an editor for a grid
>>> cell is dismissed, but I just looked at the code, and I don't see
>>> anywhere that it is called. Looks like a bug to me; I'll run some
>>> tests and post an update if it turns out to be a bug.
>>
>>
>> Spoke too soon: it is called from the wrapper for the wx-level
>> SetValue() method. So the grid's working fine in its current state.
>>
>> -- Ed Leafe
>>
>
> From within a grid.
> What I am needing to do is catch the TAB key event, which I am doing.
> Then I want to setFocus to a textbox on the form.
>
> I catch the TAB with onKeyDown, then I do the
> self.Form.txtbxXX.setFocus()
> When I'm done it is still in the grid.
> I've tried evt.stop() in the onKeyDown but can't seem to
> figure out how to get out of the grid
>
> Thanks
>
> Paul McNary
> [EMAIL PROTECTED]
>
Further Clarification
def onGridCellSelected(self, evt):
if evt.EventObject.Columns[evt.col].DataField == "itemid":
print len(evt.EventObject.CurrentCellValue)
if len(evt.EventObject.CurrentCellValue) == 0:
print "You are not here"
self.Form.edtbxRecipeNotes.setFocus()
You are not here prints
When I am done I am still in the grid cell
Thanks
Paul McNary
[EMAIL PROTECTED]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]