Weird problem with treeview tooltips - Expert input required :0) please


P

pigeonrandle

Hi,
I have a treeview which has some nodes whose text are too long to
display, so, when i hover my mouse over the node a tooltip appears
showing all the text, and then disappears almost immediately. If i move

my mouse across the node it flashes on and off (something seems to be
cancelling it?)

If i turn my main form's transparencykey to nothing, the problem goes
away.

If i look in spy++, i seem to find TTM_POP messages appearing when the
transparencykey is set, but no TTM_POP when it is not set.

Help!
James.
 
Ad

Advertisements

P

pigeonrandle

You can replicate this behaviour by
1) creating a new windows application
2) set Form1.TransparencyKey to the same as Form1.BackColor
3) Add a treeview to the form
4) Add a node to TreeView1 whose text is too long (i used
'whyisthishappeningwhyisthishappeningwhyisthishappeningwhywhywhy')
5) run it and hover your mouse over the node.

Cheers,
James
 

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