frame .top -width 800 -height 600
canvas .top.c -width 1800 -height 1600 -yscrollcommand {.top.s set}
scrollbar .top.s -command { .top.c yview } -orient vert
pack .top
pack .top.c -side left
pack .top.s -side right -fill y -expand 1
You need to set the -scrollregion option of the canvas, typically with
something like ".t.c configure -scrollregion [.t.c bbox all]".
...M'
What you're saying is you want to move the 1800x1600 canvas around
inside the frame? It's possible (search the wiki for scrollable frames),
but I don't think that is necessary in this case.
If you want to draw in a 1800x1600 area but only view 800x600 at a time,
just make your canvas be 800x600 and the scrollregion 1800x1600. This
gives you an 800x600 viewport into a 1800x1600 drawable area. With that,
you don't need the surrounding frame (except maybe for aesthetic or
layout reasons)
canvas .top.c -width 800 -height 600 -scrollregion {0 0 1600 1800}
Then I could scroll right to see that Item?
(assuming canvas 0,0 is at upper, left)
(thanks for the help on this , scrollbars drive me nuts )
...M'
Yes.
>
> Then I could scroll right to see that Item?
> (assuming canvas 0,0 is at upper, left)
yes.