NSIS v2.37
SendMessage WM_SETTEXT seems to modifiy the stack when apply to EDIT control
Function Bug
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateLabel} 0 3u 100% 12u "Test"
Pop $CtlHWNDDummy
${NSD_CreateText} 50u 82u 205u 12u ""
Pop $CtlHWND4
Push 1
SendMessage $CtlHWNDDummy ${WM_SETTEXT} 0 0
Pop $R0
Messagebox mb_ok 'Label $R0'
Push 1
SendMessage $CtlHWND4 ${WM_SETTEXT} 0 0
Pop $R0
Messagebox mb_ok 'EDIT $R0'
nsDialogs::Show
FunctionEnd
Produce :
Label 1
EDIT 592592
Email : lzorglub@hotmail.com
Logged In: NO
If I use a callback function OnChange it's work
GetFunctionAddress $0 OnChange
nsDialogs::OnChange /NOUNLOAD $EDIT $0
Perhaps a stack error when no callback define
Logged In: YES
user_id=584402
Originator: NO
Thanks, fixed.