Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Messages - WARNING
french only sorry ...
LE MESSAGE WARNING

vvarning.png

Bonjour,
avec ce petit exemple nous allons voir comment utiliser la boite message.warning et récuperer les actions du bouton.

Le type d'action renvoyée du clic du bouton est INTEGER
Il suffit donc de définir une variable INTEGER et de la lire comme ceci :

DIM mareponse AS Integer
mareponse = Message.Warning("ma question?", "reponse1", "reponse2", "reponse3")

vous pouvez maintenant télécharger l'exemple :

voici le code de l'application :

PUBLIC SUB _new()

END

PUBLIC SUB Form_Open()
ME.Center
END

PUBLIC SUB Button1_Click()
DIM mareponse AS Integer
mareponse = Message.Warning("aimez vous les radis?", "oui", "non", "pastrop")
SELECT CASE mareponse
CASE 1
Label2.Text = "vous avez cliqué Oui"
CASE 2
Label2.Text = "vous avez cliqué Non"
CASE 3
Label2.Text = "pourtant c'est bon les radis !!!"
END SELECT
END

voila pour aujourd'hui
wink

Creation date : 14/01/2010 @ 15:35
Last update : 14/01/2010 @ 15:35
Category : Messages
Page read 4935 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^