[HELP]GUI label update/refresh

03/05/2012 12:28 Endorfin#1
Huhu epvpers!

Well my problem is:

I made a label:
Code:
$k=GUICtrlCreateLabel("Password:  " & $pw, 8, 10)
When i change the password($pw variable), i cant refresh the label with the new password, tried this: GUICtrlSetData(), but doesnt work for me. Some1 have any idea?
03/05/2012 12:35 Havelock_Vetinari#2
Quote:
Originally Posted by Endorfin View Post
Huhu epvpers!

Well my problem is:

I made a label:
Code:
$k=GUICtrlCreateLabel("Password:  " & $pw, 8, 10)
When i change the password($pw variable), i cant refresh the label with the new password, tried this: GUICtrlSetData(), but doesnt work for me. Some1 have any idea?

PHP Code:
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"623442192124)
$pw "hello"
$k=GUICtrlCreateLabel("Password:  " $pw810)
$read =GUICtrlCreateInput("",10,30,100,25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

EndSwitch
$read2=GUICtrlRead($read)
$pw $read2
GUICtrlSetData
($k,$pw)
WEnd 
This works
03/05/2012 13:21 Endorfin#3
Thx man, helped alot :) I called the function in wrong place in the code :)
03/05/2012 17:29 Havelock_Vetinari#4
Quote:
Originally Posted by Endorfin View Post
Thx man, helped alot :) I called the function in wrong place in the code :)
No problem ;)