zoukankan      html  css  js  c++  java
  • OneSection修改

    !include "MUI.nsh"
    !include "Sections.nsh"
    Name "One-Section"
    OutFile "one-section.exe"
    RequestExecutionLevel user
    !define MUI_ComponentsPage_NoDesc
    !insertmacro MUI_Page_Components
    !insertmacro MUI_Language "SimpChinese"

    Section !Required
    SectionIn RO
    SectionEnd
    Section "Option 1" g1o1
    SectionEnd
    Section /o "Option 2" g1o2
    SectionEnd
    Section /o "Option 3" g1o3
    SectionEnd

    SectionGroup /e Group Group
    Section "Option 4" g2o1
    SectionEnd
    Section /o "Option 5" g2o2
    SectionEnd
    Section /o "Option 6" g2o3
    SectionEnd
    SectionGroupEnd

    Function .onInit
      SectionGetFlags ${Group} $R0
      IntOp $R0 $R0 + 15
      SectionSetFlags ${Group} $R0
      StrCpy $1 ${g1o1}
      StrCpy $2 ${g2o1}
      SectionSetFlags ${g2o1} ${SF_SELECTED}
    FunctionEnd

    Function .onSelChange
      !insertmacro StartRadioButtons $1
        !insertmacro RadioButton ${g1o1}
        !insertmacro RadioButton ${g1o2}
        !insertmacro RadioButton ${g1o3}
      !insertmacro EndRadioButtons
      !insertmacro StartRadioButtons $2
        !insertmacro RadioButton ${g2o1}
        !insertmacro RadioButton ${g2o2}
        !insertmacro RadioButton ${g2o3}
      !insertmacro EndRadioButtons
    FunctionEnd

  • 相关阅读:
    上传文件
    Python中@staticmethod和@classmethod的作用和区别
    面向对象 类
    成员修饰符
    class 类 笔记
    模块&包
    java 文件上传下载
    redis 基本操作命令
    redis 和 mysql 的主从复制
    mysql的日志文件及其作用
  • 原文地址:https://www.cnblogs.com/zdxster/p/2013171.html
Copyright © 2011-2022 走看看