Articles   Members Online: 3
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to disable hints in a TTreeView Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
31-Oct-02
Category
VCL-General
Language
Delphi 2.x
Views
116
User Rating
No Votes
# Votes
0
Replies
0
Publisher:
DSP, Administrator
Reference URL:
DKB
			Author: Tomas Rutkauskas

How to disable hints in a TTreeView

Answer:

Solve 1:

If you have installed the Internet Explorer 4.0 or high, in TTreeView component 
always displaying a hint for cutted items. It's useful but sometimes prevents and 
irritates (at least, me). 

But there is a simple way to switch off this feature: 

1   const
2     TVS_NOTOOLTIPS = $0080;
3   begin
4     SetWindowLong(yourTreeView.Handle, GWL_STYLE,
5       GetWindowLong(yourTreeView.Handle, GWL_STYLE) xor TVS_NOTOOLTIPS);
6   end;



Solve 2:

7   const
8     {Treeview has no standard way of disabling tooltips}
9     TVS_NOTOOLTIPS = $00000080;
10    TVS_UNDERLINE = $00000200;
11  
12  {Disable the hint window of the treeview, Underline items}
13  SetWindowLong(tvApplications.Handle, GWL_STYLE, GetWindowLong(tvApplications.Handle,
14    GWL_STYLE) or TVS_NOTOOLTIPS or TVS_UNDERLINE);


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC