Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TShellListView in Delphi 6

Status
Not open for further replies.

vacunita

Programmer
Aug 2, 2001
9,166
MX
I recenlty upgraded my Delphi 5 to Delphi 6 Enterprise, and found some interestng new componenets in the Samples Palette, the ShellListView and the ShellTreeView. I have been tinckering with them for a while now, and have not found the property that displays the filename of the selected file in the ShellListView. If anybody knows how to get it, i'd appreciate the info.

Thanks.
Vac.

"Programming is the way to Creation."
 
Vacunita,

Try:

Code:
with ShellListView1 do
begin
   if itemIndex = -1 then ItemIndex := 0;
   showMessage( SelectedFolder.PathName );
end;

Also, you may not have noticed this, but the source for those controls can be found in $(DELPHI)\Demos\ShellControls\ (Enterprise edition; YMMV.)

Hope this helps...

-- Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top