On Wednesday 13 November 2013 21:04:01 Ivanko B wrote:
> >s it possible on modal forms ?
> >
> >I don't know. Why the question?
>
>  Its' impossible for a modal form to loose its focus, correct ?
>
I hope so. :-)
There are several levels of modality:
"
 modallevelty = (ml_none,ml_application, //call eventloop
                 ml_window);             //reflect window focus
"
> PS: anyway,it's starnge with the PODPISKA that the modal form appears
> loosing its focus on disabling its internal widgets.
>
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

Reply via email to