2017-07-02 3 views
0

J'essaie de donner le choix à l'utilisateur de choisir un mode d'authentification avec lequel il/elle veut se connecter à la base de données. Deux choix que je fournis sont: l'authentification de Windows et l'authentification de serveur de sql.Wix Installer - Impossible d'afficher le bouton radio dans la boîte de dialogue

Pour une raison quelconque, je ne suis pas en mesure de voir le bouton radio sur la boîte de dialogue.

Image showing no radio button

le code de dialogue est affichée ci-dessous:

<Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/> 


    <Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup"> 
    <Control Type="Text" Width="275" Height="10" X="25" Y="98" Id="TestRadioButton" Text="Radio button should appear below:" /> 
    <Control Id="AuthenticationType" Property="CHOICE_WIN_SQL" Type="RadioButtonGroup" X="25" Y="98" Width="300" Height="50"> 
     <RadioButtonGroup Property="CHOICE_WIN_SQL"> 
     <RadioButton X="25" Y="110" Value="0" Height="10" Width="275" Text="Windows Authentication"/> 
     <RadioButton X="25" Y="123" Value="1" Height="10" Width="275" Text="Sql Authentication"/> 
     </RadioButtonGroup>   
    </Control>  
    </Dialog> 

Répondre

0

changer les valeurs X et Y de la RadionButton aux numéros suivants:

RadioButton X = "" Y = ""

RadioButton X = " "Y =" "

Ils devraient ressembler à ceci:

<RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/> 
<RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/> 

Maintenant, les boutons radio apparaît, mais le bouton radio 'authentification Windows' se chevauchent avec votre étiquette. Ainsi, par exemple, changer le Y valeur à :

<Control Type="Text" Width="275" Height="10" X="25" Y="50" Id="TestRadioButton" 
Text="Radio button should appear below:" /> 

Votre code final devrait ressembler à ceci:

<Property Id="CHOICE_WIN_SQL" Value="1" Secure="yes"/> 
<Dialog Id="WinSqlChoiceDlg" Width="370" Height="270" Title="[ProductName] Setup"> 
<Control Type="Text" Width="275" Height="10" X="25" Y="50" Id="TestRadioButton" Text="Radio button should appear below:" /> 
<Control Id="AuthenticationType" Property="CHOICE_WIN_SQL" Type="RadioButtonGroup" X="25" Y="98" Width="300" Height="50"> 
    <RadioButtonGroup Property="CHOICE_WIN_SQL"> 
    <RadioButton X="0" Y="0" Value="0" Height="10" Width="275" Text="Windows Authentication"/> 
    <RadioButton X="0" Y="20" Value="1" Height="10" Width="275" Text="Sql Authentication"/> 
    </RadioButtonGroup>   
</Control>  

Cela devrait faire l'affaire.