×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    37

    Please wait screen

    Hi,

    as my app takes a little bit of time to load data in some parts I'd like to show a "please wait"-screen during loading. I guess this only qorks with threads? Can someone priovide me a sample how to implement a please wait screen?

    Many thanks in advance,
    Heike

  2. #2
    Registered User
    Join Date
    Apr 2004
    Location
    The Netherlands
    Posts
    17
    Here's what I use.

    Code:
    Form waitForm = new Form("Waiting...");
    Thread waitFormThread = new Thread() {
      public void run() {
        // do the things you've got to do here.
        // in your case, load data
    
        // when you finish go to the form you want to show after loading data (or whatever you want to do with it)
        display.setCurrent(nextScreen);
      }
    };
    display.setCurrent(waitForm);
    waitFormThread.start();
    regards, Marco
    Last edited by mkleijer; 2004-06-11 at 11:00.

  3. #3
    Registered User
    Join Date
    Mar 2004
    Posts
    37
    Hi Marco,

    many thanks!

    Heike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×