Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the background gray color of radio button and checkbox in wix?

I have a radio button group and checkbox overlaying a white background bitmap. The radio buttons and checkbox appear with what look like the default background control color (gray). Is there a way to change the background color of these controls to be white in wix?

like image 483
zhoulin Wang Avatar asked Mar 28 '13 09:03

zhoulin Wang


1 Answers

Afraid not, this is a well known limitation of WiX. Basically both the checkbox and the radio buttons do not support transparency so will default to the grey background.

The workaround is to either change the background Bitmap to suit the grey background of those controls, or to Create the radio/checkbox buttons with no text, and then create transparent text labels right next to them where the text should be. The only downside is that the control can no longer be selected or deselected by clicking the text.

Here is a small example of the second suggestion applied to a checkbox control:

<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> 
like image 148
Adam Avatar answered Oct 08 '22 01:10

Adam