abcdgoldfish
24th April 2009 22:29 UTC
Too much info on Welcome page
During development, we add revision information into the name of the product which causes the Welcome statement to span three lines instead of the usual two. Using the MUI_PAGE_WELCOME macro displays:
Welcome to the Blah de dah de dah
1.0 myProduct Rev 1.2.34567 setup
Wizard
This is followed by the boilerplate starting with "This wizard will guide..."
Because the initial Welcome string cover three lines, the word Wizard is clipped from below by the bounding box of the "This wizard..." text.
I've scoured the web and looked through the MUI_PAGE_WELCOME code to see if there is a way to shift the second block of text down a bit to reveal the obscured text. But no luck. Is there a way to do this?
Thanks
Animaether
24th April 2009 22:54 UTC
Have you tried defning 'MUI_WELCOMEPAGE_TITLE_3LINES'? From the docs: "Extra space for the title area."
=====
If that doesn't work,
You could either reshack the appropriate dialog, or use SetWindowPos to change position/size;
http://msdn.microsoft.com/en-us/library/ms633545(VS.85).aspx
http://nsis.sourceforge.net/Get_inst...rner_of_screen
=====
However, if your welcome line causes things to wrap around, you might consider shortening it, and present the detailed information about the version elsewhere (we stick it in the branding text, for example - plenty of horizontal space there and it remains visible throughout the installation process).
abcdgoldfish
24th April 2009 23:07 UTC
MUI_WELCOMEPAGE_TITLE_3LINES did the trick. Thanks for the quick response and great info.
You said 'From the docs'. I looked in the NSIS Users Manual and in the Modern UI 2 docs for this word but found no hit. Once I knew the macro existed I could google it but otherwise I was searching blind. I'd appreciate pointers to other references.
Animaether
24th April 2009 23:20 UTC
Open the MUI 2 docs, and near the top, click "expand all" (not sure about the exact wording). Then try searching the page again.
Searching (Ctrl+F3) won't find the text if it's in one of the collapsed sections.