Re: [gtkmm] Is it possible to handle Double-click event on the tree columns?



Simple enough - add a handler for the TreeView's signal_row_activated(). The handler function should be something like

void row_activated(const TreeModel::Path &path, TreeViewColumn *column)

path is the TreeModel path which indicates which row was clicked on - you can get an iterator for this using TreeModel::get_iter. column is a pointer to the column in the activated row which was activated, giving you some indication of where the mouse pointer was.

This is, however, also triggered by pressing enter with a row highlighted, which is most likely desirable behaviour. If it's not, you'll need to delve a bit deeper and look at generic mouse event handling signals instead.

Nagan gouda wrote:
Hi,
I'm displaying some mpeg2 shots as tree columns. Now i
want to play them when  i double-cick the particular
column. So please tell me whether is it possible?

Thanks in advance....
Naganagouda Meti.



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