Re: [gtkmm] Is it possible to handle Double-click event on the tree columns?
- From: Matthew Walton <matthew alledora co uk>
- To: Nagan gouda <n_gouda123 yahoo com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Is it possible to handle Double-click event on the tree columns?
- Date: Wed, 17 Dec 2003 08:23:22 +0000
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]