Discussion:
How to get coordinates of item in wxTreeCtrl?
(too old to reply)
Ondra Holub
2009-11-06 15:22:57 UTC
Permalink
Hello.

I am able to get item placed on certain coordinates. But I need
reverse function to correctly show pop menu for wxTreeCtrl item. I
want to show it after right-click or after Win-Menu keypress. For
mouse there is no problem, but when I use keyboard, I can only guess,
where the coordinates of an item are.

Thanks for any hint.
Ondra
Vadim Zeitlin
2009-11-07 15:06:33 UTC
Permalink
Post by Ondra Holub
I am able to get item placed on certain coordinates. But I need
reverse function to correctly show pop menu for wxTreeCtrl item.
You can use GetBoundingRect() for this.

Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
Ondra Holub
2009-11-09 12:54:24 UTC
Permalink
Post by Ondra Holub
I am able to get item placed on certain coordinates. But I need
reverse function to correctly show pop menu for wxTreeCtrl item.
 You can use GetBoundingRect() for this.
 Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
             http://www.tt-solutions.com/
Thank you, it works perfectly.

Best regards,
Ondra

Loading...