On Oct 26, 2009, at 9:12 AM, Jacek Kałucki wrote:
> Is it normal behavior, that negative validated data controls looses
> focus,
> although evt.stop() is emitted?
No, because field validation calls the following method when it fails:
def onFieldValidationFailed(self, ctrl, ds, df, val, err):
"""Basic handling of field-level validation failure. You should
override it with your own code to handle this failure
appropriately for your application.
"""
self.StatusText = _(u"Validation failed for %s: %s") % (df, err)
dabo.ui.callAfter(ctrl.setFocus)
So the control should have focus set back to it upon failure. Where
are you seeing the evt.stop() being called?
-- Ed Leafe
_______________________________________________
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]