Problem "bad option delta" with Scrollbar 
Author Message
 Problem "bad option delta" with Scrollbar

        First of all, I warn you : I am a newbie. I am just starting playing
around with Tcl/Tk, taking examples from here and there...

        I have not tried many, but for all the code I got that use
scrollbars, I am hit with errors when dragging the scrollbar with the left
button of clicking in the SB with the middle button.

        The error message is :
Bad option "delta" : must be activate, cget, configure, fraction, get,
identify or set.

        The stacktrace shows :

bad option "delta": must be activate, cget, configure, fraction, get,
identify, or set while executing
"$w delta [expr $x - $tkPriv(pressX)] [expr $y - $tkPriv(pressY)]"
    invoked from within
"set delta [$w delta [expr $x - $tkPriv(pressX)] [expr $y - $tkPriv(pressY)]]..."
    (procedure "tkScrollDrag" line 7)
    invoked from within
"tkScrollDrag .t.scroll 13 120"
    (command bound to event)

        I am using Tcl 7.5a1 and Tk 4.1a1 under SunOs 4.1.3, displaying on
Sparc Station 5 running Solaris 2.3 with OpenLook (Virtual) Window Manager.

        I guess this is very simple ?

        TIA for your help,

--
--
  +------------------>    Gilles GOULLET    <-------------------------+
  | Combitech MC2 - 4 ch Malacher - ZIRST 4401   F-38944 MEYLAN Cedex |
  |                       Tel: +33 76 90 22 00   Fax: +33 76 41 14 61 |
  +-------------------------------------------------------------------+



Tue, 21 Jul 1998 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. bad option "identify"

2. bad option "_scrollWidget" when Freewrapped

3. TclError: bad option "<whatever>": must be cget or configure

4. bad selection option "from"

5. bad option "delete": must configure

6. Problem with menu "-command" option

7. "delta in timing report"

8. tk4.0/scrollbar.tcl and scrollbar widget delta

9. scrollbar "moveto" fraction computed wrong

10. Scrollbar information with the "get" command

11. string.join(["Tk 4.2p2", "Python 1.4", "Win32", "free"], "for")

12. Printing "bad" font

 

 
Powered by phpBB® Forum Software