mtilabel - Create and manipulate an mtilabel widget

SYNOPSIS

mtiwidgets::mtilabel pathName ?options?

INHERITANCE

itk::Widget <- mtilabel

STANDARD OPTIONS

activeBackground
activeForeground
anchor
background
bitmap
borderWidth
cursor
font
highlightBackground
image
justify
padX
padY
relief
state
takeFocus
text
textvariable
underline
wrapLength

See the "options" manual entry for details on the standard options.

WIDGET-SPECIFIC OPTIONS

Name:                   labelBackground
Class: LabelBackground
Command-Line Switch: -labelbackground

Name:                   labelForeground
Class: LabelForeground
Command-Line Switch: -labelforeground


DESCRIPTION

The mtilabel command creates a new window and makes it into a label widget. This label is distinguished from a standard Tk label in that the labels foreground and background colors can be controlled separately from the default foreground and background colors used in the relief coloring.  This makes a label with relief look better when the colors are different from the window managers default color scheme.   

METHODS

The mtilabel command creates a new Tcl command whose name is pathName. This command may be used to invoke various operations on the widget. It has the following general form:

pathName option ?arg arg ...?
Option and the args determine the exact behavior of the command. The following commands are possible for mtilabel widgets:

ASSOCIATED METHODS

None

WIDGET-SPECIFIC METHODS

pathName cget option
Returns the current value of the configuration option given by option. Option may have any of the values accepted by the label 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 label command.

COMPONENTS

Name:                   label
Class: label

EXAMPLE

package require Mtiwidgets

mtiwidgets::mtilabel .l -text "Warning Message" \
-labelforeground red \
-labelbackground yellow \
-relief sunken \
-borderwidth 2

pack .l -padx 10 -pady 10

AUTHOR

Brian Griffin

KEYWORDS

label, widget