NSIs skin Plugin: VCL-styles-plugins

Source: Internet
Author: User
Introduction to VCL-styles-plugins



Nsisvclstyles plugin (DLL) is a skin plug-in used in NSIs installation programs. The plug-in size is about 1.6 Mb, and the actual application is compressed to about kb in the installation program.

Install the plug-in. The installation program has over 30 skin files and a set of NSIs application samples NSI. You only need to follow the setup of the installation program and click Next to install NSIs on your local machine.



The skin plug-in application calls the plug-in command loadvclstyle to load the skin in the. oninit function.
Function. oninit
Initpluginsdir
; Extract approval documents
File/oname = $ pluginsdir \ amakrits. VSF "... \ styles \ amakrits. VSF"
; Use the loadvclstyle plug-in command to load
Nsisvclstyles: loadvclstyle $ pluginsdir \ amakrits. VSF
Functionend


Run the loadvclstyle plug-in command in the UN. oninit section to uninstall the skin.
Functionun.onInit
  InitPluginsDir
  File /oname=$PLUGINSDIR\Amakrits.vsf"..\Styles\Amakrits.vsf"
  NSISVCLStyles::LoadVCLStyle$PLUGINSDIR\Amakrits.vsf
FunctionEnd


Disable non-customer skin effects. Use the removestylencarea command in the oninit section.

Function. oninit
Initpluginsdir
; Call skin files
File/oname = $ pluginsdir \ amakrits. VSF "... \ styles \ amakrits. VSF"
; Use the loadvclstyle function to load skin
Nsisvclstyles: loadvclstyle $ pluginsdir \ amakrits. VSF
; Disable non-customer zone skin effects
Nsisvclstyles: removestylencarea
Functionend



Disable the skin style of controls. You can use custom controls to set custom colors.


After loading the skin, you may not be satisfied with the control skin.


Using the removestylecontrol plug-in command, the plug-in allows you to disable the skin style of any control.
Nsdialogs: createcontrolstatic $ {ws_visible} | $ {ws_child} | $ {ws_clipsiblings} 0 120u10u-130u20u "Welcome to nsdialogs! "
Pop $ headline
; Remove skin effects from custom controls
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 callto 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
; Remove skin effects from custom controls
NSISVCLStyles::RemoveStyleControl$TEXT


Download the skin plug-in VCL-styles-plugins to join the NSIs fans group: 97208217

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.