/*
skinnedControls是NSIS按钮和滚动条自定义图片的插件
skinnedControls的操作类似于skinnedButton,具体详细的资料可以参考UltraModernUI里的实例.
*/
!AddPluginDir "plugins"
OutFile "skinnedControls.exe"
page license
LicenseData "skinnedcontrols.nsi"
Page instfiles
Function .onInit
InitPluginsDir
File "/oname=$PLUGINSDIRbutton.bmp" "skinsdefaultbtn.bmp"
File "/oname=$PLUGINSDIRscrollbar.bmp" "skinsxpsb.bmp"
FunctionEnd
Function .onGUIInit
; start the plugin
; the /disabledtextcolor, /selectedtextcolor and /textcolor parameters are optionnal
SkinnedControls::skinit /NOUNLOAD
/disabledtextcolor=808080
/selectedtextcolor=000080
/textcolor=000000
"/scrollbar=$PLUGINSDIRscrollbar.bmp"
"/button=$PLUGINSDIRbutton.bmp"
Pop $0
StrCmp $0 "success" noerror
MessageBox MB_ICONEXCLAMATION|MB_OK "skinned button error: $0"
noerror:
FunctionEnd
Section "永恒心锁"
SectionEnd
THE END
暂无评论内容