Old 5th May 2020, 15:33   #1
BGIdev
Junior Member
 
Join Date: Apr 2020
Posts: 8
Update caption of dialog button

Using custom pages (3 total), have GetDlgItem command to get handle of Next command button.

The handle is used to set the Enable/Disable state of button, to allow proceeding to next page when appropriate, with the EnableWindow command.

On first two pages, the caption shows as 'Next', on last page it is shown as 'Close'.

Is there a way to specify to show 'Exit' as the caption on the last page?
BGIdev is offline   Reply With Quote
Old 5th May 2020, 15:36   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
MiscButtonText or sendmesage $ctrl ${WM_SETTEXT} 0 "STR:E&xit"

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 5th May 2020, 19:29   #3
BGIdev
Junior Member
 
Join Date: Apr 2020
Posts: 8
Thanks....

I got it to work with SendMessage, via trial/error.....

Will take a look at MiscButtonText in the future.
BGIdev is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Tags
caption, getdlgitem

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