On 2/4/10 8:15 AM, Jacek Kałucki wrote:
> As introduction to next subject I intend to start, I need some
> additional information before :)
> I have two questions about data controls (dDataControlMixinBase class):
> 1) Why control validation has take place for all controls,
>       where it has sense for data controls only, I mean,
>       activeControlValid() is called in dControlMixinBase
>       against dDataControlMixinBase?

Probably a relic from early Dabo. Is it causing trouble?

> 2) Why control is validated twice, when got and when lost focus?
>       I think there is no need to validate it when got focus,
>       since each value change is flushed either, within
> _afterValueChanged() method
>       or in lost focus event.

If data is being validated on GotFocus, I believe it must be unintentional. 
Where are 
you seeing this?

Note that activeControlValid() doesn't really run validation (so it has a bad 
name). 
It simply flushes the value of the active control which has the side-effect of 
running field validation.

Paul

_______________________________________________
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