0

我有一个关于 inno setup 的问题。我想将我的 TCheckbox 的可见性更改 procedure 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
        ...

据我所见,我无法在此处将其切换为不可见。是否有人对我如何在运行时更改可见性有不同的看法。

和往常一样提前谢谢。

4

0 回答 0