tabnotebook - create and manipulate tabnotebook widgets
SYNOPSIS
tabnotebook pathName? options?
INHERITANCE
itk::Widget <- tabnotebook
STANDARD OPTIONS
background
cursor
|
disabledForeground
font
|
foreground
height
|
scrollCommand
width
|
See the "options" manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
Name: angle
Class: Angle
Command-Line Switch: -angle
Specifes the angle of slope from the inner edge to the outer edge of the tab.
An angle of 0 specifies square tabs. Valid ranges are 0 to 45 degrees
inclusive. Default is 15 degrees. If tabPos is e or w, this option
is ignored.
Name: auto
Class: Auto
Command-Line Switch: -auto
Specifies whether to use the automatic packing/unpacking algorithm of the
notebook. A value of true indicates that page frames will be unpacked and
packed acoording to the algorithm described in the select command. A value
of false leaves the current page packed and
subsequent selects, next, or previous commands do not
switch pages automatically. In either case the page's associated
command (see the add command's description of the command option) is
invoked. The value may have any of the forms accepted by
the Tcl_GetBoolean, such as true, false, 0,
1, yes, or no.
Name: backdrop
Class: Backdrop
Command-Line Switch: -backdrop
Specifies a background color to use when filling in the backdrop area
behind the tabs.
Name: background
Class: Background
Command-Line Switch: -background
Specifies a background color to use for displaying a page and its associated
tab. This can be thought of as the selected tab background color, since the
tab associated with the selected page is the selected tab.
Name: bevelAmount
Class: BevelAmount
Command-Line Switch: -bevelamount
Specifes the size of tab corners. A value of 0 with angle set to
0 results in square tabs. A bevelAmount of 4, means that the tab will
be drawn with angled corners that cut in 4 pixels from the edge of
the tab. The default is 0.
Name: borderWidth
Class: BorderWidth
Command-Line Switch: -borderwidth
Specifies the width of shadowed border to place around the notebook area of
the tabnotebook. The default value is 2.
Name: disabledForeground
Class: DisabledForeground
Command-Line Switch: -disabledforeground
Specifies a foreground color to use for displaying a tab's label when
its state is disabled.
Name: equalTabs
Class: EqualTabs
Command-Line Switch: -equaltabs
Specifies whether to force tabs to be equal sized or not. A value
of true means constrain tabs to be equal sized. A value
of false allows each tab to size based on the text label size. The
value may have any of the forms accepted by the Tcl_GetBoolean, such
as true, false, 0, 1, yes, or no.
For horizontally positioned tabs (tabpos is either s or n),
true forces all tabs to be equal width (the width being equal to
the longest label plus any padX specified). Horizontal tabs are
always equal in height.
For vertically positioned tabs (tabpos is either w or e),
true forces all tabs to be equal height (the height being equal to the
height of the label with the largest font). Vertically oriented tabs
are always equal in width.
Name: foreground
Class: Foreground
Command-Line Switch: -foreground
Specifies a foreground color to use for displaying a page and its associated
tab label. This can be thought of as the selected tab background color,
since the tab associated with the selected page is the selected tab.
Name: gap
Class: Gap
Command-Line Switch: -gap
Specifies the amount of pixel space to place between each tab. Value may
be any pixel offset value. In addition, a special keyword overlap
can be used as the value to achieve a standard overlap of tabs. This value
may have any of the forms acceptable to Tk_GetPixels.
Name: margin
Class: Margin
Command-Line Switch: -Bmargin
Specifies the amount of space to place between the outside edge of the
tabnotebook and the outside edge of its tabs. If tabPos is s,
this is the amount of space between the bottom edge of the tabnotebook and
the bottom edge of the set of tabs. If tabPos is n, this is
the amount of space between the top edge of the tabnotebook and the top
edge of the set of tabs. If tabPos is e, this is the amount of
space between the right edge of the tabnotebook and the right edge of the
set of tabs. If tabPos is w, this is the amount of space
between the left edge of the tabnotebook and the left edge of the set
of tabs. This value may have any of the forms acceptable to Tk_GetPixels.
Name: padX
Class: PadX
Command-Line Switch: -padx
Specifies a non-negative value indicating how much extra space to request
for a tab around its label in the X-direction. When computing how large
a window it needs, the tab will add this amount to the width it would
normally need The tab will end up with extra internal space to the left
and right of its text label. This value may have any of the forms acceptable
to Tk_GetPixels.
Name: padY
Class: PadY
Command-Line Switch: -pady
Specifies a non-negative value indicating how much extra space to request for
a tab around its label in the Y-direction. When computing how large a
window it needs, the tab will add this amount to the height it would normally
need The tab will end up with extra internal space to the top and bottom of
its text label. This value may have any of the forms acceptable
to Tk_GetPixels.
Name: raiseSelect
Class: RaiseSelect
Command-Line Switch: -raiseselect
Specifes whether to slightly raise the selected tab from the rest of the
tabs. The selected tab is drawn 2 pixels closer to the outside of the
tabnotebook than the unselected tabs. A value of true says to
raise selected tabs, a value of false turns this feature off. The
default is false. The value may have any of the forms accepted
by the Tcl_GetBoolean, such as true, false, 0,
1, yes, or no.
Name: start
Class: Start
Command-Line Switch: -start
Specifies the amount of space to place between the left or top edge of the
tabnotebook and the starting edge of its tabs. For horizontally positioned
tabs, this is the amount of space between the left edge of the notebook and
the left edge of the first tab. For vertically positioned tabs, this is the
amount of space between the top of the notebook and the top of the first
tab. This value may change if the user performs a MButton-2 scroll on the
tabs. This value may have any of the forms acceptable to Tk_GetPixels.
Name: state
Class: State
Command-Line Switch: -state
Sets the active state of the tabnotebook. Specifying normal allows
all pages to be selectable. Specifying disabled disables the notebook
causing all page tabs to be drawn in the disabledForeground color.
Name: tabBackground
Class: TabBackground
Command-Line Switch: -tabbackground
Specifies a background color to use for displaying tab backgrounds when
they are in their unselected state. This is the background associated with
tabs on all pages other than the selected page.
Name: tabBorders
Class: TabBorders
Command-Line Switch: -tabborders
Specifies whether to draw the borders of tabs that are not selected.
Specifying true (the default) draws these borders,
specifying false draws only the border around the selected tab. The
value may have any of the forms accepted by the Tcl_GetBoolean,
such as true, false, 0, 1, yes, or no.
Name: tabForeground
Class: TabForeground
Command-Line Switch: -tabforeground
Specifies a foreground color to use for displaying tab labels when they
are in their unselected state. This is the foreground associated with tabs
on all pages other than the selected page.
Name: tabPos
Class: TabPos
Command-Line Switch: -tabpos
Specifies the location of the set of tabs in relation to the notebook
area. Must be n, s, e, or w. Defaults to s.
DESCRIPTION
The tabnotebook command creates a new window (given by the pathName
argument) and makes it into a tabnotebook widget. Additional options,
described above may be specified on the command line or in the option
database to configure aspects of the tabnotebook such as its colors, font,
and text. The tabnotebook command returns its pathName argument. At the
time this command is invoked, there must not exist a window named
pathName, but pathName's parent must exist.
A tabnotebook is a widget that contains a set of tabbed pages. It
displays one page from the set as the selected page. A Tab displays the
label for the page to which it is attached and serves as a page
selector. When a page's tab is selected, the page's contents are displayed
in the page area. The selected tab has a three-dimensional effect to make
it app this method to specialize functionality.
- pathName up
- Derived classes may overload this method to specialize functionality.
COMPONENTS
Name: downarrow
Class: Canvas
The downarrow component is the downward pointing button of the spinner. See
the "canvas" widget manual entry for details on the downarrow component item.
Name: uparrow
Class: Canvas
The uparrow component is the upward pointing button of the spinner. See
the "canvas" widget manual entry for details on the uparrow component item.
EXAMPLE
set months {January February March April May June July \\
August September October November December}
proc blockInput {char} {
return 0
}
proc spinMonth {step} {
global months
set index [expr [lsearch $months [.sm get]] + $step]
if {$index < 0} {set index 11}
if {$index > 11} {set index 0}
.sm delete 0 end
.sm insert 0 [lindex $months $index]
}
spinner .sm -labeltext "Month : " -width 10 -fixed 10 -validate blockInput \\
-decrement {spinMonth -1} -increment {spinMonth 1}
.sm insert 0 January
pack .sm -padx 10 -pady 10
ACKNOWLEDGEMENTS:
Ken Copeland <ken@hilco.com>
10/18/95 - Added auto-repeat action to spinner arrow buttons.
AUTHOR
Sue Yockey
KEYWORDS
spinner, widget
./usr/lib/iwidgets4.0.1/demos/html/spintime.n.html 0100644 0000000 0000000 00000023311 07347201764 020530 0 ustar root root spintime - Create and manipulate time spinner widgets
spintime - Create and manipulate time spinner widgets
SYNOPSIS
spintime pathName ?options?
INHERITANCE
itk::Widget <- Spintime
STANDARD OPTIONS
background
|
cursor
|
foreground
|
relief
|
See the "options" manual entry for details on the standard options.
ASSOCIATED OPTIONS
See the "entryfield" manual entry for details on the above associated options.
See the "labeledwidget" manual entry for details on the above associated
options.
arrowOrient
|
repeatDelay
|
repeatInterval
|
|
See the "spinner" manual entry for details on the above associated options.
WIDGET-SPECIFIC OPTIONS
Name: labelPos
Class: Position
Command-Line Switch: -labelpos
Specifies the position of the label along the sides of the various
spinners: n, e, s, or w. The default is w.
Name: hourLabel
Class: Text
Command-Line Switch: -hourlabel
Specifies the text of the label for the hour spinner. The default is "Hour".
Name: hourOn
Class: hourOn
Command-Line Switch: -houron
Specifies whether or not to display the hour spinner in any of the forms
acceptable to Tcl_GetBoolean. The default is true.
Name: hourWidth
Class: Width
Command-Line Switch: -hourwidth
Specifies the width of the hour spinner in any of the forms acceptable to
Tcl_GetPixels. The default is 3 pixels.
Name: militaryOn
Class: militaryOn
Command-Line Switch: -militaryon
Specifies use of a 24 hour clock for hour display in any of the forms
acceptable to Tcl_GetBoolean. The default is true.
Name: minuteLabel
Class: Text
Command-Line Switch: -minutelabel
Specifies the text of the label for the minute spinner. The default is
"Minute".
Name: minuteOn
Class: minuteOn
Command-Line Switch: -minuteon
Specifies whether or not to display the minute spinner in any of the forms
acceptable to Tcl_GetBoolean. The default is true.
Name: minuteWidth
Class: Width
Command-Line Switch: -minutewidth
Specifies the width of the minute spinner in any of the forms acceptable to
Tcl_GetPixels. The default is 3 pixels.
Name: orient
Class: Orient
Command-Line Switch: -orient
Specifies the orientation of the hour, minute, and second spinners: vertical or horizontal. The default is horizontal.
Name: secondLabel
Class: Text
Command-Line Switch: -secondlabel
Specifies the text of the label for the second spinner. The default is
"Second"
Name: secondOn
Class: secondOn
Command-Line Switch: -secondon
Specifies whether or not to display the second spinner in any of the forms
acceptable to Tcl_GetBoolean. The default is true.
Name: secondWidth
Class: Width
Command-Line Switch: -secondwidth
Specifies the width of the second spinner in any of the forms acceptable to
Tcl_GetPixels. The default is 3 pixels.
Name: timeMargin
Class: Margin
Command-Line Switch: -timemargin
Specifies the margin space between the hour, minute, and second spinners is
any of the forms accpetable to Tcl_GetPixels. The default is 1 pixel.
spintime
set
use
entry.
an
second
creates
command
pathName.
be
various
widget.
following
pathName
...?
the
exact
command.
are
widgets:
current
configuration
option.
any
accepted
command.
pathName
option
the
the
option
a
of
for
for
format
If
with
the
list
named
will
the
the
no
If
option-value
then
the
to
value(s);
the
empty
have
values
spintime
current
spintime
format
as
value
and
respectively.
by
clock
information
and
time
the
to
the
time
either
an
or
Reference
for
obtaining
format.
Spinint
DESCRIPTION
command
of
in
The
hour,
spinner
The
a
whose
This
used
operations
It
general
option
args
behavior
The
possible
WIDGET-SPECIFIC
pathName
value
option
Option
of
by
configure
value
Query
configuration
widget.
is
list
the
pathName
information
of
option
no
command
describing
option
be
corresponding
value
option
one
pairs
the
given
have
in
command
string.
any
accepted
command.
pathName
contents
widget
of
an
using
-clicks
The
string.
command
on
its
currently
be
time
may
as
integer
the
the
more
times
Name:
|
creates
spinners
time
set
minute,
widget.
spintime
new
name
command
to
on
has
form:
?arg
Option
determine
of
following
for
METHODS
cget
Returns
of
given
may
the
the
?option?
... ?
or
options
If
specified,
describing
available
(see
on
this
is
value,
returns
the
(this
identical
sublist
returned
is
or
are
command
widget
the
this
returns
Option
of
by
get
Returns
of
in
string
integer
the
format
default
Reference
for
obtaining
formats.
pathName
displayed
that
argument.
be
a
clock
keyword
clock
information
and
COMPONENTS
hour
|
The
a
for
value
includes
and
METHODS
command
Tcl
is
may
invoke
the
the
arg
and
the
the
commands
spintime
option
the
the
by
have
values
spintime
?value
modify
of
no
returns
all
options
Tk_ConfigureInfo
the
list).
specified
then
a
one
list
to
of
if
specified).
more
specified,
modifies
option(s)
given
case
an
may
the
the
?format?
the
the
a
or
clock
-string
options
is
the
more
time
show
Changes
time
of
The
specified
string,
value
"now".
command
on
its
Class:
|
The hour component is the hour spinner of the time spinner. See the
SpinInt widget manual entry for details on the hour component item.
Name: minute
Class: Spinint
The minute component is the minute spinner of the time spinner. See
the SpinInt widget manual entry for details on the minute component item.
Name: second
Class: Spinint
The second component is the second spinner of the time spinner. See the
SpinInt widget manual entry for details on the second component item.
|
EXAMPLE
spintime .st
pack .st -padx 10 -pady 10
AUTHORS
Sue Yockey
Mark L. Ulferts
KEYWORDS
spintime, spinint, spinner, entryfield, entry, widget
./usr/lib/iwidgets4.0.1/demos/html/tabnotebook.n.html 0100644 0000000 0000000 00000073347 06570255576 021234 0 ustar root root tabnotebook - create and manipulate tabnotebook widgets
tabnotebook - create and manipulate tabnotebook widgets
SYNOPSIS
tabnotebook pathName? options?
INHERITANCE
itk::Widget <- tabnotebook
STANDARD OPTIONS
background
cursor
|
disabledForeground
font
|
foreground
height
|
scrollCommand
width
|
See the "options" manual entry for details on the standard options.
WIDGET-SPECIFIC OPTIONS
Name: angle
Class: Angle
Command-Line Switch: -angle
Specifes the angle of slope from the inner edge to the outer edge of the tab.
An angle of 0 specifies square tabs. Valid ranges are 0 to 45 degrees
inclusive. Default is 15 degrees. If tabPos is e or w, this option
is ignored.
Name: auto
Class: Auto
Command-Line Switch: -auto
Specifies whether to use the automatic packing/unpacking algorithm of the
notebook. A value of true indicates that page frames will be unpacked and
packed acoording to the algorithm described in the select command. A value
of false leaves the current page packed and
subsequent selects, next, or previous commands do not
switch pages automatically. In either case the page's associated
command (see the add command's description of the command option) is
invoked. The value may have any of the forms accepted by
the Tcl_GetBoolean, such as true, false, 0,
1, yes, or no.
Name: backdrop
Class: Backdrop
Command-Line Switch: -backdrop
Specifies a background color to use when filling in the backdrop area
behind the tabs.
Name: background
Class: Background
Command-Line Switch: -background
Specifies a background color to use for displaying a page and its associated
tab. This can be thought of as the selected tab background color, since the
tab associated with the selected page is the selected tab.
Name: bevelAmount
Class: BevelAmount
Command-Line Switch: -bevelamount
Specifes the size of tab corners. A value of 0 with angle set to
0 results in square tabs. A bevelAmount of 4, means that the tab will
be drawn with angled corners that cut in 4 pixels from the edge of
the tab. The default is 0.
Name: borderWidth
Class: BorderWidth
Command-Line Switch: -borderwidth
Specifies the width of shadowed border to place around the notebook area of
the tabnotebook. The default value is 2.
Name: disabledForeground
Class: DisabledForeground
Command-Line Switch: -disabledforeground
Specifies a foreground color to use for displaying a tab's label when
its state is disabled.
Name: equalTabs
Class: EqualTabs
Command-Line Switch: -equaltabs
Specifies whether to force tabs to be equal sized or not. A value
of true means constrain tabs to be equal sized. A value
of false allows each tab to size based on the text label size. The
value may have any of the forms accepted by the Tcl_GetBoolean, such
as true, false, 0, 1, yes, or no.
For horizontally positioned tabs (tabpos is either s or n),
true forces all tabs to be equal width (the width being equal to
the longest label plus any padX specified). Horizontal tabs are
always equal in height.
For vertically positioned tabs (tabpos is either w or e),
true forces all tabs to be equal height (the height being equal to the
height of the label with the largest font). Vertically oriented tabs
are always equal in width.
Name: foreground
Class: Foreground
Command-Line Switch: -foreground
Specifies a foreground color to use for displaying a page and its associated
tab label. This can be thought of as the selected tab background color,
since the tab associated with the selected page is the selected tab.
Name: gap
Class: Gap
Command-Line Switch: -gap
Specifies the amount of pixel space to place between each tab. Value may
be any pixel offset value. In addition, a special keyword overlap
can be used as the value to achieve a standard overlap of tabs. This value
may have any of the forms acceptable to Tk_GetPixels.
Name: margin
Class: Margin
Command-Line Switch: -Bmargin
Specifies the amount of space to place between the outside edge of the
tabnotebook and the outside edge of its tabs. If tabPos is s,
this is the amount of space between the bottom edge of the tabnotebook and
the bottom edge of the set of tabs. If tabPos is n, this is
the amount of space between the top edge of the tabnotebook and the top
edge of the set of tabs. I