# Gambas Form File 3.0

{ Form Form
  MoveScaled(3,10,99,92)
  Text = ("Bound controls example")
  Arrangement = Arrange.Fill
  Spacing = True
  Margin = True
  { DataSource2 DataSource
    MoveScaled(1,1,97,90)
    Arrangement = Arrange.Vertical
    Spacing = True
    Table = "color"
    ReadOnly = True
    { Label7 Label
      MoveScaled(1,1,95,4)
      Font = Font["Bold,+1"]
      Background = Color.SelectedBackground
      Foreground = Color.SelectedForeground
      Padding = 4
      Text = ("Test form")
    }
    { DataBrowser2 DataBrowser
      MoveScaled(1,6,95,10)
      Control = False
      Columns = ["name"]
      Header = False
    }
    { DataSource1 DataSource
      MoveScaled(1,17,95,72)
      Expand = True
      Arrangement = Arrange.Vertical
      Spacing = True
      Table = "test"
      { DataBrowser1 DataBrowser
        MoveScaled(7,4,87,14)
        Expand = True
        Columns = ["id", "active", "firstname"]
      }
      { HBox1 HBox
        MoveScaled(2,21,90,50)
        Spacing = True
        { VBox2 VBox
          MoveScaled(1,1,26,39)
          Spacing = True
          { Label1 Label
            MoveScaled(1,3,30,4)
            Text = ("Id")
          }
          { Label9 Label
            MoveScaled(1,7,30,4)
            Text = ("Color")
          }
          { Label2 Label
            MoveScaled(1,11,30,4)
            Text = ("First Name")
          }
          { Label3 Label
            MoveScaled(1,15,30,4)
            Text = ("Name")
          }
          { Label4 Label
            MoveScaled(1,19,30,4)
            Text = ("Birth")
          }
          { Label5 Label
            MoveScaled(1,23,30,4)
            Text = ("Active")
          }
          { Label6 Label
            MoveScaled(1,27,30,4)
            Text = ("Salary")
          }
          { Label8 Label
            MoveScaled(1,31,30,4)
            Text = ("Comment")
          }
        }
        { VBox1 VBox
          MoveScaled(28,1,61,48)
          Expand = True
          Spacing = True
          { DataControl1 DataControl
            MoveScaled(1,2,30,4)
            Field = "id"
          }
          { DataCombo1 DataCombo
            MoveScaled(1,7,30,4)
            Field = "color"
            Table = "color"
          }
          { DataControl2 DataControl
            MoveScaled(1,12,30,4)
            Field = "firstname"
          }
          { DataControl3 DataControl
            MoveScaled(1,17,30,4)
            Field = "name"
          }
          { DataControl4 DataControl
            MoveScaled(1,22,30,4)
            Field = "birth"
          }
          { DataControl5 DataControl
            MoveScaled(1,27,30,4)
            Field = "active"
          }
          { DataControl6 DataControl
            MoveScaled(1,32,30,4)
            Field = "salary"
          }
          { DataControl7 DataControl
            MoveScaled(1,37,42,10)
            Expand = True
            Field = "comment"
          }
        }
      }
    }
  }
}
