Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Placeholder text in text-field% #133

Open
Feufochmar opened this issue Jun 8, 2019 · 1 comment
Open

Placeholder text in text-field% #133

Feufochmar opened this issue Jun 8, 2019 · 1 comment

Comments

@Feufochmar
Copy link

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.

@alex-hhh
Copy link
Sponsor Contributor

alex-hhh commented Jun 8, 2019

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants