try this....
 
procedure TForm1.TreeView1MouseDown(Sender: TObject; Button: TMouseButton;
  Shift: TShiftState; X, Y: Integer);
begin
  TreeView1.Selected := TreeView1.GetNodeAt(x,y);
end;
 
 
 
Sammy !!
----- Original Message -----
Sent: Thursday, September 27, 2001 5:06 PM
Subject: [DUG]: Right Click Set focus

Hi All.
I am just working with a treeview at the moment that has a popup meny that appears when you right click on it.
The problem IS, even with the property "RightClickSelect" or what ever it is called set to true, the node in the tree does not become "selected" until the popup menu goes away.
 
Can anyone suggest a way to get aroound this ?
 
Thanks, Jeremy Coulter

Reply via email to