Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread EWB 2 Scheduled
Wed, Jul 15 2015 4:22 AMPermanent Link

Mark Brooks

Slikware

Avatar

Hi Tim

Can you provide a brief overview of the InterfaceManager.Scheduler in terms of when and why one should use it?

Thanks
Mark
Wed, Jul 15 2015 3:12 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mark,

<< Can you provide a brief overview of the InterfaceManager.Scheduler in
terms of when and why one should use it? >>

It's primarily used for creating/showing forms/dialogs, but what it does is
essentially queue up a given task (procedure reference):

  TInterfaceTask = procedure of object;

so that it executes during the next round of UI message loop processing in
the browser.  This is useful for situations where you don't want the
application execution to prevent UI updates, such as with progress
animation.  The task will just be added to the UI update list and be
executed in the order in which the tasks have been added.  You can also
specify that a task be executed *first* before any other tasks, via the
AImmediate parameter:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TInterfaceTaskScheduler&method=AddTask

One warning, though:  if you *do* use the scheduling, make sure that your
scheduled task *always* calls the TaskComplete method:

http://www.elevatesoft.com/manual?action=viewmethod&id=ewb2&comp=TInterfaceTaskScheduler&method=TaskComplete

when it's done or you'll run into issues.

Tim Young
Elevate Software
www.elevatesoft.com


Wed, Jul 15 2015 5:36 PMPermanent Link

Mark Brooks

Slikware

Avatar

Tks Tim
Image