December 2012
Intermediate to advanced
488 pages
10h 23m
English
Up to this point, closing one dialog opened another in its place. You can also create "modal" windows that pop up on top of the current window. Instead of publishing the NewDialog event inside a button, such as with our Next button, we can publish the SpawnDialog event.
Modal windows are usually a little bit smaller in size than normal windows so that the parent window can be seen in the background. Suppose we had a dialog called PopupDlg, such as in the following snippet:
<?xml version=»1.0» encoding=»UTF-8»?> <Wix xmlns=»http://schemas.microsoft.com/wix/2006/wi»> <Fragment> <UI> <Dialog Id="PopupDlg" Width="300" Height="200" Title="Amazing Software"> <Control Id="OkButton" Type="PushButton" Text="OK" Height="17" Width="56" X="200" ...
Read now
Unlock full access