|
View:
New views
8 Messages
—
Rating Filter:
Alert me
|
|
|
Need help grid afterCellEdit(row, col)Hello
I need some help with afterCellEdit(row, col) I would like to use it from an onKeyDown event I need example code for it's use. Thanks Paul McNary pmcnary@... _______________________________________________ Post Messages to: Dabo-users@... 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/48D6BC15.1030002@... |
|
|
Re: Need help grid afterCellEdit(row, col)On Sep 21, 2008, at 4:26 PM, Paul McNary wrote:
> I need some help with afterCellEdit(row, col) > > I would like to use it from an onKeyDown event > > I need example code for it's use. 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. As far as calling in from an KeyDown event handler, you'll have to explain a bit more about what you need. -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@... 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/B0EA2F40-422E-4514-A841-FEE7C2990514@... |
|
|
Re: Need help grid afterCellEdit(row, col)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 _______________________________________________ Post Messages to: Dabo-users@... 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/773ACCAA-CB1B-479B-B17E-2583E37106EC@... |
|
|
Re: Need help grid afterCellEdit(row, col)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 pmcnary@... _______________________________________________ Post Messages to: Dabo-users@... 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/48D6D4F6.90705@... |
|
|
Re: Need help grid afterCellEdit(row, col)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 > pmcnary@... > 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 pmcnary@... _______________________________________________ Post Messages to: Dabo-users@... 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/48D6E2E5.9020007@... |
|
|
Re: Need help grid afterCellEdit(row, col)On Sep 21, 2008, at 6:12 PM, Paul McNary wrote:
> 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 On my way out at the moment, so I can't test, but try this: in the KeyDown event handler, try issuing: evt.stop() That should prevent the event from being passed to the wx layer. -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@... 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/B755216F-D8B5-48E5-BCCA-5815699AB609@... |
|
|
Re: Need help grid afterCellEdit(row, col)Ed Leafe wrote:
> On Sep 21, 2008, at 6:12 PM, Paul McNary wrote: > >> 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 > > > On my way out at the moment, so I can't test, but try this: in the > KeyDown event handler, try issuing: > > evt.stop() > > That should prevent the event from being passed to the wx layer. > > -- Ed Leafe > > > > > After evt.stop() and dabo.ui.callAfter() for the setFocus, I've pretty well got what I want. Thanks Paul McNary pmcnary@... _______________________________________________ Post Messages to: Dabo-users@... 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/48D704F8.1080507@... |
|
|
Re: Need help grid afterCellEdit(row, col)On Sep 21, 2008, at 9:37 PM, Paul McNary wrote:
> After evt.stop() and dabo.ui.callAfter() for the setFocus, I've > pretty well got what I want. Cool! Glad it worked! -- Ed Leafe _______________________________________________ Post Messages to: Dabo-users@... 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/E5BF35B4-1184-4A9C-9068-FDF6596822EC@... |
| Free Forum Powered by Nabble | Forum Help |