Użytkownik Paul McNett napisał:
> The assumption being that at that time, the old control is still the active 
> control.
> We found this to be true[1] in the past; if you are finding it not to be true 
> anymore
> let us know!
>
> [1] Specifically, we found that GotFocus of the new control fires before 
> LostFocus of
> the old control. And some controls don't fire LostFocus at all. So we are 
> probably
> adding redundancy in the name of safety. I've never noticed a performance 
> problem.
>    

But as you see, it doesn't call _previous_ control activeControlValid() 
method.
Instead current control activeControlValid() method is called.
This is because line
     self.Form._activeControl = self
is executed before method call. It makes no sense.
So, if control LostFocus won't fire, it will not help at all.

Point is, that for masked controls, these
wx classes uses wx.TextCtrl.SetValue() call,
what causes that EVT_TEXT(_onWxHit) is fired
many times OnInit an on every GotFocus event.
Next, because hit event sets _userChanged to True,
OnInteractiveChange event is fired, what causes
problem for me.
And yet another question, why
     oldVal == curVal == None
is indicated as control value change?

-- 
Regards
Jacek Kałucki

_______________________________________________
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]

Reply via email to