vcl-styles-plugins简介





 
NSISVCLStyles
 plugin (dll)是一款应用于nsis安装程序的皮肤插件,插件大小约为1.6MB,实际应用在安装程序中压缩后约为550kb。

安装插件

插件安装程序内置30+各式皮肤文件以及一组nsis应用样本nsi,你只需遵循安装程序的设置点击下一步安装即可,前提是你本机安装有nsis。




皮肤插件应用


.onInit
函数中调用插件命令LoadVCLStyle 加载皮肤。

Function.onInit
  InitPluginsDir
  ;提取皮肤文件
  File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
  ;使用 LoadVCLStyle插件命令加载
  NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\Amakrits.vsf
FunctionEnd


卸载皮肤插件

在un.onInit区段使用LoadVCLStyle插件命令卸载皮肤。

Functionun.onInit
  InitPluginsDir
  File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
  NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\Amakrits.vsf
FunctionEnd



禁用非客户区皮肤特效

.onInit区段使用RemoveStyleNCArea命令


Function.onInit
  InitPluginsDir
  ;调用皮肤文件
  File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
  ;使用 LoadVCLStyle 函数加载皮肤
  NSISVCLStyles::LoadVCLStyle $PLUGINSDIR\Amakrits.vsf
  ;禁用非客户区皮肤特效
  NSISVCLStyles::RemoveStyleNCArea
FunctionEnd



禁用控件的皮肤风格

你使用自定义的控件设置自定义颜色




加载皮肤后你可能对控件皮肤感觉不满意




使用RemoveStyleControl插件命令,插件允许你禁用任何一个控件的皮肤风格

nsDialogs::CreateControl STATIC${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}0 120u 10u -130u 20u "Welcome to nsDialogs!"
Pop $HEADLINE
        ;移除自定义控件的皮肤特效
NSISVCLStyles::RemoveStyleControl $HEADLINE

nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}0 120u 32u -130u -32u"nsDialogs is the next generation of user interfaces in NSIS. It gives the developer full control over custom pages. Some of the features include control text containing variables, callbacks directly into script functions and creation of any type of control. Create boring old edit boxes or load some external library and create custom controls with no need of creating your own plug-in.$\r$\n$\r$\nUnlike InstallOptions, nsDialogs doesn't use INI files to communicate with the script. By interacting directly with the script, nsDialogs can perform much faster without the need of costly, old and inefficient INI operations. Direct interaction also allows direct calls to functions defined in the script and removes the need of conversion functions like Io2Nsis.$\r$\n$\r$\nHit the Next button to see how it all fits into a mock directory page."
Pop $TEXT
        ;移除自定义控件的皮肤特效
NSISVCLStyles::RemoveStyleControl $TEXT



下载皮肤插件vcl-styles-plugins加入NSIS爱好者群:97208217

最新文章

  1. Linux 时间时区同步
  2. 七天学会ASP.NET MVC (六)——线程问题、异常处理、自定义URL
  3. java 生产者消费者问题 并发问题的解决
  4. My97日期控件 选择日期区间
  5. oracle数据学习第二天
  6. 修复 Java 内存模型,第 2 部分——Brian Goetz
  7. 使用git命令提交远程github仓库的时候提示"rejected"(拒绝)解决办法
  8. 如何创建ajax对象?
  9. OpenSSL使用指南
  10. Java-Android 之输入提示框
  11. OAuth2 for asp.net web api
  12. mysql支持emoji解决办法
  13. 如何把PDF文件拆分为多个文件
  14. 004_zookeeper运维之maxClientCnxns overflow
  15. 初试 Kubernetes 集群中使用 Traefik 反向代理
  16. 使用Nginx+Lua实现自定义WAF
  17. Mysql 数据库 创建与删除(基础2)
  18. mysql 8.0 java连接报错:Unknown system variable 'query_cache_size'
  19. RESTful api架构设计
  20. ASP.Net ListBox DropdownList 不同条目设置背景色和字体颜色( 转· 载 )

热门文章

  1. 图文并茂演示小程序movable-view的可移动范围
  2. WSL2安装Ubuntu20.04
  3. JAVA基础-11-Java Number 类--九五小庞
  4. odoo14 入门解刨关联字段
  5. 5.27 NOI 模拟
  6. 软件装在D盘,实测有效
  7. java中使用 POI导出excel表格的简单实现
  8. Java中字节流的总结及代码练习
  9. 彻底搞懂C#异步编程 async和await的原理
  10. Docker问题:"docker build" requires exactly 1 argument.