![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
TreeView [Delphi, Windows]
Pilligrim © (2008-01-11 03:58:00)Здравствуйте!
Буду краток проблема с кодом:
это работает:
....
ListBox1.AddDirList(DirPath + {$IFDEF LIN} '*' {$ELSE} '*.*' {$ENDIF}, 0 )
а это НЕТ:
....
TreeView1.AddDirList(DirPath + {$IFDEF LIN} '*' {$ELSE} '*.*' {$ENDIF}, 0 );
.........
это также работает:
....
begin
TreeView1.TVInsert(i, j, tmpName)
end;
За ответ заранее благодарен.
Pilligrim (2008-01-11 14:07:00) [1]Спасибо!
mdw (2008-01-11 12:16:00) [2]Открываем KOL.pas, находим AddDirList и читаем:
procedure AddDirList( const Filemask: KOLString; Attrs: DWORD );
{* |<#listbox>
|<#combo>
Can be used only with listbox and combobox- to add directory list items,
filtered by given Filemask (can contain wildcards) and Attrs. Following
flags can be combined in Attrs: