TreeView右键选择问题

改为:
   if Button = mbRight then begin
     if TreeView1.GetNodeAt(X, Y)<>Nil then begin
       TreeView1.GetNodeAt(X, Y).Selected := true;
       PopupMenu1.Popup(Mouse.CursorPos.X, Mouse.CursorPos.Y);
     end;
   end;

posted @ 2013-04-29 12:57  小天1981  阅读(171)  评论(0编辑  收藏  举报