newsanti Posted December 14, 2021 Share Posted December 14, 2021 If we know the node, How to know the display position of TUniTreeNode? procedure Tsti0001CustomUniguiMarvelExplorerFrameLink1002_TREEVIEW_EVENTS. ExplorerClick_PopupMenu; var oNode: TUniTreeNode; P: TPoint; begin inherited; oNode:= MyFrame.TreeView1.Selected; if Assigned(oNode) then begin MyFrame.TreeViewPopupMenu.LoadMenu(oNode); P.X:= ????; P.Y:= ????; MyFrame.TreeViewPopupMenu.PopupMenu.Popup(P.X,P.Y,MyFrame.TreeView1); end; end; Quote Link to comment Share on other sites More sharing options...
Sherzod Posted December 14, 2021 Share Posted December 14, 2021 Hello, Use UniTreeView.OnCellContextClick event. Quote Link to comment Share on other sites More sharing options...
newsanti Posted December 14, 2021 Author Share Posted December 14, 2021 6 minutes ago, Sherzod said: Hello, Use UniTreeView.OnCellContextClick event. I want to display the PopupMenu by writing commands. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.