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 const2 TVS_NOTOOLTIPS = $0080;
3 begin4 SetWindowLong(yourTreeView.Handle, GWL_STYLE,
5 GetWindowLong(yourTreeView.Handle, GWL_STYLE) xor TVS_NOTOOLTIPS);
6 end;
Solve 2:
7 const8 {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);