Re: [glade--]Keypress event for DrawingArea

Christof Petig <[email protected]>
Newsgroups gmane.comp.gnome.glademm
Organization Adolf Petig GmbH & Co. KG
Message-ID <[email protected]>
Damon Chaplin wrote:
> 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!)

Yes it does.
   Christof
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.