wmarkentry::wmarkentry - Create and manipulate wmarkentry widgetswmarkentry::wmarkentry pathName ?options?-background or -bg-borderwidth or -bd-cursor-exportselection-font-foreground or -fg-highlightbackground-highlightcolor-highlightthickness-insertbackground-insertborderwidth-insertofftime-insertontime-insertwidth-justify-relief-selectbackground-selectborderwidth-selectforeground-takefocus-textvariable-xscrollcommand-disabledbackground-disabledforeground-invalidcommand or -invcmd-readonlybackground-show-state-validate-validatecommand or -vcmd-width-watermark text-watermarkforeground colorpathName bbox
indexpathName cget
optionpathName configure
?option? ?value option value ...?pathName delete
first ?last?pathName entrytagpathName getpathName icursor
indexpathName index
indexpathName insert
index stringpathName scan
option args
pathName scan mark
xpathName scan dragto
xpathName selection
option arg
pathName selection adjust
indexpathName selection clearpathName selection from
indexpathName selection presentpathName selection range
start endpathName selection to
indexpathName validatepathName xview
args
pathName xviewpathName xview indexpathName xview moveto fractionpathName xview scroll number whatwmarkentry::wmarkentry - Create and manipulate wmarkentry widgetswmarkentry::wmarkentry pathName ?options?
-background or -bg-borderwidth or -bd-cursor-exportselection-font-foreground or -fg-highlightbackground-highlightcolor-highlightthickness-insertbackground-insertborderwidth-insertofftime-insertontime-insertwidth-justify-relief-selectbackground-selectborderwidth-selectforeground-takefocus-textvariable-xscrollcommand-disabledbackground-disabledforeground-invalidcommand or -invcmd-readonlybackground-show-state-validate-validatecommand or -vcmd-width| Command-Line Name: | -watermark |
| Database Name: | watermark |
| Database Class: | Watermark |
Specifies a textual string that will be used as a watermark in the entry field. The watermark string cannot be copied or selected and only is visible when the entry field is empty. Once the user begins to type in the entry field, the watermark string is cleared and the user's input data is visible. By default, no watermark is displayed in the entry field. The watermark can be cleared by setting this option to the empty string.
| Command-Line Name: | -watermarkforeground |
| Database Name: | watermarkForeground |
| Database Class: | Foreground |
Specifies the foreground color to use when a watermark is to be displayed in the entry field.
wmarkentry::wmarkentry command creates a new window named
pathName and of the class WMarkEntry, and makes it
into a wmarkentry widget. Additional options, described above, may be
specified on the command-line or in the option database to configure aspects of the
tokenentry sucah as its colors, font, and sizing. The
wmarkentry::wmarkentry 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.
wmarkentry::wmarkentry 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 arg determine the exact behavior
of the command. The following commands are possible for tokenentry widgets:
pathName bbox indexpathName cget optionpathName configure ?option? ?value option value ...?pathName delete first ?last?pathName getpathName entrytagpathName icursor indexpathName index indexpathName insert index stringpathName scan option argspathName scan mark xpathName scan dragto xpathName selection option argpathName selection adjust indexpathName selection clearpathName selection from indexpathName selection presentpathName selection range start endpathName selection to indexpathName validatepathName xview argspathName xviewpathName xview indexpathName xview moveto fractionpathName xview scroll number what