[R] InputBox
Posté : sam. 28 mai 2011 20:03
Bonjour, je voudrais savoir si il est possible de faire un menu déroulant dans une InputBox et que les choix soient définis par un fichier (choix.txt)
Code : Tout sélectionner
#include <GUIConstants.au3>
$ListData = 0
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 207, 133, 193, 125)
$Label1 = GUICtrlCreateLabel("Prompt", 0, 0, 37, 17)
$List1 = GUICtrlCreateCombo("Test", 8, 80, 145, 19)
$Button1 = GUICtrlCreateButton("OK", 120, 104, 73, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
FileOpen( "Test.ini")
$ListContent = FileRead("Test.ini")
GUICtrlSetData($List1, $ListContent)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$ListData = GUICtrlRead($List1)
MsgBox(64, "AutoIt3", $ListData)
EndSwitch
WEnd