zho*_*ang 5 wix bitmap radio-button
我有一个单选按钮组和复选框覆盖白色背景位图.单选按钮和复选框显示为默认背景控件颜色(灰色).有没有办法在wix中将这些控件的背景颜色更改为白色?
不用担心,这是 WiX 众所周知的限制。基本上,复选框和单选按钮都不支持透明度,因此默认为灰色背景。
解决方法是更改背景位图以适应这些控件的灰色背景,或者创建不带文本的单选/复选框按钮,然后在其旁边应有文本的位置创建透明文本标签。唯一的缺点是无法再通过单击文本来选择或取消选择该控件。
以下是应用于复选框控件的第二个建议的小示例:
<Control Id="LaunchCheckBox" Type="CheckBox" X="134" Y="126" Width="10" Height="10" Property="LAUNCHAPPONEXIT" CheckBoxValue="1" Text=" " >
<Condition Action="show">NOT Installed</Condition>
</Control>
<Control Id="LaunchText" Type="Text" X="149" Y="126" Width="170" Height="17" Text="Launch $(var.ProductNameForDisplay)" Transparent="yes" >
<Condition Action="show">NOT Installed</Condition>
</Control>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1515 次 |
| 最近记录: |