Re: Fw: [PHP-GTK] expanding the program... FIXED

From: Date: Tue, 29 Jan 2002 22:35:08 +0000
Subject: Re: Fw: [PHP-GTK] expanding the program... FIXED
References: 1 2  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-1075@lists.php.net to get a copy of this message
$entry->add_events(GDK_KEY_PRESS); I thought it already picked up key press events :-\ ----- Original Message ----- From: "Iuri Fiedoruk" <iuri.f@terra.com.br> To: "Steph" <steph.fox@btinternet.com> Cc: "PHP-GTK gen" <php-gtk-general@lists.php.net> Sent: Tuesday, January 29, 2002 10:25 PM Subject: Re: Fw: [PHP-GTK] expanding the program... FIXED > Steph wrote: > > >oops sorry, you're using a gtkentry here right? try key_press_event instead then. > > > Yes, I'm using text entry, but this example simply dosen't worked for me > because > (strangely) keyval returns nothing. > > > > >$entry->connect('key_press_event', 'yourfunction'); > > > >function yourfunction($entry, $event) { > >if($event->keyval==GDK_KEY_Return) { > >do stuff > >}} > >----- Original Message ----- > >From: "Steph" <Steph.Fox@btinternet.com> > >To: <iuri.f@terra.com.br> > >Cc: <php-gtk-general@lists.php.net> > >Sent: Tuesday, January 29, 2002 10:09 PM > >Subject: Re: [PHP-GTK] expanding the program... FIXED > > > > > >Use button_press_event instead of clicked. > > > >$event is passed through the signal, you pick it up in the function directly after the > >calling $button. > > > >----- Original Message ----- > >From: "Iuri Fiedoruk" <iuri.f@terra.com.br> > >To: "Steph" <steph.fox@btinternet.com> > >Cc: <php-gtk-general@lists.php.net> > >Sent: Tuesday, January 29, 2002 9:55 PM > >Subject: Re: [PHP-GTK] expanding the program... FIXED > > > > > >>Steph wrote: > >> > >>>$gtkobject->flags(); returns an array of 4 integers that will give info re > >>>object status. > >>> > >>>& is it the activate signal you're chasing, or am I confused? > >>> > >>Yes, that's it, thank you very much. > >>Now I just have to find how to add a event when enter is pressed on > >>text/input box. > >> > >>-- > >>Iuri Fiedoruk, Santa Maria, RS, Brasil. > >> > >> > >> > >> > >>-- > >>PHP-GTK General Mailing List (http://gtk.php.net/) > >>To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net > >>For additional commands, e-mail: php-gtk-general-help@lists.php.net > >>To contact the list administrators, e-mail: php-list-admin@lists.php.net > >> > > > > > > > -- > Iuri Fiedoruk, Santa Maria, RS, Brasil. > > > > > -- > PHP-GTK General Mailing List (http://gtk.php.net/) > To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-gtk-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.gtk.general (#1075) next »