Re: Fw: [PHP-GTK] expanding the program... FIXED
| From: | Steph | Date: | Wed, 30 Jan 2002 01:28:39 +0000 |
| Subject: | Re: Fw: [PHP-GTK] expanding the program... FIXED | ||
| References: | 1 2 3 4 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-1078@lists.php.net to get a copy of this message | ||
Sorry, I went out :)
I *think* it's not working because you haven't told the function to expect it?
You need to do something like
function send_input($send_input, $event, $mandar) {
if($event->keyval ==GDK_KEY_Return) {
etc - it's the $event you should be querying, the $send_input doesn't know what
you're talking about.
}}
actually I'm surprised it's letting you get anything thru there at all currently. Do you
have error reporting E_ALL turned on in yr php.ini?
----- 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:35 PM
Subject: Re: Fw: [PHP-GTK] expanding the program... FIXED
> Steph wrote:
>
> >$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
> >
>
> So it should be like that?
>
> function send_input() {
> global $mandar;
> $tecla = $input_label->keyval;
> echo("Tecla: $tecla \n");
> // if($input_label->keyval == GDK_KEY_Return) {
> // echo("SEND INPUT\n");
> // $mandar = "t";
> // }
> }
>
>
> $input_label = $window->get_widget('input_label');
> $input_label->add_events(GDK_KEY_PRESS);
> $input_label->connect('key_press_event', 'send_input');
>
> I still get nothing :-/
>
> Sorry to ask so many questions about it, but this is a thing I really
> could not find
> elsewhere :)
>
> --
> 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
>