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?
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With