Archive: Modern UI Updates


Modern UI Updates
New Modern UI Text System

I have finished the new Modern UI text system. All texts can now be set for every individual page.

This means that you should not define strings before the MUI_LANGUAGE macros anymore, but use the new text settings. You can find 'em all in the Modern UI Readme.

For multilingual installers, use language strings.

All interface settings have to be set before inserting the page macros


Not sure what u mean...

i have

!define MUI_TEXT_ABORTWARNING "Sind Sie sicher, dass Sie ${PRODUCT} abbrechen wollen?"
!insertmacro MUI_LANGUAGE "German"

if i comment out first !define - my script is compiled - but abort-text is wrong.

how can i use now my own text there?


As you can find in the Readme, you should define MUI_ABORTWARNING_TEXT. For multilingual installers, define a language string.


hmm

i found this:

!macro MUI_ABORTWARNING

!ifdef MUI_ABORTWARNING_TEXT
MessageBox MB_YESNO|MB_ICONEXCLAMATION "${MUI_ABORTWARNING_TEXT}" IDYES mui.quit
!else
MessageBox MB_YESNO|MB_ICONEXCLAMATION "$(MUI_TEXT_ABORTWARNING)" IDYES mui.quit
!endif

Abort
mui.quit:

!macroend


in system.nsh (MUI)

but this doesn' work here (latest cvs 27/9/13:44)

I always get "MUI_TEXT_ABORTWARNING" (not the var - the text in it)
language is german.

Code:
!define MUI_ABORTWARNING_TEXTG "Sind Sie sicher, dass Sie ${PRODUCT} abbrechen wollen?"
!insertmacro MUI_LANGUAGE "German"

###

OMG - i found it :rolleyes:

--> MUI_ABORTWARNING_TEXTG

strip that "G" and all is fine.

i am sitting now for hours on this code and diddn't get it. :igor:

THX

Seems there is an issue in latest 2 dev snapshots:

!insertmacro: MUI_LANGUAGE
File: "c:\program files\nsis2\Contrib\Icons\modern-header.bmp" -> no files found.
Usage: File [/nonfatal] [/a] ([/r] filespec [...]|/oname=outfile one_file_only)
Error in macro MUI_HEADERBITMAP_INIT on macroline 4
Error in macro MUI_GUIINIT on macroline 3
Error in macro MUI_FUNCTION_GUIINIT on macroline 4
Error in macro MUI_INSERT on macroline 12
Error in macro MUI_LANGUAGEFILE_BEGIN on macroline 4
!include: error in script: "c:\program files\nsis2\Contrib\Modern UI\Language files\English.nsh" on
line 9
Error in macro MUI_LANGUAGE on macroline 5

I think only the english.nsh is the problem?

Cheers,
Andi


AndiG, see the next sticky:

http://forums.winamp.com/showthread....hreadid=150193


My mistake, sorry, fixed. It just seemed that the two errors where not related..

Cheers,
ANdreas


ioSpecial.ini change
Why was the 3 line title on the Welcome page removed in the October 12th version of ioSpecial.ini?

[edit]Never mind, I saw the other thread on this subject.[/edit]


The Welcome page has never supported 3 lines. It might have worked before with the standard DPI setting, but not with other settings.

If you want to add an extra line, use a customized INI file.


The Welcome page has never supported 3 lines.
See the comment in version 1.5 of ioSpecial.ini which you checked into CVS on March 10, 2003. (reproduced below from WinCVS)


Revision : 1.5
Date : 2003/3/10 19:20:22
Author : 'joostverburg'
State : 'Exp'
Lines : +2 -2
Description :
3 lines title on Welcome page


No biggie, I created a custom ini file and all is ok.

I increased the space a bit in this 1.5 revision, but I think 3 lines never worked with custom DPI settings, or it must have been with an old font.

I'll add an option for 3 lines.


3 line setting has been added to 1.67

See http://forums.winamp.com/showthread....hreadid=153617