Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Scrollbar prob with canvas

0 views
Skip to first unread message

Hayes John Denis

unread,
Feb 25, 1997, 3:00:00 AM2/25/97
to

Firstly I can't get the scrollbar to represent the amount of items
that are within a canvas like it is in a text widget( it seems to be
done here automatically). I.E The scrollbar is always displayed as full
- as if there is no more to display within that window.

I'm also having problems limiting the amount of a canvas that is
scrollable, that is, when the end of the display is reached it will
still allow the canvas to be scrolled as much as you want.

Any assistance would be greatfully appreciated

John Hayes

Fredrik Lundh

unread,
Feb 25, 1997, 3:00:00 AM2/25/97
to

> Firstly I can't get the scrollbar to represent the amount of items
> that are within a canvas like it is in a text widget( it seems to be
> done here automatically). I.E The scrollbar is always displayed as full

You have to explicitly specify the extent to the widget; from the
canvas man page:

Command-Line Name:-scrollregion
Database Name: scrollRegion
Database Class: ScrollRegion

Specifies a list with four coordinates describing the left, top,
right, and bottom coordinates of a rectangular region. This region
is
used for scrolling purposes and is considered to be the boundary of
the information in the canvas. Each of the coordinates may be
speci-
fied in any of the forms given in the COORDINATES section below.

Cheers /F


Hume Smith

unread,
Feb 25, 1997, 3:00:00 AM2/25/97
to

In article <E65sw...@ul.ie>, 9309...@news.ul.ie says...

>
>Firstly I can't get the scrollbar to represent the amount of items
>that are within a canvas like ... The scrollbar is always displayed as full

do you do
.canvas config -scrollregion [.canvas bbox all]
?


0 new messages