Re: [gtkmm] Q: How to get button_press_event for Gtk::TreeView

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:


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.

Daniel Sundberg

> Any suggestions/hints welcome.
> Thanks,
> Joachim Kuth.
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org

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