I have a pretty simple dialog with two text boxes right now.  I would like to 
add a text box, with a button next to it, that if pressed launches a standard 
wix browse dialog, and then populates my new textbox with the folder path 
selected from the browse dialog. I've attempted this a few times but can't seem 
to get it right.  Help?  Thanks!

  <Fragment>
    <UI>
      <Dialog Id="ADlg" Width="370" Height="270" Title="[ProductName]" 
NoMinimize="yes">
        <Control Id="txtServer" Type="Text" X="45" Y="60" Width="100" 
Height="17" TabSkip="no" Text="&amp;Server:" />
        <Control Id="edtServer" Type="Edit" X="45" Y="80" Width="220" 
Height="17" Property="SERVER" Text="[SERVER]" />
        <Control Id="txtInstance" Type="Text" X="45" Y="100" Width="100" 
Height="17" TabSkip="no" Text="&amp;Instance:" />
        <Control Id="edtInstance" Type="Edit" X="45" Y="120" Width="220" 
Height="17" Property="INSTANCE" Text="[INSTANCE]" />
        <Control Id="Back" Type="PushButton" X="180" Y="243" Width="56" 
Height="17" Text="&amp;Back">
          <Publish Event="NewDialog" Value="WelcomeDlg">1</Publish>
        </Control>
        <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" 
Height="17" Default="yes" Text="&amp;Next">
          <!--<Publish Event="SetTargetPath" 
Value="[_BrowseProperty]">1</Publish>-->
          <Publish Event="NewDialog" Value="VerifyReadyDlg">1</Publish>
        </Control>
        <Control Id="Cancel" Type="PushButton" X="304" Y="243" Width="56" 
Height="17" Cancel="yes" Text="Cancel">
          <Publish Event="SpawnDialog" Value="CancelDlg">1</Publish>
        </Control>
        <Control Id="BannerBitmap" Type="Bitmap" X="0" Y="0" Width="370" 
Height="44" TabSkip="no" Text="WixUI_Bmp_Banner" />
        <Control Id="Description" Type="Text" X="25" Y="23" Width="280" 
Height="15" Transparent="yes" NoPrefix="yes">
        </Control>
        <Control Id="BottomLine" Type="Line" X="0" Y="234" Width="370" 
Height="0" />
        <Control Id="BannerLine" Type="Line" X="0" Y="44" Width="370" 
Height="0" />
      </Dialog>
    </UI>
  </Fragment>

________________________________
The information contained in this message may be confidential and legally 
protected under applicable law. The message is intended solely for the 
addressee(s). If you are not the intended recipient, you are hereby notified 
that any use, forwarding, dissemination, or reproduction of this message is 
strictly prohibited and may be unlawful. If you are not the intended recipient, 
please contact the sender by return e-mail and destroy all copies of the 
original message.
------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to