Installation Inno设置:设置曲轴箱的可见性
我有一个关于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
过程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)无法调用procYourNameOfYourCheckbox:TNewCheckBox
应该是一个全局变量
。复选框是否在过程初始化向导()中创建代码>?因为如果在您想要隐藏或显示该复选框之前未创建该复选框,则会出现错误。必须在“组件”页面之前创建该复选框,并且必须将“组件”页面设置为该复选框的所有者。最简单的方法是在InitialiazeWizard
过程中创建元素,然后在CurPageChanged
中管理它。但@TLama可能会为您提供更具体、更好的解决方案/意见。