How do I catch right-click on a TreeView header?



Is there any way I can detect a right-click on a TreeView header?

I have a sorted tree view and left click is sorting the rows according
to the header just fine. "clicked" only applies to left clicks and I
don't want to invoke what I want to be the right-click function every
time I change the sort criterion.

"button-press-event" only seems to happen for the main body of the
TreeView not the header.

Any advice would be appreciated.

John Collins Xi Software Ltd www.xisl.com





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