微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

当我在MSI对话框中的单选按钮之间切换时如何重设编辑字段

如何解决当我在MSI对话框中的单选按钮之间切换时如何重设编辑字段

我对wix工具集和Windows安装程序非常陌生,并且如下所示为我的MSI设计了自定义对话框。

enter image description here

我有两个单选按钮A和B,两个单选按钮都与相同的编辑字段相关联,如果我选择第一个单选按钮并在用户名和密码字段中输入一些数据,然后决定切换到第二个单选按钮,我想用户名和密码字段可以重置为空白吗?

code:


<Control Id="PathLabel_UName" Type="Text" X="15" Y="115" Width="80" Height="20" Text="!(loc.***)" />
                <Control Id="PathLabel_UName" Type="Text" X="15" Y="165" Width="80" Height="20" Text="***" />

                
                <Control Id="PathLabel_PWord" Type="Text" X="15" Y="140" Width="80" Height="20" Text="!(loc.***)" >
                    
                </Control>
                <Control Id="PathEdit_PWord" Type="Edit" X="65" Y="140" Width="110" Height="20" Password="yes" Property="****" >
                
                
                    
                </Control>
                <Control Id="PathLabel_Uname" Type="Edit" X="65" Y="165" Width="110" Height="20" Property="*****" >
                
                 
                </Control>
                

                
               <Control Id="InstallTypeRadio" Property="A1" Type="RadioButtonGroup" X="5" Y="45" Height="60" Width="290" />
                <Control Id="Icon" Type="Icon" X="15" Y="210" Width="10" Height="12" Text="InfoIcon" IconSize="16" FixedSize="yes" disabled="yes">
            
                </Control>
                
                <RadioButtonGroup Property="SA">
                <RadioButton Value="1" X="5" Y="35" Height="12" Width="90" Text="!(loc.***)" />
                <RadioButton Value="2" X="100" Y="35" Height="12" Width="90" Text="!(loc.***)" />
           </RadioButtonGroup> 
            

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。