Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.09.26;
Скачать: 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 вся ветка

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

Наверх




Память: 0.47 MB
Время: 0.042 c
9-1085904941
MIX
2004-05-30 12:15
2004.09.26
OpenGL


4-1092538906
nika_ufc
2004-08-15 07:01
2004.09.26
извлечение информаций из фонта


6-1090190924
Лев Ландау
2004-07-19 02:48
2004.09.26
Как сгенерить html-страницу и поместить ее в TWebBrowser?


3-1093618349
ceval
2004-08-27 18:52
2004.09.26
Нужно поле mr вывести в DBText


1-1095000503
Gear
2004-09-12 18:48
2004.09.26
Как сделать, чтобы форму нельзя было закрыть и уничтожить пока