Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
LCL
»
retrieve ttreeview item under the mouse when moved over an item
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
LRS Explorer
by
Xenno
[
Today
at 07:27:54 pm]
[Solved] The use of EXIT ...
by
440bx
[
Today
at 07:27:20 pm]
Is it possible to communi...
by
Xor-el
[
Today
at 06:46:27 pm]
Why does Free Pascal use ...
by
slicke
[
Today
at 06:31:22 pm]
TEDit PasswordChar not wo...
by
Hansaplast
[
Today
at 05:19:01 pm]
MR - DebuggerIntf for ter...
by
MattBradford
[
Today
at 03:59:36 pm]
Which Linux version
by
cdbc
[August 15, 2026, 08:28:37 pm]
[Qt5/Qt6] JPSupport-Qt: J...
by
shortcut
[August 15, 2026, 08:19:29 pm]
FpDebug: Bugs and API gap...
by
Martin_fr
[August 15, 2026, 08:07:50 pm]
BS Controls – Silly Compo...
by
Xenno
[August 15, 2026, 07:40:44 pm]
Framer: How to get Rid of...
by
ADMGNS
[August 15, 2026, 06:46:33 pm]
Adding persistent fields ...
by
LemonParty
[August 15, 2026, 05:47:05 pm]
Synedit wordwrap
by
Martin_fr
[August 15, 2026, 05:37:57 pm]
TlsLib4Pascal
by
Thaddy
[August 15, 2026, 05:27:52 pm]
array values as reference
by
jamie
[August 15, 2026, 03:37:41 pm]
Unleashed Pascal (async/a...
by
chamfay
[August 15, 2026, 10:35:09 am]
TDWEdit
by
docno
[August 15, 2026, 10:12:10 am]
var vs out (including "co...
by
440bx
[August 15, 2026, 08:42:28 am]
Local AI LLM Wrapper Demo...
by
edwinyzh
[August 15, 2026, 05:30:15 am]
Trndi 16 is released
by
slicke
[August 15, 2026, 03:06:44 am]
Clean up and build
by
n7800
[August 14, 2026, 11:03:28 pm]
'ReadStr' ?
by
PascalDragon
[August 14, 2026, 08:33:34 pm]
Cross platform DirectoryW...
by
LemonParty
[August 14, 2026, 07:41:15 pm]
Lazarus Bugfix Release 4....
by
wp
[August 14, 2026, 04:47:58 pm]
Separators in the compone...
by
JuhaManninen
[August 14, 2026, 01:28:05 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: retrieve ttreeview item under the mouse when moved over an item (Read 714 times)
aducom
Full Member
Posts: 162
retrieve ttreeview item under the mouse when moved over an item
«
on:
April 09, 2023, 10:26:22 pm »
Is it possible that when the mouse goes over a ttreeview to retrieve the current item under the mouse? I would like to display a hint text, depending on the item the mouse is over.
Logged
wp
Hero Member
Posts: 13649
Re: retrieve ttreeview item under the mouse when moved over an item
«
Reply #1 on:
April 10, 2023, 12:00:06 am »
Use the TTreeView method GetNodeAt(x, y):
Code: Pascal
[Select]
[+]
[-]
procedure
TForm1
.
TreeView1MouseMove
(
Sender
:
TObject
;
Shift
:
TShiftState
;
X
,
Y
:
Integer
)
;
var
node
:
TTreeNode
;
begin
node
:
=
TreeView1
.
GetNodeAt
(
X
,
Y
)
;
if
node <>
nil
then
Caption
:
=
node
.
Text
else
Caption
:
=
''
;
end
;
Logged
aducom
Full Member
Posts: 162
Re: retrieve ttreeview item under the mouse when moved over an item
«
Reply #2 on:
April 10, 2023, 08:15:10 pm »
Tnx!
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
LCL
»
retrieve ttreeview item under the mouse when moved over an item
TinyPortal
© 2005-2018