2005. augusztus 24., szerda
Disable hints in a TTreeView
Problem/Question/Abstract:
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:
const
TVS_NOTOOLTIPS = $0080;
begin
SetWindowLong(yourTreeView.Handle, GWL_STYLE,
GetWindowLong(yourTreeView.Handle, GWL_STYLE) xor TVS_NOTOOLTIPS);
end;
Solve 2:
const
{Treeview has no standard way of disabling tooltips}
TVS_NOTOOLTIPS = $00000080;
TVS_UNDERLINE = $00000200;
{Disable the hint window of the treeview, Underline items}
SetWindowLong(tvApplications.Handle, GWL_STYLE, GetWindowLong(tvApplications.Handle,
GWL_STYLE) or TVS_NOTOOLTIPS or TVS_UNDERLINE);
Feliratkozás:
Megjegyzések küldése (Atom)
Nincsenek megjegyzések:
Megjegyzés küldése