Użytkownik Ed Leafe napisał:
>       I think what you are calling 'validation' is instead more like  
> updating the form's state. Would something like this work?
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> [form code]
> dropdown = dabo.ui.dDropdownList(self, ..., RegID="myDD",
>       OnValueChanged=self.evalState)
> radio = dabo.ui.dRadioList(self, RegID="myRadio")
> ...
>
> def evalState(self, evt):
>       self.myRadio.Enabled = (self.myDD.Value == "some condition")
>
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>
>       I would suggest disabling the control is preferable to having it  
> remain normal-looking, but not allow the user to change the value  
> programmatically. If it's disabled, the user knows it can't be  
> changed; otherwise, they'll be frustrated clicking on things while  
> your program prevents a change.
>       
>   

Good point, thanks Ed.

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