Hello all,

  We are developing quite a complicated application in Laszlo, and I
  am facing a problem now.

  I am trying to implement something like a 'hourglass cursor' to
  indicate to the user that the program is working. Initally I tried
  to do it using LzCursor methods - but the cursor just disappeared
  when some lengthy operation was in progress. So I decided to use
  statusline (I have one being essentially several <text>'s in the
  bottom), and tried to do like

    lockEvents();
    do_something_heavy_and_lengthy();
    unlockEvents();

  where lockEvents just made my statusline display 'BUSY', and
  unlockEvents made converted it back to 'Ready'.

  The problem is that looks like things are happening in parallel:
   - lockEvents() starts changing the text
   - while it is working, something heavy starts and blocks everything
   - when something heavy is done, lockEvents() is finished and is
     immediately followed by unlock making all the stuff completely
     useless: 'busy' appears for a moment AFTER the operation has been
     performed.

  So
   (1) am I right that this strange stuff ('busy' appearing after long
       operation) is because of parallel execution?
   (2) can I do anything with that?
    

-- 
Best regards,
 Michael                          mailto:[EMAIL PROTECTED]

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to