Tk::Scale -> slow callback 
Author Message
 Tk::Scale -> slow callback

Hi all,

I've detected a problem with the Tk::Scale widget.

My Tk is 800.023 (that one provided with ActiveState Perl-5.6.1, build 633),
so it's on Win32 (Win2k, SP2 in my case).

Problem: I've got a callback that takes about 500ms to be executed.
If I want to move the slider in the scale widget it's very slow (as you
would expect with such a slow callback). But when I release the slider
at some point, I would expect, that the last call to the callback would be
executed with the value, the slider has been released on. But this is
not the case; it's some intermediate value between start of sliding and
stop of sliding.

Even worse, this problem also occurs with faster callbacks - you
just have to move the slider faster to see the error.

Questions:
- can this be fixed somehow?
- any idea for a workaround?

Thanks and regards,
--------------------------------------------------------------------------------
Gerhard Petrowitsch                Tel.: +49 8151 270 126
SP3D Chip Design GmbH     FAX:  +49 8151 270 200
Petersbrunnerstr. 17      Home Office: +49 821 9069 741

--------------------------------------------------------------------------------
Be like the ant.  When the ant gets a mixture of sand and sugar,
it selects only sugar; it neglects sand. See only good in others.
Pay no attention to the bad.                    (Sathya Sai Baba)
--------------------------------------------------------------------------------

-++**==--++**==--++**==--++**==--++**==--++**==--++**==
This message was posted through the Stanford campus mailing list
server.  If you wish to unsubscribe from this mailing list, send the



Tue, 26 Apr 2005 22:47:46 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Tk::Scale -> slow callback

2. Tk::Scale -> slow callback

3. Canvas->Scale and Tk::Scale conflict?

4. object->method() as Tk subroutine callback, How?

5. Scale widget's callback

6. Tk::Dialog => slow

7. Slow system() in callback

8. a bug in $canv->scale() ?

9. Changing the value shown by Tk::Scale

10. Changing the value shown by Tk::Scale

11. Tk::Canvas scale question

12. Perl/TK scrolled canvas scale IMAGE function???

 

 
Powered by phpBB® Forum Software