Re: IP address bar 107.108. ...
- From: "Diogo F. S. Ramos" <diogofsr gmail com>
- To: gtk-list <gtk-list gnome org>
- Subject: Re: IP address bar 107.108. ...
- Date: Wed, 16 Jan 2008 00:54:34 -0200
Quoting two recent responses from Glade users list:
> 1) How to ensure that only numbers are pressed. I don't want the user
> to enter alpha characters.
Em Qui, 2008-01-10 às 07:43 -0600, Alexey Kurochkin escreveu:
> Connect a callback to a "key-press-event" and filter there everything
> outside GDK_0 to GDK_9 and GDK_KP_0 to GDK_KP_9
Em Sex, 2008-01-11 às 11:58 -0200, Tristan Van Berkom escreveu:
> Here is the documentation
> http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#GtkWidget-key-press-event
>
>
> If you handle key-press-event before GtkEntry handles it then you can
> decide
> that GtkEntry "aborts" the operation by returning TRUE.
Hope this helps.
--
Diogo F. S. Ramos
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]