Treeview Tooltip

A

Alphonse Giambrone

I am building an Access 2000 application utilizing a Microsoft MSComctlLib
Treeview control.
By default, the treeview only shows tooltips for the node text that extends
past the treeview window and only displays the node text.
I would like to be able to show the tooltip for all nodes and have it
display my own text.
Can anyone provide a sample or point me to one, of how to do this?

Or perhaps a third party control?

TIA
 
J

Jon Lewis

There is an example of common control/api/vb based ToolTip implementation
here:
http://www.mvps.org/btmtz/tooltip/

I'm currently trying to modify this myself for use in Access. The main
difficulty is that in Access (unlike vb), controls are not real windows or
don't become real windows (with a grabbable handle) until they have the
focus. (Having said that, I've never used the MSComctlLib Treeview
control). It should be possible to activate the tooltip by cursor position
(using the GetCursorPos) api instead of by Windows Handle of the relevant
control.

Hope this helps.

Jon Lewis

(e-mail address removed)
 
A

Alphonse Giambrone

Thanks Jon.
That looks interesting and I will check it out.
Yesterday, I found this one
http://www.freevbcode.com/ShowCode.Asp?ID=1232
Which I was able to use right in Access for the treeview with only minor
modification.
The only thing I could not get to work is the balloon type tip, which is not
necessary for my app.
 
J

Jon Lewis

I'll have a look at it when I have time.

Thanks.

Jon Lewis
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top