Jump to content
Sign in to follow this  
drakar

Problem when I used GUIGetMSG ()

Recommended Posts

drakar

#include <GUIConstants.au3>

GUICreate("Paramètre de la sonde", 275, 170, -1, -1)

GUICtrlCreateLabel ("Tapez la période du cycle en minutes :", 10, 10)

GUICtrlCreateLabel ("minutes", 226, 10)

$input1 = GUICtrlCreateInput ("", 200, 9, 20, 20, $ES_NUMBER )

GUICtrlCreateLabel ("Tapez la durée du sondage en heure :", 10, 40)

GUICtrlCreateLabel ("heures", 226, 41)

$input2 = GUICtrlCreateInput ("", 200, 39, 20, 20, $ES_NUMBER)

GUICtrlCreateLabel ("Choisissez le nombre d'enregistrement.", 10, 69)

$input3 = GUICtrlCreateCombo ("10000", 10,89, 70, 20)

GUICtrlSetData(-1,"100|10000|100000|500000"," ")

GUICtrlCreateLabel ("Appuyer sur Ok pour lancer la sonde.", 10, 130)

$btn = GUICtrlCreateButton ("Ok", 200, 127, 60, 20)

GUISetState ()

; Run the GUI until the dialog is closed

While 1

$msg = GUIGetMsg()

If $msg = $GUI_EVENT_CLOSE or $msg = $btn Then ExitLoop

Wend

MsgBox (0, "", GUICtrlRead($input1))

*****************

The combo box never close until end of program. have you an idea ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.