Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 5th March 2012, 16:40   #1
sun123
Junior Member
 
Join Date: Mar 2012
Posts: 3
NSdialog and Radio buttons. Close and cancel button not want

Hi All,

I am using radio buttons and nSdialog for creating my installer. However I do not want the default buttons (cancel and close) and instead I want back and next, while the page is displayed. How can I achieve that?

Function fnc_sample_Create

; === sample (type: Dialog) ===
nsDialogs::Create 1018
Pop $hCtl_sample
${If} $hCtl_sample == error
Abort
${EndIf}
!insertmacro MUI_HEADER_TEXT "Dialog title..." "Dialog subtitle..."

; === GroupBox1 (type: GroupBox) ===
${NSD_CreateGroupBox} 22u 19u 222u 91u "Installation Type"
Pop $hCtl_sample_GroupBox1
${NSD_OnClick} $hwnd EnDisableButton

; === RadioButton1 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 34u 129u 18u "Standalone"
Pop $hCtl_sample_RadioButton1

; === RadioButton2 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 55u 129u 18u "Network"
Pop $hCtl_sample_RadioButton2

; === RadioButton3 (type: RadioButton) ===
${NSD_CreateRadioButton} 35u 77u 129u 18u "Client"
Pop $hCtl_sample_RadioButton3

nsDialogs::Show

FunctionEnd
sun123 is offline   Reply With Quote
Old 5th March 2012, 17:53   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Close is only shown on the last page of the installer (usually after installation is complete). It makes absolutely no sense to put a Next button on the last page...
MSG is offline   Reply With Quote
Old 7th March 2012, 12:24   #3
sun123
Junior Member
 
Join Date: Mar 2012
Posts: 3
Got it .. Thank you!
sun123 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump