User menu from file list
How from file list create user menu for selection (of one file). Number not even name file in user destiny directory is not known ahead
21 posts
!include "nsDialogs.nsh"
!include "winmessages.nsh"
!include "logiclib.nsh"
OutFile "G:\ico_pif.odh\test3.exe"
Page Custom pre
var dialog
var hwnd
Function pre
nsDialogs::Create 1018
Pop $dialog
${NSD_CreateRadioButton} 0 0 40% 6% "Group 1, Radio 1"
Pop $hwnd
${NSD_AddStyle} $hwnd ${WS_GROUP}
${NSD_SetUserData} $hwnd "Group1Radio1"
${NSD_OnClick} $hwnd RadioClick
${NSD_CreateRadioButton} 0 12% 40% 6% "Group 1, Radio 2"
Pop $hwnd
${NSD_SetUserData} $hwnd "Group1Radio2"
${NSD_OnClick} $hwnd RadioClick
nsDialogs::Show
FunctionEnd
Function RadioClick
Pop $hwnd
${NSD_GetUserData} $hwnd $0
${If} $0 == "Group1Radio1"
MessageBox MB_OK "onClick:Group1Radio1"
${ElseIf} $0 == "Group1Radio2"
MessageBox MB_OK "onClick:Group1Radio2"
${EndIf}
FunctionEnd
Section ""
SectionEnd
nsDialogs::SetUserData $hwnd "Group1Radio1"and
nsDialogs::GetUserData $hwnd
Pop $0
GetDlgItem $0 $hwndparent 1 # 1,2,3
EnableWindow $0 1