100 lines
1.9 KiB
Text
100 lines
1.9 KiB
Text
# Gambas Form File 3.0
|
|
|
|
{ Form Form
|
|
MoveScaled(33.5714,24,57,40)
|
|
Expand = True
|
|
Text = ("Timer example")
|
|
Icon = Picture["timer.png"]
|
|
Resizable = False
|
|
Spacing = True
|
|
{ Button1 Button
|
|
MoveScaled(35,14,20,4)
|
|
ToolTip = ("Start")
|
|
Text = ("Trigger")
|
|
}
|
|
{ Label1 Label
|
|
MoveScaled(30,14,3.5714,4)
|
|
Border = Border.Etched
|
|
}
|
|
{ Button2 Button
|
|
MoveScaled(14,14,14,4)
|
|
ToolTip = ("Reset")
|
|
Text = ("Reset")
|
|
}
|
|
{ TextBox1 TextBox
|
|
MoveScaled(2,14,8,4)
|
|
Text = ("1500")
|
|
Alignment = Align.Right
|
|
}
|
|
{ Label2 Label
|
|
MoveScaled(2,10,53,3)
|
|
Text = ("Start Timer in...")
|
|
Alignment = Align.Left
|
|
}
|
|
{ Label3 Label
|
|
MoveScaled(2,24,11,8)
|
|
Foreground = &H00AA00&
|
|
Expand = True
|
|
Text = ("Start\ndelay")
|
|
Alignment = Align.Left
|
|
}
|
|
{ Label4 Label
|
|
MoveScaled(15,24,13,8)
|
|
Foreground = &HFF0000&
|
|
Text = ("Stop\ndelay")
|
|
Alignment = Align.Left
|
|
}
|
|
{ TextBox2 TextBox
|
|
MoveScaled(2,33,8,4)
|
|
Text = ("200")
|
|
Alignment = Align.Right
|
|
}
|
|
{ TextBox3 TextBox
|
|
MoveScaled(14,33,8,4)
|
|
Text = ("800")
|
|
Alignment = Align.Right
|
|
}
|
|
{ Label5 Label
|
|
MoveScaled(29,33,3.5714,4)
|
|
Border = Border.Etched
|
|
}
|
|
{ ToggleButton1 ToggleButton
|
|
MoveScaled(34,33,21,4)
|
|
Text = ("Start/Stop")
|
|
}
|
|
{ Timer2 #Timer
|
|
#MoveScaled(36,1)
|
|
}
|
|
{ TextLabel1 TextLabel
|
|
MoveScaled(2,1,33,6)
|
|
Text = ("Timer example by <b>Juergen Zdero</b> <juergen@zdero.com>")
|
|
}
|
|
{ Label6 Label
|
|
MoveScaled(10,14,4,4)
|
|
Text = ("ms")
|
|
}
|
|
{ Separator1 Separator
|
|
MoveScaled(2,9,53,1)
|
|
}
|
|
{ Separator2 Separator
|
|
MoveScaled(2,18,53,3)
|
|
}
|
|
{ Label7 Label
|
|
MoveScaled(2,21,53,3)
|
|
Text = ("Or start and stop Timer")
|
|
}
|
|
{ Label8 Label
|
|
MoveScaled(10,33,4,4)
|
|
Text = ("ms")
|
|
}
|
|
{ Label9 Label
|
|
MoveScaled(22,33,4,4)
|
|
Text = ("ms")
|
|
}
|
|
{ Timer1 #Timer
|
|
#MoveScaled(41,1)
|
|
}
|
|
{ Timer3 #Timer
|
|
#MoveScaled(45,1)
|
|
}
|
|
}
|