Re: about ScrolledFrame
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.tcl archive

Re: about ScrolledFrame

From: Sacha Schär <sacha.schaer@unibas.ch>
Date: Thu Feb 23 2006 - 21:39:07 CET

swan lee wrote:
> hi all,
> i've found on tcl wiki a page about a scrolledframe.
> i use it and it works well.
>
> http://mini.net/tcl/AScrolledFrame
>
> my question is:
> how can i do to determine the x scroll position when i load it
> explain : (please excuse my english....)
> i've got 60 items to display
> when i load, i would like to see the 30->60 items
>
> it means i want to display the last 50% of the scrolled frame.
>
> any idea?
> best regards
> nicolas
>

If you want to set the position the elevator (the thing you drag around)
of the scrollbar, you can use [scrolledframe::yview .sf moveto 0.5],
with .sf being your scrolledframe widget.

For more details have a look at the scrollbar documentation.

-Sacha
Received on Sun Apr 30 02:13:49 2006