I don't think you can (where there's a will there's a way maybe). The treeview doesn't have a property for setting them off, and setting showtips to .F. for the form doesn't affect the control. There may be a way to shut them off through API calls but I don't know it...I'm thinking that maybe if you had the hwnd to the control that maybe there is an API to send a message to it telling it to shut them off...I guess they thought it was such a good feature you wouldn't want to ever shut it off.
Slighthaze = NULL
[ul][li]FAQ184-2483 An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
I was wondering... is it possible to write the text in treeview control on more than 1 line ? i've tried something like "aaa" + chr(13) + "bbb" but it doesn't work...
I was wondering... is it possible to write the text in treeview control on more than 1 line ? i've tried something like "aaa" + chr(13) + "bbb" but it doesn't work...
Faq184-3121
Mike Gagnon
If you want to get the best response to a question, please check out FAQ184-2483 first.
Do you know how could I disable the tooltips that appear when the text is larger than the tree width
This code tested under W2K
---------------------
Declare Long FindWindow in User32 ;
String cClass, String cTitle
Declare Integer SendMessage in User32 ;
Long nhWnd, Integer Msg, Integer wParam, Long lParam
*** Disable TreeView ToolTips if found
cToolTips = 'msvb_lib_tooltips'
SendMessage(FindWindow(cToolTips, Null), 0x10, 0, 0)
---------------------
I used Spy++ that comes with VS6 and found the class to be
'TreeView20WndClass', used it with your code and got the same wonderful result. As csandu00 asked what did you use to find the class name that you came up with. Also, interestingly enough...once you have shut the tooltips off if you set ShowTips to .T. it then DOES effect the treeview control. Well I gotta give you a star on this one...nice job.
Slighthaze = NULL
[ul][li]FAQ184-2483 An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.