nsDialogs::SelectFileDialog no file selected
Hi all,
i guess i am too hung over from yesterday to find my error, i have a dialog (which displays nice) with this
!insertmacro MUI_HEADER_TEXT "$(GetLicenseFile_Header)" "$(GetLicenseFile_SubHeader)"
nsDialogs::Create /NOUNLOAD 1018
Pop $Dialog
${If} $Dialog == error
Abort
${EndIf}
${NSD_CreateFileRequest} 10 120 85% 20 $R0
Var /GLOBAL GetLicenseFile_LicenseFile
Pop $GetLicenseFile_LicenseFile
${NSD_CreateBrowseButton} 89% 120 7% 20 ...
Var /GLOBAL GetLicenseFile_BrowseButton
Pop $GetLicenseFile_BrowseButton
GetFunctionAddress $0 OnCLick_GetLicenseFile_BrowseButton
nsDialogs::OnClick /NOUNLOAD $GetLicenseFile_BrowseButton $0
nsDialogs::Show
and then
Function OnCLick_GetLicenseFile_BrowseButton
nsDialogs::SelectFileDialog /NOUNLOAD open "$exedir\0server.xml" "XML Files|*.xml|All Files|*.*"
Pop $0
MessageBox MB_OK $0
${If} $0 != ""
${NSD_SetText} $GetLicenseFile_LicenseFile $0
${EndIf}
FunctionEnd
sadly my MessageBox will not show the selection, any ideas?
I am using the latest Unicode Build 2.38-1.
Thanks for your help