最新消息:

skinnedControls是NSIS按钮和滚动条自定义图片的插件

nsis 永恒心锁 1621浏览 0评论
/*
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 "NSIS衿华客"
SectionEnd
永恒心锁,版权所有丨如未注明,均为转载丨本网站采用BY-NC-SA协议进行授权

转载请注明:永恒心锁-分享互联网 » skinnedControls是NSIS按钮和滚动条自定义图片的插件

您必须 登录 才能发表评论!