Re: Browsing CList rows with keyboard



Hi,

Flávio Alberto Lopes Soares <engenharia3 maqplas com br> writes:

> I'm developing an application that uses CList but doens't use  mouse, I
> has some doubts about CList, I need to control the movement of row
> selection using PagUp/PageDow, the keys aren't problem, I detect it
> easy, but how to detect in a CList that the row selected are in the
> bottom off CList to make the scroll ? And how to calculate the elements
> value, lower, upper, step_increment of GtkAdjustment to insert in
> gtk_clist_set_vadjustment to scroll up & down only one row ?

the GtkClist should scroll by keys automatically if it has the focus.

To make sure selected rows are visible you will want to use code like this:

 if (! (gtk_clist_row_is_visible (clist, cur_selection) & GTK_VISIBILITY_FULL))
    gtk_clist_moveto (clist, cur_selection, 0, 1.0, 0.0);


Salut, Sven




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