
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 |
+-------------------------------------------------------------------+