![]() |
#1 |
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? |
![]() |
![]() |
![]() |
#2 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
MiscButtonText or sendmesage $ctrl ${WM_SETTEXT} 0 "STR:E&xit"
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
#3 |
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. |
![]() |
![]() |
![]() |
|
Tags |
caption, getdlgitem |
Thread Tools | Search this Thread |
Display Modes | |
|
|