gui
gui copied to clipboard
Placeholder text in text-field%
A placeholder text is used as a hint to what should be inputed in the field, and can replace the need of a separate label in the UI. The placeholder text is usually displayed in grey when the entry is empty and unfocused (the behaviour when the widget is focused differ between toolkits, in GTK, the placeholder text is removed when the widget has the focus).
Its supported in GTK since 3.2, so the feature is dependant on the minimal version of GTK required by racket/gui.
You can use the gui-widget-mixins package to add placeholder text to a text% instance (they are called cue texts in the package itself).