<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi<br>
    <br>
    The internals of the process are actually already threaded.&Acirc;&nbsp; I
    hadn't thought about it but I guess I could trigger the screen to be
    shown and then hidden on the threads&Acirc;&nbsp; methods.&Acirc;&nbsp; Will have a
    look.&Acirc;&nbsp; <br>
    <br>
    Thanks Joylon<br>
    &Acirc;&nbsp;<br>
    On 20/09/2011 12:54 p.m., Jolyon Smith wrote:
    <blockquote
cite="mid:CALXexOp-LqqOxS0-Fva0NsL+BigASgO5uiQPo=8orguLWVT43g@mail.gmail.com"
      type="cite">What you are describing is good old fashioned
      "background processing" and the simplest way to do background
      processing is ... in the background! &Acirc;&nbsp;:)
      <div><br>
      </div>
      <div>i.e. use a *thread* to do the work.
        <div><br>
        </div>
        <div>Once you have the work being performed in a thread there
          are any number of ways of skinning the cat by which your UI
          can present progress/completion information and detect/be
          informed when your thread has done it's work. &Acirc;&nbsp;Depending on
          the specific circumstances in your case you might get away
          with a simple OnTerminate event notification or you might need
          something a little more sophisticated involving a TEvent (in
          SyncObjs). &Acirc;&nbsp;Or some other mechanism.</div>
        <div><br>
        </div>
        <div>But ime, trying to "simulate" threading is often more
          problematic (and less robust) than just doing threading in the
          first place. &Acirc;&nbsp;:)</div>
        <div><br>
        </div>
        <div>imho. &Acirc;&nbsp;ymmv. &Acirc;&nbsp;:)</div>
        <div><br>
          <br>
          <div class="gmail_quote">On 20 September 2011 12:11, Robert
            Martin <span dir="ltr">&lt;<a moz-do-not-send="true"
                href="mailto:rob@chreos.co.nz">rob@chreos.co.nz</a>&gt;</span>
            wrote:<br>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex;"> Hi<br>
              <br>
              I have a class that I want to display a message while it
              is processing.<br>
              &Acirc;&nbsp;I want no user actions available while the processing
              occurs, the<br>
              class will (always) remove the message on completion or
              failure. &Acirc;&nbsp;I want<br>
              it to look pretty too !<br>
              <br>
              I wanted to pop up a modal form without the close buttons,
              however<br>
              calling showmodal will pause the process and stop my class
              closing the<br>
              screen. &Acirc;&nbsp;In the past I have gotten around this by putting
              the processing<br>
              code on the message screen itself, this isn't practical in
              this case.<br>
              <br>
              The class is used in a number of places throughout my
              application.<br>
              <br>
              What do people recommend I do / use?<br>
              <br>
              Thanks<br>
              Rob<br>
              <br>
              <br>
              _______________________________________________<br>
              NZ Borland Developers Group - Delphi mailing list<br>
              Post: <a moz-do-not-send="true"
                href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a><br>
              Admin: <a moz-do-not-send="true"
                href="http://delphi.org.nz/mailman/listinfo/delphi"
                target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
              Unsubscribe: send an email to <a moz-do-not-send="true"
                href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a>
              with Subject: unsubscribe<br>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: <a class="moz-txt-link-abbreviated" href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a>
Admin: <a class="moz-txt-link-freetext" href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a>
Unsubscribe: send an email to <a class="moz-txt-link-abbreviated" href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <p class="avgcert" color="#000000" align="left">No virus found in
        this message.<br>
        Checked by AVG - <a moz-do-not-send="true"
          href="http://www.avg.com">www.avg.com</a><br>
        Version: 10.0.1410 / Virus Database: 1520/3907 - Release Date:
        09/19/11</p>
    </blockquote>
  </body>
</html>