Re: Recommendation for a good TreeView

From: Andrea Raimondi (rainaple_at_tin.it)
Date: 07/28/04


Date: Wed, 28 Jul 2004 00:24:42 +0200

Andrew Diabo wrote:
> Not sure if the HTML Hint component would display the description
> only if the description is longer than the viewable window. I think it
> will display a hint regardless. Anyway, I'll check it out. Thanks for
> pointing that out.

Welcome,

Anyway there's a very nice event called "OnHint".
You can query mouse position with TMouse.CursorPos and
GetItemAt method of TreeVeiw checking to see if it's pointing to a
tree node.

Now, simply do a TextWidth on the canvas and compare with the
client width, adjusting for the origin - which can be taken I think in
some way.

You have all the elements then to show the hint.

Obviously, if Bruno has implemented all this directly inside the
treeview component, the better.

> Thanks Bruno and everyone who responded to my question.

Welcome,

Andrew



Relevant Pages

  • Re: Javascript form control element validation
    ... want to be able to display a popup window (callout?) when a text input ... is to display a "hint". ... So that when a user clicks in the username cell, they have a "hint" that gives them further info about the field, along with the opton to close the "hint". ...
    (comp.lang.javascript)
  • Re: Popup Hints in Treeview
    ... > You have to turn the TreeView.ShowHints off and generate and display ... > your own hint window in the TreeView OnMouseMove event handler ... ... TreeView: TTreeView; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Does Psalm 110 really work for Big Industry?
    ... >> quoted from other questinable source, and he doesn't display even a ... >> hint of being able to think for himself. ... >> posts and rantings. ...
    (sci.energy.hydrogen)
  • Re: Creating a distribution list
    ... First thank you very much for the hint. ... > Hi Kerstin, ... >> I get a DL where the display name is always the email address. ... >> Set myRecipients = myMailItem.Recipients ...
    (microsoft.public.outlook.program_vba)
  • [PATCH 1/3] UEAGLE : comestic
    ... hint about wrong cmv/dsp ... Display a message to warn user when the modem is ready: it can help people to detect problems on the line without debug trace ... display modem type (pots/isdn) ...
    (Linux-Kernel)