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.
Name: labelBackground
Class: LabelBackground
Command-Line Switch: -labelbackground
Name: labelForeground
Class: LabelForeground
Command-Line Switch: -labelforeground
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.
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:
None
Name: label
Class: label
package require Mtiwidgets
mtiwidgets::mtilabel .l -text "Warning Message" \
-labelforeground red \
-labelbackground yellow \
-relief sunken \
-borderwidth 2
pack .l -padx 10 -pady 10