Advertisement
Guest User

Coder

a guest
Sep 4th, 2014
488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.87 KB | None | 0 0
  1. procedure TForm5.FormCreate(Sender: TObject);
  2. var i:integer;
  3. begin
  4.   //Add the characters
  5.  ComboBox1.Items.BeginUpdate;
  6.  for i := 0 to StringGrid2.RowCount-1 do
  7.   begin
  8.      ComboBox1.Items.Add(StringGrid2.Cells[0,i]);
  9.   end;
  10.  ComboBox1.Items.EndUpdate;
  11.  
  12.  //Add the karts
  13.  ComboBox2.Items.BeginUpdate;
  14.  for i := 0 to 15 do
  15.   begin
  16.    ComboBox2.Items.Add(StringGrid1.Cells[1,i]);
  17.   end;
  18.  for i := 47 to StringGrid1.RowCount-1 do
  19.   begin
  20.    ComboBox2.Items.Add(StringGrid1.Cells[1,i]);
  21.   end;
  22.  ComboBox2.Items.EndUpdate;
  23.  
  24.  //Add the tires
  25.  ComboBox3.Items.BeginUpdate;
  26.  for i := 16 to 34 do
  27.   begin
  28.    ComboBox3.Items.Add(StringGrid1.Cells[1,i]);
  29.   end;
  30.  ComboBox3.Items.EndUpdate;
  31.  
  32.   //Add the glider
  33.  ComboBox4.Items.BeginUpdate;
  34.  for i := 35 to 46 do
  35.   begin
  36.    ComboBox4.Items.Add(StringGrid1.Cells[1,i]);
  37.   end;
  38.  ComboBox4.Items.EndUpdate;
  39.  
  40. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement