Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get coordinates of item in wxTreeCtrl?

11 views
Skip to first unread message

Ondra Holub

unread,
Nov 6, 2009, 10:22:57 AM11/6/09
to
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

unread,
Nov 7, 2009, 10:06:33 AM11/7/09
to
On 2009-11-06, Ondra Holub <ondra...@post.cz> wrote:
> 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

unread,
Nov 9, 2009, 7:54:24 AM11/9/09
to
On 7 lis, 16:06, Vadim Zeitlin <va...@wxwidgets.org> wrote:

Thank you, it works perfectly.

Best regards,
Ondra

0 new messages