Thanks Levi. Is it even possible then to ensure that one of the
variables I wish the user to enter is of type integer?
<Control Id="PortEdit" Type="Edit" X="30" Y="145" Width="150"
Height="20" Property="MY_PORT" Text="{5}" Integer="yes" />
I would have though something like the above, however if you enter an
alphanumberic value in the text field and click elsewhere the installer
will crash with error code 2892, and can only be closed from task
manager ( wix 3.0.2211 ) :|
________________________________
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: 16 January 2007 13:43
To: Patrick Steele
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Refresh on next button
On second thought, I'm not sure if you can get it to automatically
refresh to enable the "Next" button. In the thread that I sent you,
when I clicked the Next button was when I was updating items on my
dialog. I believe in your case you want "Next" to be enabled whenever
text has been entered. I don't think that you can do this without an
external UI handler. To quote Bob Arson:
"Because MSI's UI support doesn't expose all User32 functionality. It's
designed to support a typical setup wizard; more advanced functionality
is the realm of external UI handlers."
Maybe that would be more of what you're looking for.
On 1/16/07, Levi Wilson <[EMAIL PROTECTED]> wrote:
You might want to check out this thread:
http://sourceforge.net/mailarchive/message.php?msg_id=37875289
I'm not sure if it will "solve" your problem, but it might give
you some ideas to try to achieve what you're trying to do?
On 1/16/07, Patrick Steele < [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote:
One of my dialog screens requires the user to fill in
two text fields:
<
Property Id="VARIABLE_ONE" ></Property>
<
Property Id="VARIABLE_TWO" ></Property>
...
<
Control Id=" Next" Type="PushButton" X="236 " Y="243"
Width="56" Height="17" Default="yes" Text="!(loc.WixUINext)" >
<
Condition Action=" disable"><![CDATA[VARIABLE_ONE = ""
OR VARIABLE_TWO = ""]]></Condition>
<
Condition Action=" enable"><![CDATA[VARIABLE_ONE <> ""
AND VARIABLE_TWO <> ""]]></Condition>
</
Control>
...
<
Control Id="V1 Edit" Type="Edit " X="30" Y="90" Width
="150" Height= "20" Property=" VARIABLE_ONE" Text="{32} " />
<
Control Id="V2 Edit" Type="Edit " X="30" Y="150" Width
="150" Height= "20" Property=" VARIABLE_TWO" Text="{32} " />
The next button should only be enabled if both variables
contain data. This code appears to work but upon typing in the second
value, it requires me to click elsewhere in order for the dialog to
refresh and the next button to become enabled. Is there any way I can
get it to update automatically?
Thanks,
Patrick
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the
chance to share your
opinions on IT & business topics through brief surveys -
and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users