Discussions
Sign In
•
Register
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In with LMD account
Sign In with LMD account
Categories
Recent Discussions
Categories
All Categories
1.1K
NG Controls
28
Announcements
60
LMD IDE-Tools
209
LMD ElPack
373
LMD-Tools
414
Feature Requests
38
In this Discussion
nurrohmawadi
February 2014
Rafael Maricca (LMD)
February 2014
how to find files
nurrohmawadi
February 2014
edited February 2014
in
LMD-Tools
Vote Up
0
Vote Down
how to make a file searching with LMDShellList..?
Comments
8 Comments
sorted by
Votes
Date Added
Rafael Maricca (LMD)
February 2014
Posts: 0
Vote Up
0
Vote Down
There is no built-in search feature (except certainly some sort of manual search in the items list of LMDShellFolder control).
SearchPack offers search funtionality (including text search).
nurrohmawadi
February 2014
Posts: 4
Vote Up
0
Vote Down
how to use LMDShellList1.FindData() clause..??
Rafael Maricca (LMD)
February 2014
Posts: 0
Vote Up
0
Vote Down
This is standard functionality of TCustomListView (search Delphi documentation for TCustomListView.FindData).
nurrohmawadi
February 2014
Posts: 4
Vote Up
0
Vote Down
procedure TForm1.search(const PathName, FileName: String; const InDir: boolean);
var Rec:TSearchRec;
Path:string;
begin
Path:=IncludeTrailingBackslash(PathName);
if FindFirst(Path+FileName,faAnyFile - faDirectory,Rec)=0 then
try
repeat
ListBox1.Items.Add(Rec.Name);
until
FindNext(Rec)<> 0;
finally
FindClose(Rec);
end;
if not InDir then
Exit;
if FindFirst(Path+'*.*', faDirectory, Rec) = 0 then
try
repeat
if ((Rec.Attr and faDirectory) <> 0) and (Rec.Name<>'.') and (Rec.Name<>'..') then
cari(Path + Rec.Name, FileName,True);
until
FindNext(Rec)<>0;
finally
FindClose(Rec);
end;
I use this to display files in the listbox but how to transform and display on LMDShellListBox.?
#I'm not fluent in English so I translated it on google
Rafael Maricca (LMD)
February 2014
Posts: 0
Vote Up
0
Vote Down
>>I use this to display files in the listbox but how to transform and display on LMDShellListBox.?<<
This is not possible. The control is used to actually display existing folders. For displaying search results, you can use a simple TListView control.
nurrohmawadi
February 2014
Posts: 4
Vote Up
0
Vote Down
can you give me an example.
Rafael Maricca (LMD)
February 2014
Posts: 0
Vote Up
0
Vote Down
Not sure what you mean. Replace the
ListBox1.Items.Add(Rec.Name); and add ListItems instead to a TListView.
However I suggest you c
heck e.g. the SearchPack demos.
There is exactly the functionality included you are searching (and much more).
Sign In
or
Register
to comment.
Comments