Ładny brzuch

Witam Wszyskich mam may problem z klas TListColumns a mianowicie:
gdy prbuje wywo ten fragment kodu to wyskakuje mi bd.
TListColumns *FColumn = new TListColumns(NULL); FColumn->Add();
jest mi to potrzebne przy tworzeniu nowego komponentu.



hm....
void __fastcall TForm1::FormCreate(TObject *Sender) {  const char Names[6][2][10] =   {{"Rubble","Barny"},    {"Michael", "Johnson"},    {"Bunny", "Bugs"},    {"Silver", "HiHo"},    {"Simpson", "Bart"},    {"Squirrel", "Rocky"}};  TListColumn  *NewColumn;  TListItem  *ListItem;  TListView   *ListView = new TListView(this);  ListView->Parent = this;  ListView->Align = alClient;  ListView->ViewStyle = vsReport;  NewColumn = ListView->Columns->Add();  NewColumn->Caption = "Last";  NewColumn = ListView->Columns->Add();  NewColumn->Caption = "First";  for (int i = 0; i < 6; i++)  {    ListItem = ListView->Items->Add();    ListItem->Caption = Names[i][0];    ListItem->SubItems->Add(Names[i][1]);  } }

//Edit
#include <comctrls.hpp>
Uytkownik gesiek edytowa ten post 05 lipiec 2005, 17:30
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • zsf.htw.pl
  •