Posted: Wed Oct 18, 2006 2:53 pm
Update
Changes :
- improved eGrid compatibility
- added unicode / unicode+threadsafe versions
Changes :
- improved eGrid compatibility
- added unicode / unicode+threadsafe versions
http://www.purebasic.com
https://www.purebasic.fr/english/
Works perfectly. egrid can now track the sort and can notify applications when the sort is complete, thus enabling them to reinstate the selection box etc.gnozal wrote:Update
Changes :
- improved eGrid compatibility
- added unicode / unicode+threadsafe versions
A question for either gnozal or srod about tracking the sort. For lengthy sorts, is it possible to show the user a progress bar indication of the sort progress?srod wrote:Works perfectly. egrid can now track the sort and can notify applications when the sort is complete, thus enabling them to reinstate the selection box etc.
Thanks Gnozal.
AFAIK no.mskuma wrote:A question for either gnozal or srod about tracking the sort. For lengthy sorts, is it possible to show the user a progress bar indication of the sort progress?
It's probably some king of quicksort (?), but I don't know if there is a way to predict the number of comparisons needed : if the list is already sorted, i = few, if the list is in random order, i = max. And tracking the progression could slow it down.srod wrote:I was thinking of some kind of estimate. You can obviously keep a track of how many comparisons are made - with the absolute max being n(n-1)/2 etc. Course, I do not know which sort algorithm Windows employs here.
Maybe you could try to animate the icon in an thread ?mskuma wrote:Regarding my earlier posting about giving the user some feedback (e.g. progress) during a long sort, I'm resorting to using a 'cheap way' i.e. changing a status bar icon. I thought maybe I could animate it with the aid of a timer (timeSetEvent) triggered to start and end with egrid messages, but it seems no window updates are available or done during the sort (which is understandable) because I can't see any animation (only the first frame is shown). I was wondering if you can suggest another way to achieve an animated effect during a long sort, otherwise I think perhaps an ok way to give feedback is to do a popup or maybe better still, change the statusbar icon using egrid messages. If any other suggestions, I'd be glad to hear. Thanks.
Hmm.. I thought using timeSetEvent runs in its own thread.. maybe that's just the timer and not the function it calls.. thanks.gnozal wrote:Maybe you could try to animate the icon in an thread ?