Re: [gtkmm] ScrolledWindow doesn't scroll a DrawingArea



>I've found a far simpler example of a broken ScrolledWindow displaying a
>DrawingArea.  This is (as much as I know how) directly converted from a
>straight C example that *does* work.  I can post the C code if anyone is
>interested in comparing, but the unintended behavior should be pretty
>obvious from running this.  I hope I'm simply missing an event handler or
>something.

i suggest you try add_with_viewport() instead of add(). add() does not
work unless the child widget has its own builtin scrolling abilities,
which a drawing area does not.



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