Re: [gtkmm] Another Events problem

On Wed, 18 Feb 2004 09:13:00 +0100, Christer Palm <palm nogui se> wrote:

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).

You are right, so I tried this some time ago without adding a second widget. The dividing control is still displayed which was not what I wanted. Perhaps if I'd used hide() it would have worked. This is just an example. It doesn't reflect what my code does at all except to highlight the problem.
Using M2, Opera's revolutionary e-mail client:

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