Re: [gtkmm] Q: How to get button_press_event for Gtk::TreeView
- From: Daniel Sundberg <dss home se>
- To: "Kuth, Joachim Dr." <Joachim Kuth T_SYSTEM sysde eads net>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Q: How to get button_press_event for Gtk::TreeView
- Date: Fri, 8 Nov 2002 17:35:42 +0100
On Fri, 8 Nov 2002 16:25:05 +0100
"Kuth, Joachim Dr." <Joachim Kuth T_SYSTEM sysde eads net> wrote:
> Hi everybody,
>
> I want to connect a signal handler to Gtk::TreeView
> to handle various mouse button clicks. Two questions arise:
>
> - I won't get any BUTTON_PRESS events, only BUTTON_RELEASE ones.
> So I guess the default handler provided by Gtk::TreeView
> stops further emitting by returning true.
> Any idea how to disable this behaviour?
>
Take a look at:
add_events(GdkEventMask);
http://www.gtkmm.org/gtkmm2/docs/reference/html/classGtk_1_1Widget.html#a50
http://www.gtkmm.org/gtkmm2/docs/reference/html/group__gdkmmEnums.html#a95
I think this might solve your problem.
> - Is there a way to disable the default behaviour that
> pressing *any* mouse button will change the selection?
> E.g. I want to change the selection with button1,
> show a popup menu with button3, etc.
>
I don't think it is good UI design to make your program behave different from other programs. Of course you could popup a menu on button3-click but it should also select the row if that is the default behaviour.
Regards
Daniel Sundberg
> Any suggestions/hints welcome.
>
> Thanks,
>
> Joachim Kuth.
> _______________________________________________
> 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]