On Thu, Nov 04, 2010 at 02:12:10PM +0530, Vishak V. Kurup wrote:
> Has anyone ever tried masking in a GtkEntry. I want to mask my gtkentry
> input in format "%3d.%3d.%3d" (IP address).
And example is in the FAQ:
http://library.gnome.org/devel/gtk-faq/stable/x842.html
But if you try to restrict the input in a more complex manner than
limiting the set of characters that can be entered the result is usually
very frustrating to the user.
I suggest to change the text colour to red (or something similar) if
the input is not in valid format. Then the user has a feedback but is
still free to go through arbitrary intermediate states when editting one
valid input into another.
Yeti
_______________________________________________
gtk-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/gtk-list