Gambas France BETA


Pas de compte ? Incription

CheckBox

À propos de ce code

Démonstration d'utilisation des CheckBox

Code source

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
' Gambas class file

PUBLIC SUB Form_Open()

CheckBox1.Value = FALSE
CheckBox2.Value = FALSE
CheckBox3.Value = FALSE

END

PUBLIC SUB Test_Click()

Message.Title = ("CheckBox Value")
SELECT CASE LAST.tag
CASE "CheckBox1"
IF CheckBox1.Value = TRUE THEN Message.Info(LAST.tag & (" is checked")) ELSE Message.Info(LAST.tag & (" is unckecked"))
'
CASE "CheckBox2"
IF CheckBox2.Value = TRUE THEN Message.Info(LAST.tag & (" is checked")) ELSE Message.Info(LAST.tag & (" is unckecked"))
'
CASE "CheckBox3"
IF CheckBox3.Value = TRUE THEN Message.Info(LAST.tag & (" is checked")) ELSE Message.Info(LAST.tag & (" is unckecked"))
'
END SELECT

END

PUBLIC SUB btnQuitter_Click()

ME.Close()

END

Commentaires