Re: [gtkmm] Another Events problem



On Sat, 14 Feb 2004 13:20:18 -0700, Phillip Neiswanger <sigsegv prodigy net> wrote:

In this program the main working widget is a drawingarea. It is contained in a frame. At certain points it makes sense to allow the user to split this widget. I wrote some code that would remove the drawingarea from the frame, construct 2 new drawingarea widgets and place them in a vertical or horizontal paned widget, then add the paned widget to the frame and delete the original drawingarea. That code works and when I split the original drawingarea it generates the 2 paned drawingareas. Unfortunately, the new drawingareas no longer get any events even though the code to set up the events is the same. I tried setting the events and focus parameters in the paned widget, but that doesn't help. Then it occured to me that the paned widget might be a windowless widget, so I created an EventBox and stuffed the paned widget in it and added the eventbox to the frame instead of the paned widget. So far I can't get that code to work. It just hangs the program. I don't really care about that because what I really want to know is the following.

What am I missing? Why don't the drawingareas get events when I put them in a paned widget? Is there some parameter I need to set in the paned widget, or do I simple need to get the eventbox code working?


Let me qualify this a litte more. The drawingareas are getting some events, like resize, but the events I'm interested in are key press/release and these are not getting thru. The drawingareas set the events properly, and I've tried setting the events in the paned object, but they're still not showing up.

--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]