NSIS/Contrib/Banner
2005-04-30 18:04:55 +00:00
..
Banner.c applied patch #1164307 - Fixes to allow building Contrib/ on debian (minus Makefiles) 2005-03-17 21:26:59 +00:00
Banner.dsp Call the same DllMain for debug and release builds 2003-11-12 20:24:53 +00:00
Banner.dsw Banner - shows some text before installation starts 2002-11-24 18:50:31 +00:00
Example.nsi 1*2000 is not 1000 2004-09-03 13:14:26 +00:00
Readme.txt three functions, not two 2004-09-03 13:13:36 +00:00
SConscript install and distribute examples, contribs and documentation 2005-04-30 18:04:55 +00:00

BANNER PLUG-IN
--------------

The Banner plug-in shows a banner with customizable text. It uses the IDD_VERIFY dialog of the UI.

There are three functions - show, getWindow and destroy.

Usage
-----

Banner::show /NOUNLOAD "Text to show"

[optional] Banner::getWindow /NOUNLOAD

Banner::destroy

See Example.nsi for an example.

Modern UI
---------

The Modern UI has two labels on the IDD_VERIFY dialog. To change all the texts, use:

Banner::show /NOUNLOAD /set 76 "Text 1 (replaces Please wait while Setup is loading...)" "Normal text"

Custom UI
---------

If you have more labels on your IDD_VERIFY dialog, you can use multiple /set parameters to change the texts.

Example:

Banner::show /NOUNLOAD /set 76 "bah #1" /set 54 "bah #2" "Normal text"

The second parameter for /set is the ID of the control.

Some More Tricks
----------------

If you use /set to set the main string (IDC_STR, 1030) you can specify a different string for the window's caption and for the main string.

If you use an empty string as the main string (Banner::show /NOUNLOAD "") the banner window will not show on the taskbar.

Credits
-------

A joint effort of brainsucker and kichik in honor of the messages dropped during the battle