Re: [glade--]Keypress event for DrawingArea
- From: Damon Chaplin <damon ximian com>
- To: Mark Jones <mark jones106 verizon net>
- Cc: glademm-list gnome org
- Subject: Re: [glade--]Keypress event for DrawingArea
- Date: 04 Mar 2002 11:31:29 -0500
On Fri, 2002-03-01 at 22:57, Mark Jones wrote:
> I am trying to get a keypress event to happen whenever the drawing area
> is in focus (by the mouse being over it or the mouse has clicked on it
> to bring it into focus), and have added my drawing area to an event box.
> I have added to the keypress event function a cerr statement so I can
> see if it works, but it never does. I have successfully added a mouse
> button click and a mouse button release event (and their cerr statements
> are invoked), but it just doesn't seem to work for a key press. Is this
> supported? All three events have been assigned to the event box and not
> the drawing area from within glade.
You also need to make sure that the widget's event mask has been set so
that you receive events like button presses and key presses.
See the 'Events' property on the Common page.
(I hope glade-- supports it!)
Damon
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]