[Gambas-user] Passive wait ???

David Villalobos Cambronero david_villalobos_c at ...43...
Tue Sep 22 23:41:46 CEST 2009


What about using MessageLabel?

 Regards


--
David



----- Original Message ----
From: M0E Lnx <m0e.lnx at ...626...>
To: mailing list for gambas users <gambas-user at lists.sourceforge.net>
Sent: Tuesday, September 22, 2009 2:55:24 PM
Subject: [Gambas-user] Passive wait ???

I'm trying to implement soft of a "status bar" on my application.
When certain actions are performed, I want to display the successful
results on this status bar, rather than a pop-up message. This is an
attempt to reduce the number of clicks necessary (get annoying after a
while).

So I thought, to accomplish this, I can add a text label a the bottom
of my form, and use it as a status bar.
When a task is performed succesffully, I want it to display the
message for 5 seconds and then clear the status bar, so I thogh

tlStatusLbl.text = "Task succeeded"
wait 5
tlStatusLbl.text = ""

And that works, except that while it's in that WAIT loop, the whole
app lags, and the app doesn't move or refresh until the wait period is
over.

Does anyone know a way to send this wait to the background or another
way to implement this behaviour?

------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user



      





More information about the User mailing list