Is there a way to update a component's display from within
event handling code? I want to display a status item while
an event is processing (in addition to the 'hour glass'
cursor), but haven't found anything that works. The
event handling code in question is:
method on_restartIce(ev)
d := YesNoDialog("Really restart ICE?")
d.show_modal()
if d.isYes() then {
statusField.set_label("Restarting ICE...")
WAttrib(win,"pointer="||("wait"|"watch"))
system(ATST||"/bin/stopIceServices")
system(ATST||"/bin/startIceServices")
WAttrib(win,"pointer=arrow")
statusField.set_label("")
}
end
But the change to the label never appears (the two system
calls take about 10 seconds to complete). I've also tried
using a TextField in place of a Label, so I don't think
the problem is with changing a label, but somehow related
to the event handling thread?
Thanks for any pointers/tips!
--
Steve Wampler -- [email protected]
The gods that smiled on your birth are now laughing out loud.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Unicon-group mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/unicon-group