On Dec 28, 2009, at 8:51 PM, Paul McNett wrote:

>> Restored the call to flushValue() that was removed in the recent changes to 
>> dSpinner. It was breaking anything that used a data-bound spinner, 
>> especially the Class Designer.
> 
> It wasn't breaking my data-bound dSpinners, and anyway I don't understand why 
> this 
> would be needed since setting self.Value should result in an implicit 
> self.flushValue() anyway. Any ideas?


        Try reverting to the version before this change, and then run the Class 
Designer. Add a control to the form; it doesn't matter what. Right-click and 
select 'Edit Sizer Settings' from the context menu. Change any property that is 
modified by a spinner, and you'll see that nothing happens. Change any 
non-spinner, and notice that their effects show up in the control.

        Now update back to the current and repeat. Now the spinner props affect 
the control like the non-spinner props.

        I don't know exactly why, but I'd guess that since the control has the 
DataSource/Field set, and not the included textbox, changing the textbox's 
Value (which is what is done in dSpinner._setValue()) will have no effect, 
since flushValue() does nothing if the control doesn't have DataSource/Field 
set.


-- Ed Leafe




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

Reply via email to