Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Installation Inno设置:设置曲轴箱的可见性_Installation_Visibility_Inno Setup - Fatal编程技术网

Installation Inno设置:设置曲轴箱的可见性

Installation Inno设置:设置曲轴箱的可见性,installation,visibility,inno-setup,Installation,Visibility,Inno Setup,我有一个关于inno设置的问题。 我想更改我的对话框中复选框的可见性 过程CurPageChanged(const CurPageID:integer)设置为false,这样当页面显示时,我就看不到复选框了。 我的代码如下所示 if CurPageID=wpSelectComponents then begin GetDirectoryFromComponentsTxt(); if Update_FP = true then begin if CheckUp

我有一个关于inno设置的问题。 我想更改我的对话框中复选框的可见性
过程CurPageChanged(const CurPageID:integer)
设置为false,这样当页面显示时,我就看不到复选框了。 我的代码如下所示

if CurPageID=wpSelectComponents then begin
    GetDirectoryFromComponentsTxt();
    if Update_FP = true then
    begin 
      if CheckUpdateVersion() then 
      begin
//Here should be the change to invisible
      end
      else begin
        if Flag_IsSilentInstallation = false then begin
           if MsgBox(GetLanguageString('VersionIncompatible', 40053), mbError, MB_YESNO)= IDYES then
           begin 
             //aaaaand here should be also a change to invisible
           end

           else begin 
              Quit();
           end
        end
        ...
就我所知,我无法在这里将其切换为“不可见”。 是否有人对我如何在运行时更改可见性有不同的看法


如往常一样,提前感谢。

NameOfYourCheckbox.Visible:=true
NameOfYourCheckbox.Visible:=false
?这会导致运行时错误(在267:191)无法调用procYour
NameOfYourCheckbox:TNewCheckBox
应该是一个
全局变量
。复选框是否在
过程初始化向导()中创建?因为如果在您想要隐藏或显示该复选框之前未创建该复选框,则会出现错误。必须在“组件”页面之前创建该复选框,并且必须将“组件”页面设置为该复选框的所有者。最简单的方法是在
InitialiazeWizard
过程中创建元素,然后在
CurPageChanged
中管理它。但@TLama可能会为您提供更具体、更好的解决方案/意见。