On 3/30/12 4:49 PM, Ricardo Araoz wrote:
> El 30/03/12 19:14, Adrian Klaver escribió:
>> >  On 03/30/2012 03:06 PM, Paul McNett wrote:
>>> >>  On 3/30/12 2:26 PM, OKB (not okblacke) wrote:
>>>> >>>                It seems that the various Dynamic* properties are only 
>>>> >>> updated when
>>>> >>>  update() is called.  I'm not sure exactly when this is.  But my 
>>>> >>> question
>>>> >>>  is, is there any way to get "truly dynamic" (i.e., instant response)
>>>> >>>  behavior from these properties?  What I'd like is, for instance, to 
>>>> >>> have
>>>> >>>  a button whose DynamicEnabled state depends on values in another
>>>> >>>  control.  I presume I could do this by hooking into various events, 
>>>> >>> but
>>>> >>>  I'd really like to just have the DynamicEnabled be evaluated as part 
>>>> >>> of
>>>> >>>  the default handling, so that every change to the form would trigger a
>>>> >>>  recalculation of Dynamic* properties.  Is this possible?
>>> >>  I think we should consider redesigning them to do what you suggest.
>> >  Qt's signals and slots mechanism comes to mind.
>> >
> A simple observer pattern.

I don't think an observer would even be needed. The dynamic properties are 
already 
properties, with getter methods. So, the evaluation of the dynamic property 
simply 
needs to happen in the dynamic property's getter.

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