SkinnedButton plug-in: Difference between revisions
(Created page.) |
m (Removed stray HTML angle bracket) |
||
(10 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<span style="display:block;border: 0.2em solid #FF0000;color:#fff;border-color:#FA6060 #B40808 #B40808 #FA6060;background-color:#FF0000;font-size:150%;padding:0.5em">This plug-in is incompatible with Windows 8, it is not recommended that you use versions <= 1.2! See [http://forums.winamp.com/showthread.php?t=390225 <span style="color:#fff;">this forum thread</span>] for more information.</span> | |||
== Download Link == | == Download Link == | ||
[[Image:Zip.gif]] [http://prdownloads.sourceforge.net/ultramodernui/SkinnedButton1.1.exe?download SkinnedButton1.1.exe] (105 KB) | <strike>[[Image:Zip.gif]] [http://prdownloads.sourceforge.net/ultramodernui/SkinnedButton1.1.exe?download SkinnedButton1.1.exe] (105 KB) - v1.1 by [[User:SuperPat|SuperPat]]</strike> | ||
or | |||
<strike><attach>SkinnedButton-v1.2.zip </attach> - v1.2 by [[User:Slappy|Slappy]]</strike> | |||
== Description == | == Description == | ||
This plug-in allows to skin an installer's buttons. | This plug-in allows to skin an installer's buttons. Since version 1.2 it supports change of buttons text color. | ||
I fixed some bugs in this plug-in and added possibility to change colour of texts. | |||
[[File:Example.png]] | |||
== How To Use == | == How To Use == | ||
Line 9: | Line 19: | ||
Skins the installer's buttons. | Skins the installer's buttons. | ||
''Note'': for version 1.2 you must copy 'skinnedbutton-vs2008.dll' to NSIS/plugins directory and rename it to 'skinnedbutton.dll' | |||
==== Syntax ==== | ==== Syntax ==== | ||
<highlight-nsis> | <highlight-nsis> | ||
SkinnedButton::skinit "BitmapImage" | SkinnedButton::skinit "BitmapImage" | ||
Pop "ResultVar" | |||
</highlight-nsis> | |||
Since version 1.2 You can provide additional parameter - color of buttons' text | |||
If you do not specify this parameter, color 0x000000 (Black) will be used. | |||
<highlight-nsis> | |||
SkinnedButton::skinit "BitmapImage" "0xFFFFFF" | |||
Pop "ResultVar" | Pop "ResultVar" | ||
</highlight-nsis> | </highlight-nsis> | ||
Line 26: | Line 45: | ||
==== Example ==== | ==== Example ==== | ||
<highlight-nsis> | <highlight-nsis> | ||
skinnedbutton::skinit /NOUNLOAD "$PLUGINSDIR\button.bmp" | skinnedbutton::skinit /NOUNLOAD "$PLUGINSDIR\button.bmp" ; You can add color like "0xFFFFFF" in version 1.2 | ||
Pop $0 | Pop $0 | ||
StrCmp $0 "success" noerror | StrCmp $0 "success" noerror | ||
Line 47: | Line 66: | ||
== Versions History == | == Versions History == | ||
;1.2 (17/02/2010) | |||
*Added color for buttons text (by Slappy) | |||
*Also project is converted to Visual Studio 2008 format | |||
;1.1 (15/08/2005) | ;1.1 (15/08/2005) | ||
*Littles bug fix | *Littles bug fix | ||
Line 54: | Line 76: | ||
== Credits == | == Credits == | ||
*Written by [[User:SuperPat|SuperPat]] | *Written by [[User:SuperPat|SuperPat]] | ||
**http:// | **http://ultramodernui.sourceforge.net/ | ||
*Based on the [[Wansis]] plug-in of [[User:Saivert|Saivert]] | *Based on the [[Wansis]] plug-in of [[User:Saivert|Saivert]] | ||
*Uses wa_dlg.h courtesy of Nullsoft, Inc. | *Uses wa_dlg.h courtesy of Nullsoft, Inc. | ||
*Version 1.2 by [[User:Slappy|Slappy]] | |||
[[Category:Plugins]] | [[Category:Plugins]] |
Latest revision as of 20:47, 30 March 2016
This plug-in is incompatible with Windows 8, it is not recommended that you use versions <= 1.2! See this forum thread for more information.
Download Link
SkinnedButton1.1.exe (105 KB) - v1.1 by SuperPat
or
SkinnedButton-v1.2.zip (23 KB) - v1.2 by Slappy
Description
This plug-in allows to skin an installer's buttons. Since version 1.2 it supports change of buttons text color.
I fixed some bugs in this plug-in and added possibility to change colour of texts.
How To Use
SkinnedButton::skininit DLL Function
Skins the installer's buttons.
Note: for version 1.2 you must copy 'skinnedbutton-vs2008.dll' to NSIS/plugins directory and rename it to 'skinnedbutton.dll'
Syntax
SkinnedButton::skinit "BitmapImage" Pop "ResultVar"
Since version 1.2 You can provide additional parameter - color of buttons' text If you do not specify this parameter, color 0x000000 (Black) will be used.
SkinnedButton::skinit "BitmapImage" "0xFFFFFF" Pop "ResultVar"
Parameters
- ResultVar
- Variable where the result of the operation (if it succeeded or not) is returned.
- BitmapImage
- A 47x30 image file containing two button images of 47x15 each, the first being the button image used when the button is not clicked by the user, and the second being the button image used when the button is clicked by the user.
Example
skinnedbutton::skinit /NOUNLOAD "$PLUGINSDIR\button.bmp" ; You can add color like "0xFFFFFF" in version 1.2 Pop $0 StrCmp $0 "success" noerror MessageBox MB_ICONEXCLAMATION|MB_OK "skinned button error: $0" noerror:
SkinnedButton::unskinit DLL Function
Releases the skinned buttons resources.
Syntax
SkinnedButton::unskinit
Problems
- During the installation, the button "Show Detail" is unskinned.
- When the plug-in is used, if you used this code line:
SendMessage $HWNDPARENT "0x408" "-1" ""
to automatically return to the previous page, the installer will crash.
Versions History
- 1.2 (17/02/2010)
- Added color for buttons text (by Slappy)
- Also project is converted to Visual Studio 2008 format
- 1.1 (15/08/2005)
- Littles bug fix
- 1.0 (19/07/2005)
- First version
Credits
- Version 1.2 by Slappy