Function.onInit
InitPluginsDir
;提取批复文件
File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
;使用 LoadVCLStyle插件命令加载
NSISVCLStyles::LoadVCLStyle
$PLUGINSDIR\Amakrits.vsf
FunctionEnd
Functionun.onInit
InitPluginsDir
File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
NSISVCLStyles::LoadVCLStyle$PLUGINSDIR\Amakrits.vsf
FunctionEnd
Function.onInit
InitPluginsDir
;调用皮肤文件
File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
;使用 LoadVCLStyle 函数加载皮肤
NSISVCLStyles::LoadVCLStyle
$PLUGINSDIR\Amakrits.vsf
;禁用非客户区皮肤特效
NSISVCLStyles::RemoveStyleNCArea
FunctionEnd
nsDialogs::CreateControlSTATIC${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}0
120u10u -130u20u"Welcome
to nsDialogs!"
Pop $HEADLINE
;移除自定义控件的皮肤特效
NSISVCLStyles::RemoveStyleControl
$HEADLINE
nsDialogs::CreateControl STATIC${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS}0
120u32u -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
NSIS皮肤插件:vcl-styles-plugins,布布扣,bubuko.com
原文地址:http://blog.csdn.net/shuijing_0/article/details/37737073