Recent

Author Topic: VirtualTreeView Hover over Node  (Read 603 times)

Weitentaaal

  • Hero Member
  • *****
  • Posts: 516
  • Weitental is a very beautiful garbage depot.
VirtualTreeView Hover over Node
« on: April 21, 2021, 11:10:38 am »
Hello guys,

so i have a TreeView with some Nodes and i wanted to create an Event which gets fired when some1 Hovers over a Node.

Didn't find anything about an onhover event (maybe i could use on enter and onexit node). And after some1 hovers over a Node

a Text will get displayed.

is this possible ? when yes how ?

balazsszekely

  • Guest
Re: VirtualTreeView Hover over Node
« Reply #1 on: April 21, 2021, 01:31:43 pm »
Hi,

Quote
so i have a TreeView with some Nodes and i wanted to create an Event which gets fired when some1 Hovers over a Node.
Didn't find anything about an onhover event (maybe i could use on enter and onexit node). And after some1 hovers over a Node
a Text will get displayed.
is this possible ? when yes how ?
If I understood you correctly, you wish to show some kind of hint. For this you have the OnGetHint event.
Code: Pascal  [Select][+][-]
  1. procedure TForm1.VSTGetHint(Sender: TBaseVirtualTree;
  2.   Node: PVirtualNode; Column: TColumnIndex;
  3.   var LineBreakStyle: TVTTooltipLineBreakStyle; var HintText: String);
  4. begin
  5.   //..
  6. end;

You must set ShowHint to true and HintMode to hmHint.

Weitentaaal

  • Hero Member
  • *****
  • Posts: 516
  • Weitental is a very beautiful garbage depot.
Re: VirtualTreeView Hover over Node
« Reply #2 on: April 21, 2021, 02:49:20 pm »
Perfekt Thanks  :)


 

TinyPortal © 2005-2018