[gtkmm] Another Events problem



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?

--
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]