Somehow, the ProgressWheel icon in the library is deceitful : once dropped over the window, the rickety 16 pixels wide thing appears extremely tiny. Like a poor little cursor jumped away from the mouse.
The library icon, on the other hand, with its 90 pixels diameter, is much more visible.
So what I did was to lift the library icon, render the background transparent, and rotate the picture in a canvas with a timer.
C’est pas mal, mais le problme est que l’image ne tourne pas sur un axe fixe.
Ce qui fait un dcalage a chaque rotation, pourtant ton image est bien de 45 pixel de cot au dpart.
[quote=83372:@Pierre-Guy Lecompte]C’est pas mal, mais le problème est que l’image ne tourne pas sur un axe fixe.
Ce qui fait un décalage a chaque rotation, pourtant ton image est bien de 45 pixel de coté au départ.[/quote]
J’ai remarqué, mais l’image est parfaitement symétrique. Je penche pour un effet d’optique.
Michel… I hope you don’t mind but I took the liberty of making some modifications to your code.
Basically I encapsulated the entire thing in a self-contained “container control” so it can be dragged and dropped
as a single entity (and you can even have multiple independant instances)… and the rotation period can be controlled as well.
I gave full credit to you in the notes, as well as a link to this forum topic.
[quote=84552:@Dave S]Michel… I hope you don’t mind but I took the liberty of making some modifications to your code.
Basically I encapsulated the entire thing in a self-contained “container control” so it can be dragged and dropped
as a single entity (and you can even have multiple independant instances)… and the rotation period can be controlled as well.[/quote]
Dave, I believe we all benefit from sharing knowledge, and what you did is very nice indeed. It will be much easier for others to apply now Thank you for improving the project.
When I was encapsulating it in the container control… Yes I thought about a color version
which can be done by changing the pseudo-gradient that is there now to a true gradient…
Glad that my little idea is of use. Even if it started with a wobbly wheel
[quote=84659:@Dave S]When I was encapsulating it in the container control… Yes I thought about a color version
which can be done by changing the pseudo-gradient that is there now to a true gradient…[/quote]
The container control is a great idea. makes it so easy to use. Just one detail : the canvas should be locked in to prevent to move it by mistake. It is transparent and moves to easily.
As for color, I thought of that as well. It is quite easy to do : instead of a unique variable “couleur”, each color can have a different value, which can be modified each time the time ticks. The trick will be to set the increment in function of the original color to keep a constant color along the gradient.
It will not look like an Apple or Android Progress Wheel once colors are applied, though.
Since I completed this, I have been more sensitive to the other progress wheels : the only one in color I can think of is the one used by Paypal :
There is also the one from Windows ; a series of white spots of various sizes going around in a newtonian movement.
And the Linux one is made or circles that go around like a bracelet rosary.
I am not too sure the market would be so profitable I rather make income from credit card paid apps in the MAS or on my web sites.
But you are right : it could look like a spinning rainbow umbrella, with a color by branch. Then it would somehow be a cousin of the color beach ball cursor.
Or it could use a color gradient.
I am certain that color will be implemented sooner rather than later. By me, Dave or another