Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2008.05.18;
Скачать: CL | DM;

Вниз

PList   Найти похожие ветки 

 
Robt   (2007-09-10 19:24) [0]

Как сортировать итемы? :( (как в vcl метод sort )


 
SergeR_   (2007-09-10 19:58) [1]

Итемы чего? Какого контрола?
sort(), lvsort(),tvsort()....


 
Robt   (2007-09-10 21:07) [2]

List-a с примером если можна (я тупой )


 
Dimaxx ©   (2007-09-11 14:26) [3]

Сортировка зависит от типа данных, хранящихся в элементах PList. У него есть свойство DataMemory - доступ к массиву элементов. Копай в сторону следующего:

procedure SwapListItems( const L: Pointer; const e1, e2: DWORD );
{* Use this fu nction as the last parameter for SortData call when a PList
  object is sorting. SwapListItems just exchanges two items of the list. }

procedure SortData( const Data: Pointer; const uNElem: Dword;
                   const CompareFun: TCompareEvent;
                   const SwapProc: TSwapEvent );
{* Call it to sort any array of data of any kind, passing total
  number of items in an array and two defined (regular) function
  and procedure to perform custom compare and swap operations.
  First procedure parameter is to pass it to callback function
  CompareFun and procedure SwapProc. Items are enumerated from
  0 to uNElem-1. }



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

Текущий архив: 2008.05.18;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.021 c
2-1208786099
Int23
2008-04-21 17:54
2008.05.18
Нужна функция рекурсивного каталога и всех вложенных в него


2-1208432755
Oyeme
2008-04-17 15:45
2008.05.18
Поиск по множеству из мемо


15-1207211804
БарЛог
2008-04-03 12:36
2008.05.18
Радиоканал на 2КМ


15-1207077875
Rycar
2008-04-01 23:24
2008.05.18
Вопрос


2-1208425578
VictoR407
2008-04-17 13:46
2008.05.18
Как удалить полосы прокрутки в компоненте treeview?