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



Firstly, please use 'Reply to All' when replying to a mailing list.

Working examples can be found in the gtkmm source distribution in the gtkmm-demo, where you'll find code which allows double-clicking on the examples in a TreeView to launch them. There is a lot of example code supplied with gtkmm, and a lot of it is extremely useful.

Nagan gouda wrote:
Thanks for the information.
It will be helpfull to me if you send me the links to
ssimilar working examples....

Thanks,
Naganagouda Meti.

--- Matthew Walton <matthew alledora co uk> wrote:

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]