dabo Commit
Revision 4701
Date: 2008-11-21 22:18:11 -0800 (Fri, 21 Nov 2008)
Author: Paul
Trac: http://svn.dabodev.com/trac/dabo/changeset/4701
Changed:
U trunk/dabo/ui/dControlMixinBase.py
Log:
Fixed the problem I reported earlier with [4698]. The form's ActiveControl
wasn't getting set in gotFocus anymore, because it starts as None so it
couldn't ever become anything but None.
Diff:
Modified: trunk/dabo/ui/dControlMixinBase.py
===================================================================
--- trunk/dabo/ui/dControlMixinBase.py 2008-11-21 20:32:07 UTC (rev 4700)
+++ trunk/dabo/ui/dControlMixinBase.py 2008-11-22 06:18:11 UTC (rev 4701)
@@ -16,10 +16,11 @@
def __onGotFocus(self, evt):
if self.Form:
- sfac = self.Form.ActiveControl
+ sfac = self.Form.ActiveControl ## cache current ac
+ self.Form._activeControl = self ## set new ac
if sfac is not None and sfac is not self:
- self.Form.activeControlValid() ## make sure
prior control's value has been flushed.
- self.Form._activeControl = self
+ # make sure prior control's value has been
flushed
+ self.Form.activeControlValid()
if self.Parent:
self.Parent._activeControl = self
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]