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
Using WriteLn inside dll
by
Thausand
[
Today
at 01:10:29 pm]
fpsockets error: 10047
by
cdbc
[
Today
at 12:50:46 pm]
Avoid system units debugg...
by
janasoft
[
Today
at 12:13:42 pm]
Struggling with Orthello/...
by
Dzandaa
[
Today
at 11:48:43 am]
[SOLVED] progress dialog ...
by
Phoenix
[
Today
at 11:14:23 am]
Hello everyone!
by
MarsvinEvini
[
Today
at 10:22:00 am]
Notetask 1.1.0 - Free cro...
by
AlexanderT
[
Today
at 10:05:28 am]
I cannot save an unit on ...
by
Zvoni
[
Today
at 09:06:05 am]
Mapping Images Like Odome...
by
circular
[
Today
at 08:58:33 am]
Matching video to form
by
paweld
[
Today
at 08:44:46 am]
Introducing PasBuild 1.0....
by
Thaddy
[
Today
at 08:16:53 am]
Form adjusting to screen ...
by
RickSpink
[
Today
at 08:11:59 am]
Amigo programming languag...
by
paxscript
[
Today
at 04:06:34 am]
Feature better than a new...
by
TBMan
[
Today
at 03:56:13 am]
Any way to exclude terms ...
by
n7800
[
Today
at 12:59:05 am]
Just Curious: When has an...
by
n7800
[
Today
at 12:15:00 am]
Detect orphaned procedure...
by
Martin_fr
[December 09, 2025, 11:37:51 pm]
modern main menu
by
n7800
[December 09, 2025, 10:23:04 pm]
Is FPGUI still active?
by
Fred vS
[December 09, 2025, 09:29:08 pm]
Lazarus Bugfix Release 4...
by
Martin_fr
[December 09, 2025, 08:35:41 pm]
Hints in TTrayIcon
by
avra
[December 09, 2025, 07:01:02 pm]
Problem with TSQLQuery
by
sch61
[December 09, 2025, 05:15:38 pm]
What are some good modern...
by
sanric
[December 09, 2025, 04:46:09 pm]
First PythonForLazarus De...
by
fozkan
[December 09, 2025, 04:20:56 pm]
problem with zquery
by
Gebo
[December 09, 2025, 02:59:47 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: retrieve ttreeview item under the mouse when moved over an item (Read 655 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: 13266
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