Jump to content
Sign in to follow this  
potitpanda

How to Update value please

Recommended Posts

potitpanda

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 ?

Share this post


Link to post
Share on other sites
Xandl

Hello,

wouln't it work as you do it at program start?

GUICtrlSetData($lbl_edit, $chemin)

salut

Xandl

Share this post


Link to post
Share on other sites
potitpanda

that's great

Merci

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  

×