Skip navigation.
Home
The QNX Community Portal

View topic - Sandclock or wait cursor or spinningwheel in Photon

Sandclock or wait cursor or spinningwheel in Photon

Isn't the name clear?

Sandclock or wait cursor or spinningwheel in Photon

Postby lullaby » Sat Mar 16, 2013 7:37 am

Hi all,

How can I implement a sandclock or a wait cursor or spinning wheel in Photon?
Or is there any other alternative for this?
I want the user to wait for some time while my application do some lengthy operation.
I can't implement a progress bar for this purpose.

Thanks,
Lullaby
lullaby
Active Member
 
Posts: 82
Joined: Fri Jun 15, 2012 6:19 am

Re: Sandclock or wait cursor or spinningwheel in Photon

Postby maschoen » Sat Mar 16, 2013 6:39 pm

If you want to do this within a window, here is how you might approach the problem.

First turn the cursor off in the window.
Put a raw widget over the entire window and put in a callback for cursor movements.
In the callback, figure out where mouse position is and put a small graphic image there.
Implement a timer so that you can cycle the graphic image.
You also have to figure out what to do when the cursor leaves the window.
You might want the image to disappear.

This is different from Mac spinning wheel in that the spinning wheel goes everywhere.
This would appear only inside the window.
maschoen
QNX Master
 
Posts: 2644
Joined: Wed Jun 25, 2003 5:18 pm

Re: Sandclock or wait cursor or spinningwheel in Photon

Postby lullaby » Mon Mar 18, 2013 10:26 am

Thank you, Maschoen for the reply.
I shall try out this option.

Thanks,
Lullaby
lullaby
Active Member
 
Posts: 82
Joined: Fri Jun 15, 2012 6:19 am


Return to GUI Programming

Who is online

Users browsing this forum: No registered users and 2 guests