Hey Peter,
sub button_pressed_event {
my ($widget, $event) = @_;
my $treeselection = $tview->get_selection;
my ($x, $y)=$event->get_coords;
my $mouse_path=$tview->get_path_at_pos($x, $y);
if($mouse_path) {
$tview->set_cursor($mouse_path);
my @columns = $tview->get_columns;
sub button_pressed_event {
my ($widget, $event) = @_;
my ($path, $column) = $slist->get_cursor;
# do what you want with $column...
# or if you want to check for a specific column:
if ($column == $columns[0]) {
# do whatever with it
Hey,
maybe I missed something but I can't find the solution (if it exist):
I have a tree with several columns. When I have the selected row I
would like to know which column was under the mouse pointer.
Is it possible to have it? How?
Thanks,
Attila
sub button_pressed_event {
my ($widge