FieldHintStyle

FieldHintStyle

is an option for InputField that specifies the style to use for displaying the field hint.

Details

  • An option setting FieldHintStyle->spec in an InputField specifies that the field hint of the InputField should be displayed as Style[contents,spec].
  • Any style specification used in Style can be used as a setting for FieldHintStyle.
  • Typical forms of settings include:
  • "style"a named style from the current stylesheets
    {opt1->val1,}a list of explicit option settings
    {"style",opt1->val1,}a named style modified by option settings
  • Color directives such as Red, as well as text specifications such as Bold or Small, can be given in place of options, just as in Style.
  • Any outside styles not explicitly overridden by settings in FieldHintStyle will still be used.
  • FieldHintStyle is effectively applied after DefaultFieldHintStyle.
  • Style specifications given in FieldHintStyle are typically added to default specifications given in the current stylesheet.
  • For an object of type obj, the default style specifications are typically those associated with a style named "obj".

Examples

open allclose all

Basic Examples  (1)

Field hints use italics by default:

In[1]:=
Click for copyable input
Out[1]=

Change the style to use a roman font:

In[2]:=
Click for copyable input
Out[2]=

Properties & Relations  (1)

Possible Issues  (1)

See Also

InputField  FieldHint  DefaultFieldHintStyle  BaseStyle

Introduced in 2010
(8.0)