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



On Thu, 24 Jul 2003, Paul Davis wrote:

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

I should mention that I am using gtkmm2.0.  add_with_viewport() does not
exist in this version.  However, the documentation states that a viewport
will be added if you attempt to add() something that does not support
scrolling.

--Nik Melchior




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