On Friday, March 30, 2012 09:26:39 PM OKB 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? > > Thanks,
Larry Long discovered that DynamicXXXXX functions work very well with controls. For example he created an invoice like screen that required the totals to follow the grid resizing and used DynamicPosition=(self.pdlblpos,4), DynamicWidth = (self.pdlblwidth,2) as part of the controls attributes. Any movement of the grid causes the DynamicXXXX functions to fire and update the position of the control on the screen. Therefore, I think you will be able to do similar bindings with your controls using any of the events that matter (valuechange, lostfocus, etc..). Johnf _______________________________________________ Post Messages to: Dabo-users@leafe.com 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/95227856.HiLpZGB4zG@linux-12