Модуль "ObexFM" (часть 11) - ListView1ColumnClick
последняя версия: 3.0.9 build 961 beta
от 07 декабря 2007 г.
от 07 декабря 2007 г.
procedure TfrmOBEXFM.ListView1ColumnClick(Sender: TObject;
Column: TListColumn);
var
i: integer;
begin
LvSortStyle := cssAlphaNum;
{ determine the sort style }
if Column.Index = 1 then
LvSortStyle := cssItemData;
//if Column.Index = 3 then
// LvSortStyle := cssNumeric;
{ Call the CustomSort method }
ListView1.CustomSort(@CustomSortProc, Column.Index -1);
{ Set the sort order for the column}
LvSortOrder[Column.Index] := not LvSortOrder[Column.Index];
// set column image
for i:= 0 to ListView1.Columns.Count-1 do ListView1.Column[i].ImageIndex:= -1;
if LvSortOrder[Column.Index]
then
ListView1.Column[Column.Index].ImageIndex:= 21
else
ListView1.Column[Column.Index].ImageIndex:= 22;
end;
Еще записи по теме
- Модуль "P2KApi" (часть 61) - TP2KAPI.SendFileFromFile
- Модуль "Календарь" (часть 16) - EditDateBook
- Модуль "BackupFormat" (часть 6) - FormCreate
- Модуль "P2KApi" (часть 66) - TP2KAPI.MakeDumpToFile3
- Модуль "P2KApi" (часть 14) - TP2KAPI.Init
- Модуль "Сообщения" (часть 12) - GetSMSProfile
- Модуль "Flash_SHX" (часть 12) - SetCGCreateFile
