mail-archives/gtk-sharp-list/2006-November/007491.html

87 строки
3.4 KiB
HTML
Исходник Постоянная ссылка Обычный вид История

2019-06-06 22:02:55 +03:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Gtk-sharp-list] Gtk.Entry Validation and Input
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Gtk.Entry%20Validation%20and%20Input&In-Reply-To=f0ac0faf0611051602i111faec6j2b9463fa0b45a31a%40mail.gmail.com">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="007490.html">
<LINK REL="Next" HREF="007493.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Gtk-sharp-list] Gtk.Entry Validation and Input</H1>
<B>Dominik Zablotny</B>
<A HREF="mailto:gtk-sharp-list%40lists.ximian.com?Subject=%5BGtk-sharp-list%5D%20Gtk.Entry%20Validation%20and%20Input&In-Reply-To=f0ac0faf0611051602i111faec6j2b9463fa0b45a31a%40mail.gmail.com"
TITLE="[Gtk-sharp-list] Gtk.Entry Validation and Input">doza at sztorm.net
</A><BR>
<I>Sun Nov 5 21:16:47 EST 2006</I>
<P><UL>
<LI>Previous message: <A HREF="007490.html">[Gtk-sharp-list] Gtk.Entry Validation and Input
</A></li>
<LI>Next message: <A HREF="007493.html">[Gtk-sharp-list] Gtk.Entry Validation and Input
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7491">[ date ]</a>
<a href="thread.html#7491">[ thread ]</a>
<a href="subject.html#7491">[ subject ]</a>
<a href="author.html#7491">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Dnia 05-11-2006, nie o godzinie 20:02 -0400, Roberto Rodriguez Alcala
napisa&#322;:
&gt;<i> About the question, for some entries is Mandatory for me to do the
</I>&gt;<i> auto correcting input, for example a Amount input with automatic
</I>&gt;<i> Thouthands separator (They must apear but you don't need to write
</I>&gt;<i> them, and need to delete digits too).
</I>
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.
&gt;<i> Another thing is that I can't force a entry to work in overwrite mode,
</I>&gt;<i> mandatory for some other entries (I wrote a handler for TextInserted
</I>&gt;<i> and Deleted to emulate that and disabled the entry input when
</I>&gt;<i> toggle-overwrite event happens ).
</I>
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:<A HREF="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">doza at sztorm.net</A>
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="007490.html">[Gtk-sharp-list] Gtk.Entry Validation and Input
</A></li>
<LI>Next message: <A HREF="007493.html">[Gtk-sharp-list] Gtk.Entry Validation and Input
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#7491">[ date ]</a>
<a href="thread.html#7491">[ thread ]</a>
<a href="subject.html#7491">[ subject ]</a>
<a href="author.html#7491">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/gtk-sharp-list">More information about the Gtk-sharp-list
mailing list</a><br>
</body></html>