From: Rob H. <ro...@sn...> - 2007-11-20 09:13:15
|
Here's a sample out of my UI that might help. It makes sure you have checked at least one of two checkbozes on the page. If at least one is checked it advances to the next dialog; otherwise it opens a model dialog with an explanation of what you have to do. <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56" Height="17" Default="yes" Text="[ButtonText_Next]"> <Publish Event="SpawnDialog" Value="NoTargetChosenDlg"><![CDATA[USE_HW <> 1 AND USE_EMU <> 1]]></Publish> <Publish Event="NewDialog" Value="GetPSPHWPathDlg"><![CDATA[USE_HW = 1]]></Publish> <Publish Event="NewDialog" Value="GetPSPEmuPathDlg"><![CDATA[USE_EMU = 1 AND USE_HW <> 1]]></Publish> </Control> Rob Sunghwa Jin wrote: > Hi all, > > > > I have some UI dialogs that needs certain validation before displaying > next page when Next button is clicked. How do you display a very simple > message box with simple OK button and message text only when certain > condition is met? For example, one of text box is empty etc.. > > > > I initially tried disabling/enabling Next button by checking property > value, but it didn’t work well for text box as the property is not > changed until focus is out and allowing user to press Next even if the > property is empty. So I am trying to find a way to display message box > when Next is clicked if required field is missing or any other > validation error occurs. > > > > I think it should be done through <Publish>, but I am not sure whether I > should create modal dialog box myself for them or I am missing something > pretty basic here. > > > > Should I create new dialog for each different error messages and spawn > that dialog? > > Or should I create a custom action for this and call the custom action > using <Publish Event=”DoAction” …>? > > Or do I really missing something essential here? > > > > Thanks, > > Sunghwa > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > > > ------------------------------------------------------------------------ > > _______________________________________________ > WiX-users mailing list > WiX...@li... > https://lists.sourceforge.net/lists/listinfo/wix-users |