Old 23rd July 2003, 16:22   #1
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Cancel button text

I'm using "Close" instead of "Cancel" for my Cancel button text.
I was wondering if I could use GetDlgItem and SendMessage to change the text to "Cancel" for my InstFiles Page (I'm using NSISdl on it)

I looked for the button define in resource.h but it doesn't mention cancel.

Thanks

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd July 2003, 16:32   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
IDCANCEL is its id. It's a standard Windows id. The number you're looking for is 2. You can find the numbers using Resource Hacker.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd July 2003, 17:45   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Works thanks.
Might as well put it on the archive (even though it's small)

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd July 2003, 18:10   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I'm trying to do the other buttons now (Next, Install, Finish, Browse... etc) but it isn't working.
Is it because NSIS changes the text after I do?

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd July 2003, 18:13   #5
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I also have another question.
My installer gets "Please wait while Setup is loading..." on start up.
Is there any way to change this?

GetDlgItem $R0 $HWNDPARENT 76
SendMessage $R0 ${WM_SETTEXT} 0 "STR:My loading text"

I doubt this will work (called .onInit)?

-Stu
Afrow UK is offline   Reply With Quote
Old 23rd July 2003, 18:15   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Nope, even the pre function which you're not supposed to use is called after the buttons are set. If you want to make sure nothing else changes it use a message box after you set the text to block everything else.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd July 2003, 18:18   #7
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
That text is a MUI text, you can change by loading anohter UI which has different text in dialog number 111.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 23rd July 2003, 18:32   #8
pengyou
Major Dude
 
Join Date: Mar 2003
Posts: 571
From the MUI ReadMe:

"The 'Please wait while Setup is loading...' text on the splash screen which is being displayed when the installer is starting (Verifying installer, Unpacking data) cannot be changed by the script, because the installer is not started yet when this dialog is being displayed. If you want to change this text, modify dialog 111 of modern.exe.
The 'Verifying installer' and 'Unpacking data' texts are defined in the language header file of the NSIS exehead (Source\exehead\lang.h). To change them, you need to edit this file and recompile NSIS."
pengyou is offline   Reply With Quote
Old 23rd July 2003, 19:12   #9
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
I'll use resource hacker

-Stu
Afrow UK 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