# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,125,95)
  Text = ("The Game of Life")
  Icon = Picture["glob2-icon-48x48.png"]
  Resizable = False
  { Panel1 Panel
    MoveScaled(1,1,29,23)
    Border = Border.Plain
    { Label3 Label
      MoveScaled(1,1,19,4)
      Font = Font["Bold,+2"]
      Text = ("GameOfLife")
    }
    { Label7 Label
      MoveScaled(1,4,19,4)
      Alignment = Align.Left
      Text = ("The Game of Life")
    }
    { PictureBox1 PictureBox
      MoveScaled(20,1,8,8)
      Picture = Picture.Load("glob2-icon-48x48.png")
    }
    { Label4 TextLabel
      MoveScaled(1,10,26,12)
      Font = Font["-1"]
      Text = ("Written in Gambas
\nby Iman Karim
\nand Benoît Minisini\n<p>\nThanks to the Gambas team!")
    }
  }
  { dwgGame DrawingArea
    MoveScaled(31,1,93,93)
    Background = &HFFFFFF
    Border = Border.Plain
    Cached = True
  }
  { Button1 Button
    MoveScaled(1,26,29,6)
    Text = ("Spawn First Generation")
  }
  { Slider1 Slider
    MoveScaled(1,44,29,4)
    MinValue = 20
    MaxValue = 1000
    Step = 10
    PageStep = 50
    Value = 20
  }
  { tmrEvolution #Timer
    #MoveScaled(39,20)
    Delay = 300
  }
  { togEvolution ToggleButton
    MoveScaled(1,33,29,6)
    Text = ("Start Evolution")
  }
  { lblDelay TextLabel
    MoveScaled(1,39,29,6)
    Text = ("Evolution Delay: 20ms")
  }
  { TabStrip1 TabStrip
    MoveScaled(1,49,29,45)
    Count = 2
    Index = 0
    Text = ("Survival")
    { chkEight CheckBox
      MoveScaled(2,36,25,3)
      Text = ("8 Neighbours")
      Tristate = True
      Value = CheckBox.True
    }
    { chkSeven CheckBox
      MoveScaled(2,33,25,3)
      Text = ("7 Neighbours")
      Tristate = True
      Value = CheckBox.True
    }
    { chkSix CheckBox
      MoveScaled(2,30,25,3)
      Text = ("6 Neighbours")
      Tristate = True
      Value = CheckBox.True
    }
    { chkFive CheckBox
      MoveScaled(2,27,25,3)
      Text = ("5 Neighbours")
      Tristate = True
      Value = CheckBox.True
    }
    { chkFour CheckBox
      MoveScaled(2,24,25,3)
      Text = ("4 Neighbours")
      Tristate = True
      Value = CheckBox.True
    }
    { chkThree CheckBox
      MoveScaled(2,21,25,3)
      Text = ("3 Neighbours")
      Tristate = True
    }
    { chkTwo CheckBox
      MoveScaled(2,18,25,3)
      Text = ("2 Neighbours")
      Tristate = True
      Value = CheckBox.None
    }
    { chkOne CheckBox
      MoveScaled(2,15,25,3)
      Text = ("1 Neighbour")
      Tristate = True
      Value = CheckBox.True
    }
    { chkZero CheckBox
      MoveScaled(2,12,25,3)
      Text = ("0 Neighbour")
      Tristate = True
      Value = CheckBox.True
    }
    { TextLabel1 TextLabel
      MoveScaled(1,1,25,10)
      Text = ("Select the Count of Neighbours where a cell will die or keep its state.")
      Alignment = Align.Top
    }
    Index = 1
    Text = ("Options")
    { TextLabel3 TextLabel
      MoveScaled(1,1,26,12)
      Text = ("Set here the probability that a Cell will be born or not when you spawn the first Generation.")
      Alignment = Align.Top
    }
    { Slider2 Slider
      MoveScaled(1,14,25,4)
      Value = 50
    }
    { Label1 Label
      MoveScaled(1,18,7,3)
      Text = ("Alive")
    }
    { Label2 Label
      MoveScaled(19,18,7,3)
      Alignment = Align.Right
      Text = ("Dead")
    }
    { chkBorder CheckBox
      MoveScaled(1,36,26,4)
      Text = ("Draw cell borders")
    }
    { chkSmall CheckBox
      MoveScaled(1,24,26,4)
      Text = ("Small generation")
    }
    { chkSymetryV CheckBox
      MoveScaled(1,32,26,4)
      Text = ("Vertical symmetry")
    }
    { chkSymetryH CheckBox
      MoveScaled(1,28,26,4)
      Text = ("Horizontal symmetry")
    }
    Index = 0
  }
}
