M
makilyang
Unregistered / Unconfirmed
GUEST, unregistred user!
例子中这一段只能打开文件,能不能在FileListBox中浏览文件夹呢?
with FileList do
begin
if HasAttr(FileName, faDirectory) then
DirectoryOutline.Directory := FileName
else ExecuteFile(FileName, '', Directory, SW_SHOW);
end;
with FileList do
begin
if HasAttr(FileName, faDirectory) then
DirectoryOutline.Directory := FileName
else ExecuteFile(FileName, '', Directory, SW_SHOW);
end;