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



Nik,

yep, you are right, ScrolledWindow is broken in gtkmm2.x. I have
TreeView with a list of itmes in it in ScrolledWindow that doesn't
scroll down when you jump from one row to the next. It used to work
fine with gtkmm1.2.

-Vlad

On Thu, 2003-07-24 at 15:27, Nik A. Melchior wrote:
> 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
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
-- 
_____________________________________________________________
Vladislav Grinchenko                  e-mail: vladg erols com
home page:     http://users.erols.com/volotsky/vlg/index.html

      "Focus on quality, and productivity will follow."
_____________________________________________________________



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