Yes I was doing that. I just tried it again, and it worked. BUT when I set teh "RightClickSelect" property to true, it didnt work....thats weired...well at least I know what it is now.
 
Thanks, Jeremy Coulter
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Sammy
Sent: Thursday, 27 September 2001 18:47
To: Multiple recipients of list delphi
Subject: Re: [DUG]: Right Click Set focus

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