[racket] text-field% isn't just for string input, but for output and numbers too!

From: Marijn (hkBst at gentoo.org)
Date: Mon Jan 30 09:26:31 EST 2012

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

when you disable a text-field% `tf' (send tf enable #f), the label is
greyed out and the field part doesn't accept the cursor or any other
form of user input. This is useful when you need an input field which
should not always be available.
When you want to use a text-field for output instead, you also want it
to ignore user input, but having the label greyed out isn't optimal.
Instead I think that it would be more intuitive if the label is left
as is and the field is instead given a grey background or grey border
or something like that. Could an option to disable user input be added
and another option to change the field in a manner suggesting it is
not accepting input?

A text-field% that is used for number input or number output should
ideally display its contents in a right-aligned manner. Would it be
possible to add such a (style?) option?

Marijn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.18 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk8mqJcACgkQp/VmCx0OL2zA2gCgjMdZfKE79E2sLEy+Q+16Rbj/
61AAoJDWu/xP7JLuIzCP2dhvs8NFp8l0
=7nSQ
-----END PGP SIGNATURE-----

Posted on the users mailing list.