Re: columned list



Hi

The idea is to "emulate" the mouse behaviour. If you have a large list you
can scroll with the mouse, without selecting an item. Same with the
cursor: you scroll the list (change focus) and then select an item (press
space).

To move the selection with the focus:

gtk_clist_set_selection_mode( clist, GTK_SELECTION_BROWSE );

Now you need to follow the focus row - maybe connect button_press and
check, if clist->focus_row has changed. Then gtk_clist_select_row( clist,
focus_row, 0 );

HTH

Jan-Marek



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