PDA

View Full Version : Rotating hour glass cursor



Tyke
6th May 2011, 01:10 pm
I have a small module that goes through thousands of entities in a drawing (at the beginning the number of entities is unknown) and changes certain properties and it takes about 30 seconds to complete. The module has several subs which work on different selection sets of different size and therefore the total number of entites to be modified is unknown. In order to show that the module is busy and not crashed out is there a way of displaying a rotating hour glass symbol on screen to indicate the module is working? Similar to the Windows rotating cursor.

It doesn't have to be a rotating cursor it can be anything. I didn't think a progress bar was suitable as I don't know the final number of entities and can't increment the counter to a maximum.

eldon
6th May 2011, 01:42 pm
Can you not put the current count number to the command line as a prompt? It won't show what percentage has been done, but with numbers whirring up, it will show some activity :D

SLW210
6th May 2011, 01:51 pm
A progress bar that does not know the amount of progress keeps repeating (known as a scrolling progress bar). Why not use that?

I haven't gotten quite that far in my .net studies, but I do know there is plenty of info on creating and applying them.

Tyke
6th May 2011, 02:05 pm
A progress bar that does not know the amount of progress keeps repeating (known as a scrolling progress bar). Why not use that?

I haven't gotten quite that far in my .net studies, but I do know there is plenty of info on creating and applying them.

That would do the trick, I'll give it a try. In VB.NET you can control how the cursor displays, in this existing modified VBA not :(

@ Eldon,
That's also an idea and I don't have to worry about the progress bar.

Thanks for the ideas guys

Tyke
6th May 2011, 03:01 pm
Can you not put the current count number to the command line as a prompt? It won't show what percentage has been done, but with numbers whirring up, it will show some activity :D

I tried it your way Eldon and it achieves what I need, when I have more time I'll look into SLW's solution.

SLW210
6th May 2011, 03:31 pm
I tried it your way Eldon and it achieves what I need, when I have more time I'll look into SLW's solution.

Good deal.
It is in my experience people tend to ignore/not notice the command line and something in the center of view is much more of an attention getter.

fuccaro
7th May 2011, 05:01 am
AutoCAD itself uses the command line to show that some activities are in progress. It cycles the display of the symbols /-\ and | to create a small rotating line.

Tyke
7th May 2011, 11:18 am
AutoCAD itself uses the command line to show that some activities are in progress. It cycles the display of the symbols /-\ and | to create a small rotating line.

That's very true fuccaro and Eldon's suggestion is really a variation on that. But I'm of the mind that SLW's suggestion fits my needs the best and I will implement my own variation on his suggestion as soon as I get a few spare moments.

Thanks guys