On Wednesday 24 February 2016 08:02:41 Michael Ebner wrote: > Hi all, > > what's ow1_noparentwidthextend and ow1_noparentheightextend for? > twidget.getminscrollsize() checks the widgetrects of it's children while calculating the necessary virtual size in order to not clip the children. Children with ow1_noparentwidthextend or ow1_noparentheightextend are ignored for the respective dimension. For example TScrollBox uses the result of getminscrollsize in order to adjust the scrollbars, TExpandingWidget to adjust its size.
> > Is the following text correct: > > If ow1_canclosenil is set, the function CanClose is executed when the > Widget should loose the focus. To inhibit this, the function have to > return false. The virtual function CanClose returns true by default, but > can be overrided and also execute CanClose of all child widgets. > Correct. twidget.canclose(<newfocusedwidget>) is called anyway by changing the focused widget in a form. ow1_canclosenil additionally calls canclose(nil) which simulates closing the form. Some widgets distinguish between loosing focus to another widget of the form or by closing the form. For example in a data entry form mandatory fields need to be checked for canclose(nil). Martin ------------------------------------------------------------------------------ Site24x7 APM Insight: Get Deep Visibility into Application Performance APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month Monitor end-to-end web transactions and take corrective actions now Troubleshoot faster and improve end-user experience. Signup Now! http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140 _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

