Re: key press events
- From: root <sandy_21 sina com>
- To: jylam lnxscene org
- Cc: gtk-list gnome org
- Subject: Re: key press events
- Date: Wed, 17 Apr 2002 19:20:19 +0800
Hi I met the same problem with u
On Wednesday 17 April 2002 17:19, you wrote:
> HI all
> I've this piece of code :
> gtk_widget_add_events (GTK_WIDGET (MyWindow->image),
> GDK_BUTTON_PRESS_MASK); gtk_signal_connect (GTK_OBJECT (MyWindow->image),
> "button_press_event", GTK_SIGNAL_FUNC (MosMenu), GTK_OBJECT (file_menu));
i use gtk_signal_connect_object(gtkscrollwindow->vscrollbar,..) it doesn't
work either,why,is it gtk bug?
>
> gtk_widget_add_events (GTK_WIDGET (MyWindow->image), GDK_KEY_PRESS_MASK);
> gtk_signal_connect (GTK_OBJECT (MyWindow->image), "key_press_event",
> GTK_SIGNAL_FUNC (LastKeyPressed), NULL);
>
> (MyWindow->image is a rgb_image)
>
> for the mouse event, there's no problem, my callback is called.
> But the key_press_event does not work.
>
> Is it preferable to add 2 event masks in one gtk_widget_add_event, or 2
> add_event, like this ?
>
> thanks
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]