SetGadgetHint gadget,text$
Parameters
|
gadget - text field or combo box text$ - grey placeholder text; "" removes it |
Description
|
Sets the grey placeholder text shown inside an empty text field or combo box. Requires Extended language mode. Hint text (Windows calls it cue text) answers "what goes here?" right inside the control - "Enter an object name", "Search assets...". It shows only while the control is empty and vanishes the moment the user types. The hint is never part of the control's contents: TextFieldText and GadgetText do not return it, so there is nothing to strip out before using the value. Only text fields and combo boxes support hints; any other gadget stops with a runtime error - use SetGadgetToolTip for hover help on everything else. See it working in the native input controls sample. See also: SetGadgetToolTip, CreateTextField, CreateComboBox, TextFieldText. |
Index