Solved

Can't prevent Treeview hint

Posted on 2004-09-04
4
416 Views
Last Modified: 2010-04-05
How do I prevent a TTreeview from showing the hint?

I have all these and it still shows and stays for a long time covering items in the treeview.

   Form2.showHint := false;
   TreeView1.showHint := false;
   Application.HintHidePause := 1; // all hints show for 1mS



0
Comment
Question by:frog
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:Ivanov_G
ID: 11982262
the 2 lines below are enough.
  TreeView1.ParentShowHint := False;
  TreeView1.ShowHint := False;

if "hint" means the tool tip you see when the item is too long, this should help:
  TreeView1.ToolTips := False;
0
 

Author Comment

by:frog
ID: 11987744
Thanks  Ivanov_G,
Yes, and they appear even when the items are short and have plenty of room.

For ToolTips I get the error -  Undeclared Identifier : 'ToolTips'

The TTreeView and TTreeNode don't have a property 'ToolTips'.

0
 
LVL 12

Accepted Solution

by:
Ivanov_G earned 125 total points
ID: 11987889
It has, but in Delphi 7...

ToolTips property (TCustomTreeView)

Delphi syntax:
property ToolTips: Boolean;

Description:
Set ToolTips to true to specify that items in the tree view control have tool tips (Help Hints).
Specify the ToolTip text in an OnHint event handler using the Hint property.
0
 

Author Comment

by:frog
ID: 11994679
Thanks  Ivanov_G,

I'll have to tackle this one another way.


0

Featured Post

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question