Re: finding a clist selection w/scrollbars
- From: Dave Reed <dreed capital edu>
- To: shippy nmt edu
- Cc: gtk-list gnome org
- Subject: Re: finding a clist selection w/scrollbars
- Date: Fri, 9 Mar 2001 07:43:05 -0500 (EST)
> Date: Thu, 8 Mar 2001 22:57:50 -0700 (MST)
> From: Jeff Shipman <shippy nmt edu>
>
> I've got a function that currently selects a random
> row out of a CList. The only snag I'm running into
> is that when the row is selected it doesn't automatically
> cause the scrollbars to move to where that row is
> visible in the viewable area. How can I move the scrollbars
> so the row is visible?
>
> I tried figuring out how large each row is adjustment
> wise and then multiplying that by the row number, and
> it works except for when you have to go near the bottom
> of the list. It causes the scrollbar to go too far and
> you end up going past the bottom of the list so it
> may garble the text or cause the adjustment to jump
> around. Unfortunately, the max value of the adjustment
> isn't the bottom of the list, it's past the bottom of
> the list, because I tried comparing against this
> as well.
gtk_clist_moveto
The first parameter is the row you want to be visible.
HTH,
Dave
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]