1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
# Gambas Form File 3.0
{ Form Form
MoveScaled(0,0,98,59)
Resizable = False
{ lblIntro Label
MoveScaled(-1,0,99,6)
Background = Color.LightForeground
Alignment = Align.Center
Border = Border.Plain
Text = ("Example of how to use a (design-time) database connection and data-bound controls.")
}
{ personDataSource DataSource
MoveScaled(0,6,98,53)
Connection = Connections["personConnection"]
Table = "person2"
{ personDataBrowser DataBrowser
MoveScaled(1,1,96,31)
Columns = ["given_name", "sir_name", "birthdate"]
Labels = ["Vorname", "Nachname", "Geburtstag"]
Grid = True
}
{ dataSex DataCombo
MoveScaled(19,33,32,4)
Field = "sex_id"
Table = "sex"
Display = "name"
}
{ dataGivenName DataControl
MoveScaled(19,38,32,4)
Field = "given_name"
}
{ dataSirName DataControl
MoveScaled(19,43,32,4)
Field = "sir_name"
}
{ dataBirthdate DataControl
MoveScaled(19,48,32,4)
Field = "birthdate"
}
{ Label1 Label
MoveScaled(1,38,16,3)
Text = ("Vorname")
}
{ Label2 Label
MoveScaled(1,43,16,3)
Text = ("Nachname")
}
{ Label3 Label
MoveScaled(1,48,16,3)
Text = ("Geburtstag")
}
{ Label5 Label
MoveScaled(1,33,17,3)
Text = ("Geschlecht")
}
}
}
|