Hi.

My opinion or how I did:

I used type "PathEdit" instead of "Text" as is on your control
"FolderDirPath". So it looks like

<Control Id="FolderDirPath" Type="PathEdit" X="20" Y="105" Width="320"
Height="15" Property="WIXUI_FOLDER" Indirect="yes" />

I didn't subscribe any further events except "SetTargetPath" on Browse button

Thereby my "Browse" button control looks like:

<Control Id="ChangeMgmtFolder" Type="PushButton" X="20" Y="125"
Width="56" Height="17" Text="!(loc.InstallDirDlgChange)">
   <Publish Property="_BrowseProperty" Value="[WIXUI_MANAGED_FOLDER]"
Order="1">1</Publish>
   <Publish Event="SpawnDialog" Value="BrowseDlg" Order="2">1</Publish>
   <Publish Event="DoAction" Value="IsMyFolderEmpty"
Order="3">1</Publish>   <!-- Custom action in VBS to check if folder
is empty -->
   <Publish Event="SetTargetPath" Value="[WIXUI_MANAGED_FOLDER]"
Order="4">1</Publish>
   <Publish Event="DoAction" Value="WixUIValidatePath" Order="5">1</Publish>

   <!-- permit to leave this dialog only if
WIX_MANAGED_FOLDER_IS_EMPTY<>"1" setted in custom action
IsMyFolderEmpty

   <Publish Event="SpawnDialog" Value="AMInvalidDirDlg"
Order="6"><![CDATA[WIX_MANAGED_FOLDER_IS_EMPTY<>"1"]]></Publish>
</Control>

Hope this help.

Best regards

           Andreo



> I don't know, but look at CustomizeDlg.wxs in the sources for ideas since 
> that is the .wxs that incorporates BrowseDlg and it seems to employ the same 
> features you are trying to enable in your ChangeFolderDlg.
>
>
>
> -----Original Message-----
>
> From: Sagar1111 [mailto:sagarkavitak...@gmail.com]
>
> Sent: Tuesday, December 29, 2009 11:05 PM
>
> To: wix-users@lists.sourceforge.net
>
> Subject: Re: [WiX-users] BrowseDlg & SelectionPathOn help
>
>
>
>
>
> Anybody there to help me out?
>
> Please







Sagar1111 wrote:

>

> Hi

>

> I am using WixUI_Mondo as my UI. However i am skipping SetupTypeDlg which

> comes with standard WixMondo (This is because i have a single feature).

> Now i have added a my own dialog ChangeFolderDlg between

> LicenseAgreementDlg and VerifyReadyDlg.

> In this dialog i have

> 1) a control of type text to show the folder path Selected by user

> 2) a control of type pushButton to allow user to browse the directories

>

> Here is my code snippet:

> <Control Type="PushButton" Id="Browse" Width="50" Height="17" X="285"

> Y="120" Text="Browse">

>           <Publish Property="_BrowseProperty"

> Value="FOLDERDIR">1</Publish>

>           <Publish Event="SpawnDialog" Value ="BrowseDlg">1</Publish>

>         </Control>

>

> <Control Type="Text" Id="FolderDirPath" Width="245" Height="52" X="26"

> Y="120" >

>           <Text>&lt;The selection's path&gt;</Text>

>           <Subscribe Event="SelectionPath" Attribute="Text" />

>           <Subscribe Event="SelectionPathOn" Attribute="Visible" />

>         </Control>

>

> Problem:

> I am able to successfully open BrowseDlg.

> i am able to copy files to FOLDERDIR. But i am not able to update my

> control FolderDirPath with the updated text from BrowseDlg.

> Seems this is something to do with the "subscribe" part.

>

> Me being a newbie,i am not able to figure out the where the actually

> problem is. Please help me out !

> Thanks in advance.

>

>

>

>



--

View this message in context:

http://n2.nabble.com/BrowseDlg-SelectionPathOn-help-tp4207467p4231227.html

Sent from the wix-users mailing list archive at Nabble.com.



----------------------------------------------------------------------------

--

This SF.Net email is sponsored by the Verizon Developer Community

Take advantage of Verizon's best-in-class app development support

A streamlined, 14 day to market process makes app distribution fast and easy

Join now and get one step closer to millions of Verizon customers

http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users





------------------------------------------------------------------------------

This SF.Net email is sponsored by the Verizon Developer Community

Take advantage of Verizon's best-in-class app development support

A streamlined, 14 day to market process makes app distribution fast and easy

Join now and get one step closer to millions of Verizon customers

http://p.sf.net/sfu/verizon-dev2dev

_______________________________________________

WiX-users mailing list

WiX-users@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to