September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
36
Task/User-input-Graphical/Gambas/user-input-graphical.gambas
Normal file
36
Task/User-input-Graphical/Gambas/user-input-graphical.gambas
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
hTextBox As TextBox
|
||||
hValueBox As ValueBox
|
||||
hLabel As Label
|
||||
|
||||
Public Sub Form_Open()
|
||||
|
||||
With Me
|
||||
.Height = 100
|
||||
.Width = 300
|
||||
.padding = 5
|
||||
.Arrangement = Arrange.Vertical
|
||||
.Title = "User input/Graphical"
|
||||
End With
|
||||
|
||||
hTextBox = New TextBox(Me) As "TextBox1"
|
||||
hTextBox.Expand = True
|
||||
|
||||
hValueBox = New ValueBox(Me) As "ValueBox1"
|
||||
hValueBox.Expand = True
|
||||
|
||||
hLabel = New Label(Me)
|
||||
hLabel.expand = True
|
||||
|
||||
End
|
||||
|
||||
Public Sub TextBox1_Change()
|
||||
|
||||
hLabel.text = hTextBox.Text & " - " & Str(hValueBox.value)
|
||||
|
||||
End
|
||||
|
||||
Public Sub valueBox1_Change()
|
||||
|
||||
TextBox1_Change
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue