Right now I am displaying Processing... in the Status bar which is ok. I would like the cursor to change to an hourglass while it is execting the SQL statement. Is there a call to do that?
--- Alex Tweedly <al...@tw...> wrote:
At 16:47 27/06/2004 +0100, Alex Tweedly wrote:
>At 07:16 23/06/2004 -0700, ralph heimburger wrote:
>
>>I created a report interface that when the user presses the "GO" button,
>>I want to display a "Processing..." message. I think it's basically a
>>MessageDialog with no buttons and no return values but I can't find how
>>to do it.
>
>I doubt if you should use a MessageDialog - that's really intended for
>getting input from the user (though you could probably do it).
>I'd suggest a ProgressDialog - and if it's going to take long enough to be
>worth putting up a "Processing ..." message, it's probably worth giving
>some progress info to keep the user satisfied.
>And in that case, you should consider whether it is feasible, and
>desirable, to allow the user to abort the processing ....
Well, sometimes I argue with myself ..... :-)
If you just want a simple message, then you can
- use Resource Editor to create a New / Standard Template with no menus
(save it as message.rsrc.py)
- Add a single, StaticText field
- edit message.py to make the name be MyMessage
Note - this will be a general purpose "message window" so you can re-use it
for any message for any future apps.
and then put into you main app
from message import MyMessage
and then to show / remove it, do something like
self.win = model.childWindow(self, MyMessage)
self.win.components.StaticText1.text = "My new processing ..."
self.win.SetPosition((200,-1))
self.win.Show(1)
# do the real work here
self.win.Show(0) # to remove it
-- Alex.
_____________________________________________________________
=======================================
www.StrictlyEmail.com ...our name says it all!
|