On Monday 02 May 2016 18:08:09 Krzysztof wrote:
> 2016-05-02 15:38 GMT+02:00 Martin Schreiber <[email protected]>:
> > In order to access GUI elements from a thread I normally use
> > "
> >  try
> >   application.lock();
> >   //access gui elements
> >   ...
> >  finally
> >   application.unlock();
> >  end;
>
> Does it mean that in MSEgui, I don't need to use TThread.Synchronize()
> methods for access to the GUI? Just:
>
> try
>   application.lock();
>   if Assigned(FOnUpdateGUI) then
>     FOnUpdateGUI(Self);
> finally
>   application.unlock();
> end;
>

Yes. To be correct:
"
 application.lock();
 try
   //access gui elements
   ...
  finally
   application.unlock();
 end;
"

Martin

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk

Reply via email to