Re: [gtkmm] Treeview help needed



Hi David,

if i'm not mistaken you cna use Gtk::TreeViewColumn::signal_clicked() to
get a clicked signal from the headers.
 
For sorting use something like this:

treestore->set_sort_column_id(<your column to sort>,
Gtk::SORT_ASCENDING);

grtz,

Bart

On Wed, 2004-04-14 at 18:08, David Kinyanjui wrote:
> Hello everyone;
> I have implemented a treeview with three columns.
> First column stores orderid, second column store order name and third 
> column stores the order date.
> My intent is to be able to reorder the entries by any column of choice 
> (at UI level) ...  by clicking the the column header.
> For instance, if the user click the date column the entries will be 
> reordered by that column (either ascendingly or desc.) automagically and 
> so on, and so forth.
> If this is possible to attain,... please, can anyone out there give help.
> your ideas, hints and/ or examples will be highly appreciated
> Sincerely,
> David
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list




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