PHP-GTK2 Cookbook Forum
Welcome, Guest
Please Login or Register.    Lost Password?
Re:about Gtktreeselection (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:about Gtktreeselection


#5531
tomkuanq0705 (User)
Junior Boarder
Posts: 30
graphgraph
User Offline Click here to see the profile of this user
about Gtktreeselection 8 Months, 2 Weeks ago Karma: 0  
hi all,
I am Tom.
Code:
$selection->set_mode(Gtk::SELECTION_MULTIPLE);
and
Code:
$selection=$treeview->get_selection();
can be coexist ??? And how do it ? thank you very much.^^ Tom Kuanq 2012.09.10.
 
 
Last Edit: 2012/09/09 18:40 By tomkuanq0705.
  The administrator has disabled public write access.

#5535
kksou (Admin)
Admin
Posts: 1680
graph
User Online Now Click here to see the profile of this user
Re:about Gtktreeselection 8 Months, 1 Week ago Karma: 27  
Hi Tom,

Instead of
$selection=$treeview->get_selection();

Use
GtkTreeselection::get_selected_rows()

Please refer to the following sample code:
Sample Code 218: How to display a 2D array in GtkTreeView - Part 6 - allow multiple rows selection?

Regards,
/kksou
 
  The administrator has disabled public write access.



Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Blog - Forum - Privacy Policy - Contact Us
Links - Classes - Social Business - BPM - Web - General
Copyright © 2006-2013. kksou.com. All Rights Reserved