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

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

 
Ivolg   (2004-09-09 16:56) [0]

ПРИВЕТ Всем!! Помигите PLIZZZ! Как мне мона добавить Колонку D ListView!! Спасибо заране!!!!!!


 
@Lex ©   (2004-09-09 17:03) [1]

This example requires only a blank form.  All other objects: TListView, TListColumns, TListItems, are created dynamically. You must add comctrls to the uses clause of the unit file.

procedure TForm1.FormCreate(Sender: TObject);

const
 Names: array[0..5, 0..1] of string = (
   ("Rubble", "Barney"),
   ("Michael", "Johnson"),
   ("Bunny", "Bugs"),
   ("Silver", "HiHo"),
   ("Simpson", "Bart"),
   ("Squirrel", "Rocky")
   );

var
 I: Integer;
 NewColumn: TListColumn;
 ListItem: TListItem;
 ListView: TListView;
begin
 ListView := TListView.Create(Self);
 with ListView do
 begin
   Parent := Self;
   Align := alClient;

   ViewStyle := vsReport;

   NewColumn := Columns.Add;
   NewColumn.Caption := "Last";
   NewColumn := Columns.Add;
   NewColumn.Caption := "First";

   for I := Low(Names) to High(Names) do
   begin
     ListItem := Items.Add;
     ListItem.Caption := Names[I][0];
     ListItem.SubItems.Add(Names[I][1]);
   end;
 end;
end;


 
Palladin ©   (2004-09-09 17:04) [2]

Columns.Add



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

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



Память: 0.45 MB
Время: 0.021 c
3-1093349602
Карелин Артем
2004-08-24 16:13
2004.09.26
FB 1.5.1 и индекс по выражению.


1-1094571065
Marina
2004-09-07 19:31
2004.09.26
Подключение к проекту файлов с расширением *.inc


4-1092898162
Sergiant
2004-08-19 10:49
2004.09.26
Обои


14-1094377822
Baron
2004-09-05 13:50
2004.09.26
Кто играл на деньги


14-1093740231
Nick0la
2004-08-29 04:43
2004.09.26
Есть ли горячая клавиша для путешествия по операторным скобкам?




   Наверх