[wxTreeCtrl] ToolTip on items Topic is solved

If you are using the main C++ distribution of wxWidgets, Feel free to ask any question related to wxWidgets development here. This means questions regarding to C++ and wxWidgets, not compile problems.
Post Reply
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

[wxTreeCtrl] ToolTip on items

Post by MoonKid »

I have a wxTreeCtrl with different items in it.
On some items I want to display a tooltip if the mouse is over it.

How can I realize it? I need some inspiration for it because I found nothing about this in wxTreeCtrl.
framepointer
Super wx Problem Solver
Super wx Problem Solver
Posts: 264
Joined: Mon Aug 07, 2006 3:25 pm
Location: Baia Mare, Romania
Contact:

Post by framepointer »

Hi.

The only way is to implement your own popup control and show that one.
I have done something similar, I can post you the code later on if you don't find any other sholution.

Regards
Software is like sex,
It's better when it's free.
~Linus Torvalds
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

Post by MoonKid »

framepointer wrote:The only way is to implement your own popup control and show that one.
Is there something like a EVT_ON_MOUSE_OVER_ITEM event? How did you realized it?
MoonKid
Ultimate wxWidgets Guru
Ultimate wxWidgets Guru
Posts: 543
Joined: Wed Apr 05, 2006 9:39 am
Contact:

Post by MoonKid »

framepointer wrote:The only way is to implement your own popup control and show that one.
I have done something similar, I can post you the code later on if you don't find any other sholution
Please post me the code. ;)
tan
wxWorld Domination!
wxWorld Domination!
Posts: 1471
Joined: Tue Nov 14, 2006 7:58 am
Location: Saint-Petersburg, Russia

Post by tan »

Hi,
there is EVT_TREE_ITEM_GETTOOLTIP event, unfortunately doc says it is windows only :(
OS: Windows XP Pro
Compiler: MSVC++ 7.1
wxWidgets: 2.8.10
Post Reply