On Thursday 14 November 2013 07:59:08 Ivanko B wrote: > It was because gbMonths will be disabled while a child is focused. > =============================== > Another widget (dbseName) has taboder=0 (focused by default, correct > ?) on this form . But gbMonths of this form also has a widget with > taborder=0 (dbbeM01) on disabling which we have the unexpected > OnCloseQuery. May be we have wrong distinction between widgets with > taborder=0 ? > The whole paragraph is: Martin wrote: > It was because gbMonths will be disabled while a child is focused. > twidget.nextfocus() was not called in this case. Changed meanwhile. > " > procedure twidget.setenabled(const Value: boolean); > begin > if value <> getenabled then begin > if value then begin > include(fwidgetstate,ws_enabled); > end > else begin > exclude(fwidgetstate,ws_enabled); > // if window.focusedwidget = self then begin <<<< > if checkdescendent(window.focusedwidget) then begin <<<< > nextfocus; > end; > end; > if not (csloading in componentstate) then begin > enabledchanged; > end; > end; > end; > "
Martin ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ mseide-msegui-talk mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

