Solved

Can't prevent Treeview hint

Posted on 2004-09-04
4
417 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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

840 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