Вниз
Скачать: CL | DM;

Файловая система   Найти похожие ветки 

← →
Игорек   (2002-03-29 12:46) [0]

Подскажите как вывести список файлов директории с их иконками.


← →
Song ©   (2002-03-29 17:26) [1]

TShellListView


← →
MBo ©   (2002-03-29 17:33) [2]

>Song
у него D5

ExtractAssociatedIcon


← →
Sergey_n ©   (2002-03-31 03:50) [3]

С Делфи поставляются примеры, и там есть пример VirtualListView, (фактически проводни) там все что тебе нужно.


← →
KIG Soft   (2002-03-31 17:13) [4]

procedure TComponator.UpdateFiles;
var
sr: TSearchRec;
li: TListItem;
fi: TSHFileInfo;
ext: string;
// IconIndex: word;
// ic: TIcon;
begin
Componator.ListView1.Items.Clear;
Componator.ListView1.Items.BeginUpdate;
if FindFirst(Componator.OvcDirectoryComboBox1.Directory + "\*.tvt", faAnyFile, sr) = 0 then repeat
if sr.Attr and faDirectory <> 0 then continue;
li := Componator.ListView1.Items.Add;
li.Caption := sr.Name;
ext := LowerCase(ExtractFileExt(li.Caption));
ShGetFileInfo(PChar("*" + ext), 0, fi, SizeOf(fi),
SHGFI_SMALLICON or SHGFI_SYSICONINDEX or SHGFI_TYPENAME);
li.ImageIndex := fi.iIcon;
if sr.Size < 1024
then li.SubItems.Add(IntToStr(sr.Size) + " byte")
else if sr.Size < 1024 * 1024
then li.SubItems.Add(IntToStr(round(sr.Size / 1024)) + " KByte")
else li.SubItems.Add(IntToStr(round(sr.Size / (1024 * 1024))) + " MByte");
li.SubItems.Add(fi.szTypeName);
until FindNext(sr) <> 0;
FindClose(sr);
Componator.ListView1.Items.EndUpdate;
end;




Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.009 c
3-88777
Blacgrin
2002-05-24 22:32
2002.06.27
Тормоз при работе с mysql


1-88831
Bocman
2002-06-17 10:43
2002.06.27
Глюк


3-88717
savc
2002-06-01 12:22
2002.06.27
Как в таблицу(заполнененую) добавить новое поле


1-88867
Мефодий
2002-06-13 20:12
2002.06.27
Мастера ! Где же вы ? Помогите же !!!!!


1-88922
ZIP
2002-06-15 02:10
2002.06.27
Путь к узлу в TTreeView




   Наверх