Skip navigation.
Home
The QNX Community Portal

View topic - Sandclock or wait cursor or spinningwheel in Photon

Page 1 of 1

Sandclock or wait cursor or spinningwheel in Photon

PostPosted: Sat Mar 16, 2013 7:37 am
by lullaby
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

Re: Sandclock or wait cursor or spinningwheel in Photon

PostPosted: Sat Mar 16, 2013 6:39 pm
by maschoen
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.

Re: Sandclock or wait cursor or spinningwheel in Photon

PostPosted: Mon Mar 18, 2013 10:26 am
by lullaby
Thank you, Maschoen for the reply.
I shall try out this option.

Thanks,
Lullaby