SkinnedButton plug-in: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
(Created page.)
 
Line 54: Line 54:
== Credits ==
== Credits ==
*Written by [[User:SuperPat|SuperPat]]
*Written by [[User:SuperPat|SuperPat]]
**http://www.ultramodernui.com4.ws
**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.


[[Category:Plugins]]
[[Category:Plugins]]

Revision as of 12:37, 11 December 2005

Download Link

Zip.gif SkinnedButton1.1.exe (105 KB)

Description

This plug-in allows to skin an installer's buttons.

How To Use

SkinnedButton::skininit DLL Function

Skins the installer's buttons.

Syntax

SkinnedButton::skinit "BitmapImage"
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"
  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.1 (15/08/2005)
  • Littles bug fix
1.0 (19/07/2005)
  • First version

Credits