ASPN ActiveState Programmer Network
  ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups | Web Services
SEARCH

Reference
ActiveTcl 8.5
ActiveTcl 8.5.4.0 User Guide
ActiveTcl 8.5.4.0 Documentation Index
BWidgets
ArrowButton
Button
ButtonBox
BWidget
ComboBox
Dialog
DragSite
DropSite
DynamicHelp
Entry
Label
LabelEntry
LabelFrame
ListBox
MainFrame
MessageDlg
NoteBook
PagesManager
PanedWindow
PanelFrame
PasswdDlg
ProgressBar
ProgressDlg
ScrollableFrame
ScrolledWindow
ScrollView
SelectColor
SelectFont
Separator
SpinBox
StatusBar
TitleFrame
Tree
Widget

MyASPN >> Reference >> ActiveTcl 8.5 >> ActiveTcl 8.5.4.0 User Guide >> ActiveTcl 8.5.4.0 Documentation Index >> BWidgets
ActiveTcl 8.5 documentation

NAME
ScrolledWindow - Generic scrolled widget
CREATION
ScrolledWindow pathName ?option value...?
STANDARD OPTIONS
  -background or -bg   -borderwidth or -bd
  -relief
WIDGET-SPECIFIC OPTIONS
  -auto
  -scrollbar
WIDGET COMMAND
pathName cget option
pathName configure ?option? ?value option value ...?
pathName getframe
pathName setwidget widget



DESCRIPTION

ScrolledWindow enables user to create easily a widget with its scrollbar. Scrollbars are created by ScrolledWindow and scroll commands are automatically associated to a scrollable widget with ScrolledWindow::setwidget.




WIDGET-SPECIFIC OPTIONS
-auto
Specifies the desired auto managed scrollbar:
  • none means scrollbar are always drawn
  • horizontal means horizontal scrollbar is drawn as needed
  • vertical means vertical scrollbar is drawn as needed
  • both means horizontal and vertical scrollbars are drawn as needed
  • horizontal means horizontal scrollbar is drawn as needed
-scrollbar (read-only)
Specifies the desired scrollbar: none, horizontal, vertical or both. This option is not modifiable with ScrolledWindow::configure.


WIDGET COMMAND
pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the creation 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. 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 creation command. Read-only options are not be modified.
pathName getframe
Return the pathname of the frame where the scrolled widget should be created. This command is no longer needed. You can directly create the scrolled widget as the child of pathName.
pathName setwidget widget
Associate widget to the the scrollbars. widget becomes managed by the ScrolledWindow. The user should not attempt to manage widget until it is no longer managed by the ScrolledWindow. widget must be a scrollable widget, i.e. have the options xscrollcommand/yscrollcommand and the command xview/yview, such as canvas or text.

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState 2004 All rights reserved