RE: [gtk-list] Re: Clist within scrolled window




On 25-Oct-99 Kent Schumacher wrote: 
>  tatus: O
>  Content-Length: 2625
>  
>  Federico Mena Quintero wrote:
>  
> > >  I have a clist within a scrolled window, and I select a row by
> > >  gtk_clist_select_row. My question: is it possible to scroll
> > >  by some gtk+ call the scrolled window so that the selected row of
> > >  the clist appears at the top of the scrolled window?
> >
> > You can use gtk_clist_moveto() to do that.
> >
> >   Federico
> >
>  
>  I agree that this is the proper function but I have never been able to
>  get it to work.  A quick guess at the problem is that the function
>  adjust_adjustments() overrides the value that is set in move_vertical().
>

Hi, Kent,

In my application, the advice of Federico was a bull's eye.  gtk_clist_moveto()
operates exactly as described.

Regards 

Joachim Backes

--

Joachim Backes <backes@rhrk.uni-kl.de>       | Univ. of Kaiserslautern
Computer Center, Supercomputing Division     | Phone: +49-631-205-2438 
D-67653 Kaiserslautern, PO Box 3049, Germany | Fax:   +49-631-205-3056 
---------------------------------------------+------------------------
WWW: http://sgi400.rhrk.uni-kl.de/home/staff/backes.html  



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