![]() |
Available news archives:
comp.lang.tcl
-
comp.lang.python
-
comp.security.firewalls
-
sci.crypt -
comp.lang.php -
comp.lang.javascript
|
|
comp.lang.tcl archiveRe: notebook+scale strange behaviour....
From: Robert Heller <heller@deepsoft.com>
Date: Sat Jul 30 2005 - 18:35:23 CEST
"nicolas" <sl1200mk2@gmail.com>,
"> i've tried to pack the scale in a canvas with a scrollbar, and the
If you want to use a canvas as a 'scrolling' window, you don't *pack*
canvas .c
.c create window 0 0 -window .c.s
Then, you need to update the scrollregion of the canvas:
.c configure -scrollregion [.c bbox all]
It is also possible to 'layer' things using a frame widget -- more
canvas .c
.c create window 0 0 -window .c.f
proc ConfigureScrollwindow {frame height width} {
$canvas configure -scrollregion [$canvas bbox all]
scale .c.f.s
pack .c.f.s
(I *think* this will work -- I've not tested it.)
OR you can use the tixScrolledWindow widget, which uses a frame, but
">
\/
|