Re: [gtkmm] Another Events problem



Hi Phillip!

Phillip Neiswanger 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.

Not that it has anything to do with the problem you're seeing, but unless you're worried about keeping the second DrawingArea object around, why don't you just hide() it until you get to the point where you want it to show up? The Paned widget is smart enough to handle this in the expected way (i.e. it disappears when only one of its children is visible).

--
Christer Palm




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