how to show up the whole text of node in treeview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello, everyone:

I have a treeview control with long text. Although there is a scroll bar, I
would like to show up the whole text of selected node when the mouse hover on
it, just like the Window Explorer does.

Could somebody help?

Sincerely,

haiwen
 
Buddy, that is a tool-tip. You can change the tool-tip for your treeview control
based on the various
mouse events as the user is moving the mouse. In your case the tool-tip would be
the contents of the
node currently under the mouse. This actually works fairly well and I've
implemented similar features
in a couple of my applications. They do get old fast so you may want to be able
to turn them off as
well (option somewhere in the program maybe).
 
Hello, claes:

Thanks for your reply, you are right.
It is quite weird for me that I have two same tree view controls, one works,
but another doesn't. they have same setting except do different work after
select.

Is there somewhere I could not find out to make it work? or do you have any
idea about the control will lost the functionality under any situation?

I do appreciate your help.

haiwen
 
I have no idea why it works for one but not the other.
AFAIK, the only way to prevent the tooltip is by
adding the TVS_NOTOOLTIPS style to it, and that
requires an override of the CreateParams property or
a call to SetWindowLong/SetWindowLongPtr. You haven't
done that by any chance?

Only idea I can think of is to start commenting your code
until it works again and the adding it back again until you
find the place where it breaks

/claes
 
Here's a even stranger one for you. We have an Application with several
TreeViews in it, on slider controls (Outlook Bar from C1). Sometimes the
feature works, other times it does not. We have had no luck tracing down
this problem, it being so sporadic...

No, we have done none of those things either...

Thanks!
 
Back
Top