How to select an list item without focus

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

 



there is a list with several items in my application, when I click a button, I want to select/highlight (with blue background color), I do as following:
    gtk_list_select_item(GTK_LIST(MyList), ItemIndex);  //select this item
    gtk_list_scroll_vertical(GTK_LIST(MyList),
                               GTK_SCROLL_STEP_FORWARD,
                               0);  // scroll the vertical bar

after this, the focus moves from the button to the item which is selected now.

and How to select an list item without focus?

Thanks

Sent from the Gtk+ - General forum at Nabble.com:
How to select an list item without focus
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux