Re: Does scrollbar supports text window containing frames?
- From: Bryan Oakley <oakley@xxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 29 Nov 2007 12:15:19 GMT
coolmaster79@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
I don't quite understand the question. Here are some facts that might help you:
1) Tk doesn't support scrolling widgets in a frame. Not directly, though it's possible to do with a little work. For an example, see http://wiki.tcl.tk/9223.
2) You can scroll widgets that have been embedded in a text widget, but not if they are packed or gridded or placed. You must use the "window create" command of the text widget to embed the widgets within the text widget.
3) There is no difference between frames and labels or buttons in this regard. If you are seeing a difference you are likely misunderstanding what you are seeing.
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
It's great that you are showing code so we can help, but the above code shows nothing about how you are creating frames inside of the text widget.
.
- Follow-Ups:
- Re: Does scrollbar supports text window containing frames?
- From: coolmaster79
- Re: Does scrollbar supports text window containing frames?
- References:
- Does scrollbar supports text window containing frames?
- From: coolmaster79
- Does scrollbar supports text window containing frames?
- Prev by Date: Re: tclcurl examples please
- Next by Date: When did font appear (Was: Re: Plotchart ideas (was: Can BLT be replaced by Tcl packages ?)
- Previous by thread: Re: Does scrollbar supports text window containing frames?
- Next by thread: Re: Does scrollbar supports text window containing frames?
- Index(es):