[Gtk-sharp-list] Gtk.Entry Validation and Input

Dominik Zablotny doza at sztorm.net
Sun Nov 5 21:16:47 EST 2006

Dnia 05-11-2006, nie o godzinie 20:02 -0400, Roberto Rodriguez Alcala

> About the question, for some entries is Mandatory for me to do the
> auto correcting input, for example a Amount input with automatic
> Thouthands  separator (They must apear but you don't need to write
> them, and need to delete digits too).

Assuming that number of digits actually entered by user varies, you
should do auto-corrections only when Entry is loosing focus or use
separate Entry for every 3 digits. They could be very close together and
automatically move focus.

> Another thing is that I can't force a entry to work in overwrite mode,
> mandatory for some other entries (I wrote a handler for TextInserted
> and Deleted to emulate that and disabled the entry input when
> toggle-overwrite event happens ).

For many cases selecting all text when entry is gaining focus would be
enough, but it sounds like you're doing something more complicated.

Have you looked at the TextView.Overwrite?

Dominik Zablotny
xmpp:doza at sztorm.net

More information about the Gtk-sharp-list mailing list