tmssoftware.com
TMS Support Center
Treeview - right-click node select
FNC
TMS FNC UI Pack
Robert_Devine
(Robert Devine)
February 22, 2017, 12:25am
1
Hi
At the moment I need to left-click to select a node, then right-click for the pop-up menu. Is there a way to do a right-click select of a node?
Thanks, Bob
Pieter
(Pieter)
February 22, 2017, 7:24am
2
Hi,
The right-mouse button is currently reserved for supporting popup menus. If you want to use the right mouse button to select an item you'll need to add the following code to your application:
procedure TForm1.TMSFNCTreeView1MouseUp(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Single);
begin
TMSFNCTreeView1.SelectVirtualNode(TMSFNCTreeView1.XYToNode(X, Y));
end;
Robert_Devine
(Robert Devine)
February 22, 2017, 11:58pm
3
Lovely thanks - something like XYToNode is what I was looking for.
Cheers, Bob
Related topics
Topic
Replies
Views
Activity
Right Click Popup Menu in Tree
TMS FMX UI Pack
1
546
August 7, 2019
How to find node under mouseclick in TAdvTreeView
TMS VCL UI Pack
2
268
February 14, 2017
How to right click select node in TAdvTreeView
TMS VCL UI Pack
2
445
October 8, 2018
FNCTreeview node hints
TMS FNC UI Pack
2
196
October 16, 2020
TMSFMXTreeview
FMX Feature Requests
fmx-ui-pack
3
132
January 14, 2022
© tmssoftware.com