Old 31st March 2007, 15:29   #1
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
how to disable/set-text buttons in MUI_PAGE_INSTFILES?

i have tried now several solutions and none worked.
Quote:
;disable buttons
## Change Next button text
GetDlgItem $1 $HWNDPARENT 1
SendMessage $1 ${WM_SETTEXT} 0 "STR:----"
## Change Cancel button text
GetDlgItem $1 $HWNDPARENT 2
SendMessage $1 ${WM_SETTEXT} 0 "STR:Beenden"
## Change Back button text
GetDlgItem $1 $HWNDPARENT 3
SendMessage $1 ${WM_SETTEXT} 0 "STR:----"
ShowWindow $1 ${SW_HIDE}
this in a PRE function only works while the dialog is at work.
when all is done (incl my detailprints) all buttons shows like normal - woot

i want the cancel button as "Finish" and back/next disabled.

pls help.

PS even the header text isnt visible - only while in work.

here a shot how it is shown (fast capture) at work.
(the small pic inside ist after processing - not wanted)


Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 31st March 2007, 15:49   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Every instfiles page is followed by a "completed" page which has a different set of buttons. You can set those button texts (Next, Back, etc.) to variables and copy the correct text those variables before the "completed" page is reached. The last section should do.

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 31st March 2007, 16:02   #3
Brummelchen
Major Dude
 
Join Date: May 2003
Posts: 681
hmm, not sure what you are talking about.
i found some hints about NextBtn InstallBtn aso
the most trouble is to disable back/next and to enable cancel.
this section with detailprint has the option to copy text but it does not need any other interaction - just finish.

[invisible][invisible][Finish]
instead
[greyed][Finish][greyed]

Greets, Brummelchen
Brummelchen is offline   Reply With Quote
Old 3rd January 2008, 08:10   #4
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
How can I get the LangString containing the `&Next >` string? I see # ^NextBtn in .nlf file but I don't know how to get the string. Thanks.
pospec is offline   Reply With Quote
Old 3rd January 2008, 08:13   #5
pospec
Senior Member
 
pospec's Avatar
 
Join Date: Jun 2007
Location: Otrokovice, Czech Republic
Posts: 308
That's in $(^NextBtn), how simple dear Watson
pospec 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