Thanks for advice Richard Boaz
But only I have a problem with your solution, the user
must have the mouse all time inside of the drawing
area if he want interact with the drawing area, and if
he want interact with the menu he need to move the
mouse or use the keyboard for interact with the menu.
you have gotten your panties into a serious twist.
start over:
when wanting to receive key press events in a drawing area, you must do
all of the following:
1. set up the drawing area to receive key press and/or release events.
2. set up the drawing area to receive enter and leave notify events.
Hello again
I still have the same problem
>Hello again
>I am making a window that has a menu, two
drawing_area
> and a GtkEntry
>
> I added the following events
(GDK_BUTTON1_MOTION_MASK,
> GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK,
> GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area,
> an
did you try this?
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-grab-focus
2008/3/20, Moises <[EMAIL PROTECTED]>:
> Hello again
>
> I am making a window that has a menu, two drawing_area
> and a GtkEntry
>
> I added the following events (GDK_BUTTON1_MOTION_MASK,
> GDK_BUTTON
Hello again
I am making a window that has a menu, two drawing_area
and a GtkEntry
I added the following events (GDK_BUTTON1_MOTION_MASK,
GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK,
GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area,
and the respective callback, but the problem is that
when I
Hello again
I am making a window that has a menu, two drawing_area
and a GtkEntry
I added the following events (GDK_BUTTON1_MOTION_MASK,
GDK_BUTTON2_MOTION_MASK, GDK_BUTTON_PRESS_MASK,
GDK_VISIBILITY_NOTIFY_MASK) to the two drawing_area,
and the respective callback, but the problem is that
when I
James Vanns wrote:
> Okay. I have a function called create_toogle_window (). Within this
function
> I have a few GtkWidgets initiated as GtkToggleButtons (3 of) and then one
OK
> button.
>
> I have also a struct defined as within a header file:
>
> typedef struct _options {
>gboolean bss;
>
Hi everyone. Thanks in advance for at least reading my small problem!
Okay. I have a function called create_toogle_window (). Within this function
I have a few GtkWidgets initiated as GtkToggleButtons (3 of) and then one OK
button.
I have also a struct defined as within a header file:
typedef s