Mega Code Archive

 
Categories / Delphi / VCL
 

To disable the on fly tooltips in TTreeView

Title: to disable the on-fly tooltips in TTreeView Question: How can I disable the on-fly tooltips in TTreeView? Answer: 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;