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

Re: Scrolled Windows and CList problems..



Actually, looking over this again, I could possibly have confused you
as to the widget order with the container_add();

Assuming you have this,  frame
                          |------scrolled_window
                                  |------------------clist

you would want to do
    
    gtk_container_add (GTK_CONTAINER (scrolled_window), clist);
    gtk_container_add (GTK_CONTAINER (frame), scrolled_window);

-john

On Thu, Aug 30, 2001 at 03:38:30PM -0500, John Hitt wrote:
> 
> I have had this problem in the past.  I discovered it was a by-product
> of using the 'documented in the tutorial' method of adding the 
> scrolled window to a viewport.   This actually has another drawback of
> the titles scrolling off the screen.
> 
> If you do
> 
>      gtk_container_add(GTK_CONTAINER(widget), scrolled_window);
> 
> instead of
> 
>      gtk_scrolled_window_add_with_viewport ();
> 
> it should actually solve both of your problems.
> 
> -john
> 
> On Tue, Aug 28, 2001 at 01:09:59PM -0400, Chris Elston wrote:
> > Since you all have been very helpful in the past, here's another question.
> > 
> > I'm working a clist inside of a scrolled window.  The data within the
> > clist eventually becomes very large in both directions.  For some reason,
> > on several instances the up/down or the left/right or both scroll bars
> > disappear making it impossible to pan thru the clist.  The steps for
> > combining both are as follows
> > 
> > create clist
> > set each individual col title
> > populate the clist
> > show the clist
> > empty the scrolled window of its previous data
> > add the clist to the window
> > 
> > Is there something inheriently wrong with those steps?  Is there something
> > else that you have encountered in the past that may be causing this
> > problem.  Thanks in advance.
> > 
> 
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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