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:

Change the style to use a roman font:

Properties & Relations  (1)

FieldSize will use the larger of FieldHintStyle and BaseStyle to calculate its size:

In some cases, it can make the hint look too small, or in some cases make the text look too small:

Possible Issues  (1)

The default stylesheet applies transparency to all field hints even if you change the color:

To override the transparency setting, specify Opacity:

Wolfram Research (2010), FieldHintStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FieldHintStyle.html.

Text

Wolfram Research (2010), FieldHintStyle, Wolfram Language function, https://reference.wolfram.com/language/ref/FieldHintStyle.html.

CMS

Wolfram Language. 2010. "FieldHintStyle." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FieldHintStyle.html.

APA

Wolfram Language. (2010). FieldHintStyle. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FieldHintStyle.html

BibTeX

@misc{reference.wolfram_2024_fieldhintstyle, author="Wolfram Research", title="{FieldHintStyle}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/FieldHintStyle.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fieldhintstyle, organization={Wolfram Research}, title={FieldHintStyle}, year={2010}, url={https://reference.wolfram.com/language/ref/FieldHintStyle.html}, note=[Accessed: 21-November-2024 ]}