Guest_imported
New member
- Jan 1, 1970
- 0
I've searched and searched and still haven't found how to set the "path" property of a ShellTreeView. I want the Shelltreeview ti open to a specific path when a shortcut is right clicked, my code looks like this:
procedure TForm1.Properties1Click(Sender: TObject);
begin
if blist1.Selected.Index < 2 then
begin
prop.ShellTreeView1.Enabled:=false;
end
else
begin
prop.ShellTreeView1.Enabled:=true;
prop.ShellTreeView1.Path:=blist1.Selected.SubItems.Strings[0];
end;
but it doesn't do any thing. any ideas how i can get ti to open??
Thanx alot.
Samuel J. Johnson.
procedure TForm1.Properties1Click(Sender: TObject);
begin
if blist1.Selected.Index < 2 then
begin
prop.ShellTreeView1.Enabled:=false;
end
else
begin
prop.ShellTreeView1.Enabled:=true;
prop.ShellTreeView1.Path:=blist1.Selected.SubItems.Strings[0];
end;
but it doesn't do any thing. any ideas how i can get ti to open??
Thanx alot.
Samuel J. Johnson.