Re: Does scrollbar supports text window containing frames?



On Nov 29, 11:15 am, coolmaste...@xxxxxxxxxxxxxx wrote:
Hi all,

in my notebook i am packing an array of frames in a text window with
a scrollbar.i tried to move the scroll bar when frames are
icreased,but it doesnt support.

when i pack labels or buttons widgets individually , it works. but
when i pack the same labels and widgets into a frame it doesn't
support

can any one explain about its behaviour.

thanks in advance
--------
set w [Notebook:frame .n $field ]

text $w.t -state disabled -yscrollcommand [list $w.vsb set] -width
80
pack $w.t -side left -fill both -expand 1
scrollbar $w.vsb -orient vertical -command [$w.t yview]
pack $w.vsb -side left -fill y

i am using Mr.D.Richard Hipps notebook

small correction in the code

text $w.t -state disabled -yscrollcommand [list $w.vsb set] -width80
pack $w.t -side left -fill both -expand 1
scrollbar $w.vsb -orient vertical -command [list $w.t yview]
pack $w.vsb -side left -fill y

.


Quantcast