On Mar 30, 2012, at 4: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?

        There isn't any framework-wide way to do what you want. The Dynamic* 
properties were designed to change when the record changes, which is when 
update() is typically called.

        You could add a method to the button that binds to the LostFocus event 
of the controls that affect it, and call the update() from there, but I've 
never tried that myself. If you try it, let me know how (if?) it works.



-- Ed Leafe



_______________________________________________
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