Scroll - what|where exactly wire widget and scrollbar?
Date: 2 Feb 2005 15:01:27 -0800
I'm brazilian, so, please, be patience with my horrible english.
I'm studing about scroll comands and scrollbar widget.
The commands set and y|xscrollcommand, and the -command option seems
easy to me now.
But, when I write or read one script with scrollbar I realy can't see
what exactly wire widget and his scrollbar.
The set command seems just provide information.
The -command option execute one command when something happens in
The y or xscrollcommand execute one command when view area of widget
Ok, but where can I find what say to Tk: Hey! This scrollbar is to
that widget and that widget will use [this] scrollbar?
Realy it's not much clear to understand.
Maybe somebody will say: the set command is the key.
But... the set command? Why?
Yep! I was read wiki. And I was execute examples and all about set,
-command and x|yscrollcommand is clear. But never about where is the
"glue" between scrollbar and his widget associated.
What Tk use to determine what scroolbar is use to one widget.
Someone can help me?
- Re: Packing problems
... but the frame there are in is centered horizontally. ... pack your text widget absolutely last and you'll get better resize behavior. ... Many windows applications put both the scrollbar and text widget inside a common frame that is sunken. ... commands and then resize the window to be smaller, you'll see the effect I describe in the tclscripting.com article where the scrollbars disappear before the text widget shrinks. ...
- Re: Scroll - what|where exactly wire widget and scrollbar?
... > I'm studing about scroll comands and scrollbar widget. ... > The set command seems just provide information. ... this is a 2 directional glue - there are command both ways. ...
- Re: Parse input file and create widgets
... > If you are typing it directly, then just enter the true widget ... The number of widgets in the bottom frame depends on the input file. ... (basic UI was created in SpecTCL and later I added some custom code to ... scrollbar $base.protocolscroll \ ...
- Re: different look of scrollbars between core tk and bwidget
... But on my system I see a small difference in that scrollbars of BWidget seem to be fatter than the ordinary ones. ... In the example below this is controlled by variable -ipad, its default is 1, but if you set it to 0, the scollbar along the bottom text widget looks very similar to that of the top text widget. ... that the bwidget extension uses core tk widgets as basic. ... is there a different look between the bwidget scrollbar and the core tk ...
- Re: Packing problems
... Many windows applications put both the scrollbar and text widget inside a common frame that is sunken. ... This is a Sun worksation running Solaris 10 under Sun's "Java Desktop System for Solaris". ...