potitpanda Posted January 8, 2008 Posted January 8, 2008 So i have this code $chemin = IniRead(@ScriptDir & "\autopcasto13.ini", "AutoPCastO13", "chemin", "") $popup = GUICreate("Confirmation du chemin de l'image", 432, 227, -1, -1, BitOR($WS_CAPTION,$WS_POPUP,$WS_BORDER,$WS_CLIPSIBLINGS), BitOR($WS_EX_TOPMOST,$WS_EX_WINDOWEDGE)) $lbl_edit = GUICtrlCreateEdit("", 10, 34, 410, 80, BitOR($ES_AUTOVSCROLL,$ES_AUTOHSCROLL,$ES_READONLY,$ES_WANTRETURN,$WS_HSCROLL,$WS_VSCROLL)) GUICtrlSetData(-1, $chemin) GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif") $Button_1 = GUICtrlCreateButton("Oui", 116, 172, 76, 36, 0) $Button_2 = GUICtrlCreateButton("Non", 244, 172, 76, 36, 0) $Label1 = GUICtrlCreateLabel("Le chemin de l'image a utiliser pour le déploiement est le suivant : ", 8, 8, 313, 17) $Label2 = GUICtrlCreateLabel("Désirez-vous modifier le chemin de l'image a utiliser ?", 96, 136, 252, 17) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $Button_1 GUISetState(@SW_HIDE) Choixchemin() $chemin = IniRead(@ScriptDir & "\autopcasto13.ini", "AutoPCastO13", "chemin", "") In $lbl_edit it show the first value of $chemin When I click on OK it will be change the value of chemin after i have selected new path It put in a Ini file the new value of $chemin I read the new value of $chemin So How can I update the content of $lbl_edit with the new value of $chemin ?
Xandl Posted January 8, 2008 Posted January 8, 2008 Hello, wouln't it work as you do it at program start? GUICtrlSetData($lbl_edit, $chemin) salut Xandl
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now