Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tk::scrolled(3pm) [debian man page]

Scrolled(3pm)						User Contributed Perl Documentation					     Scrolled(3pm)

NAME
Tk::Scrolled - Create a widget with attached scrollbar(s) SYNOPSIS
$whatever = $parent->Scrolled(Whatever ?,-scrollbars=>where? ?,...?); DESCRIPTION
To stop a flood of ScrlWhatever widgets Perl/Tk introcuded the special constructor Scrolled. Scrolled creates a widget of the given Class Whatever with attached scrollbar(s). OPTIONS
All options beside -scrollbars explained below are passed to the Whatever widget constructor. -scrollbars Expects as argument the position where the scrollbars should be created: w, e or n, s or a combination of them. If the one or both positions are prefixed with o the scrollbar will only show up if there is a 'real' need to scroll. ADVERTISED SUBWIDGETS
See "Subwidget" in Tk::mega how to use advertised widgets. scrolled the scrolled widget widget same as scrolled above. widget is the kind of widget passed to scrolled as first argument in all lowercase. xscrollbar the Scrollbar widget used for horizontal scrolling (if it exists) yscrollbar the Scrollbar widget used for vertical scrolling (if it exists) corner a frame in the corner between the vertical and horizontal scrolbar BUGS
If a widget does not support -{x,y}scrollcommand options, Scrolled does not complain if the specified widget class does not support them. E.g., $parent->Scrolled('Button', ...) One does not get an error message or warning when one tries to configure scrollbars after the widget construction: $ascrolled->configure(-scrollbars => 'e'); SEE ALSO
Tk::Scrollbar KEYWORDS
scrolled, scrollbar perl v5.14.2 2010-05-29 Scrolled(3pm)

Check Out this Related Man Page

TIX(3)							       Tix Built-In Commands							    TIX(3)

NAME
tixScrolledWindow - Create and manipulate Tix ScrolledWindow widgets SYNOPSIS
tixScrolledWindow pathName ?options? -anchor -background -cursor -relief -borderWidth WIDGET-SPECIFIC OPTIONS [-height height] Specifies the desired height for the window, in pixels. [-scrollbar scrollbar] Specifies the display policy of the scrollbars. The following values are recognized: auto ?+x? ?-x? ?+y? ?-y? When -scrollbar is set to "auto", the scrollbars are shown only when needed. Additional modifiers can be used to force a scrollbar to be shown or hidden. For example, "auto -y" means the horizontal scrollbar should be shown when needed but the vertical scrollbar should always be hidden; "auto +x" means the vertical scrollbar should be shown when needed but the hori- zontal scrollbar should always be shown, and so on. both Both scrollbars are shown none The scrollbars are never shown. x Only the horizontal scrollbar is shown; y Only the vertical scrollbar is shown. [-width width] Specifies the desired width for the window, in pixels. [-xscrollincrement xScrollIncrement] Specifies by how much the win- dow should be scrolled in the horizontal direction when the user presses the arrows in the horizontal scrollbar. In Pixels. [-yscrollincrement yScrollIncrement] Specifies by how much the window should be scrolled in the vertical direction when the user presses the arrows in the horizontal scrollbar. In pixels. SUBWIDGETS
Name: hsb Class: Scrollbar The horizontal scrollbar subwidget. Name: window Class: Frame The frame subwidget which is scrolled by the ScrolledWindow widget. Name: vsb Class: Scrollbar The vertical scrollbar subwidget. DESCRIPTION
The tixScrolledWindow command creates a new window (given by the pathName argument) and makes it into a ScrolledWindow widget. Additional options, described above, may be specified on the command line or in the option database to configure aspects of the ScrolledWindow widget such as its cursor and relief. CREATING WIDGETS INSIDE A SCROLLEDWINDOW WIDGET
To create widgets inside a ScrolledWindow widget, one must create the new widgets relative to the window subwidget and manage them inside the window subwidget. An error will be generated if one tries to create widgets as immediate children of the ScrolledWindow. For example: the following is correct code, which creates new widgets inside the window subwidget: tixScrolledWindow .w; pack .w set f [.w subwidget window] button $f.b -text hi -width 40 -height 40 pack $f.b The following example code is incorrect because it tries to create immediate children of the ScrolledWindow .w: tixScrolledWindow .w; pack .w button .w.b -text hi -width 40 -height 40 pack .w.b WIDGET COMMANDS
The tixScrolledWindow command creates a new Tcl command whose name is the same as the path name of the ScrolledWindow widget's window. This command may be used to invoke various operations on the widget. It has the following general form: pathName option ?arg arg ...? PathName is the name of the command, which is the same as the ScrolledWindow widget's path name. Option and the args determine the exact behavior of the command. The following commands are possible for ScrolledWindow widgets: pathName cget option Returns the current value of the configuration option given by option. Option may have any of the values accepted by the tixScrolledWindow command. pathName configure ?option? ?value option value ...? Query or modify the configuration options of the widget. If no option is specified, returns a list describing all of the available options for pathName (see Tk_ConfigureInfo for information on the format of this list). If option is specified with no value, then the command returns a list describing the one named option (this list will be identical to the corresponding sublist of the value returned if no option is specified). If one or more option-value pairs are specified, then the command modifies the given widget option(s) to have the given value(s); in this case the command returns an empty string. Option may have any of the values accepted by the tixScrolledWindow command. pathName subwidget name ?args? When no additional arguments are given, returns the pathname of the subwidget of the specified name. When no additional arguments are given, the widget command of the specified subwidget will be called with these parameters. KEYWORDS
Tix(n) Tix 4.0 TIX(3)
Man Page