I wonder if I need to subscribe my MaskedEdit and Icon controls to some
event? Any ideas? I noticed that some other "trick" that people have used
is to create a cloned dialog and switch between them? This doesn't seem
like a very feasible solution.
On 1/10/07, Levi Wilson <[EMAIL PROTECTED]> wrote:
The problem with that is when the Reset event is called, it sets PIDKEY
back to whatever it was when the dialog was initialized. So when you press
the "Next" button, when ValidateProductID is envoked, the PIDKEY is blank,
so it fails. I *could* set a condition to not validate the PIDKEY if
ProdIDVerified is true, but then when I go forward and then back into the
UserRegistration dialog, the PIDKEY the user entered is blanked out again.
And what I want to be shown is the masked edit control with the PIDKEY they
entered that is disabled (grayed), and the "OK" icon to indicate that it's
cool.
On 1/10/07, Rob Hamflett <[EMAIL PROTECTED]> wrote:
>
> Could you not have the PIDKEY set to some pre-existing value, which is
> empty on the first run?
>
> Rob
>
> Levi Wilson wrote:
> > I have a UserRegistration dialog. The "Next" button publishes the
> > following:
> >
> > <Control Id="Next" Type="PushButton" X="236" Y="243" Width="56"
> > Height="17" Default="yes" Text="&Next">
> > <Publish Event="ValidateProductID" Value="0">1</Publish>
> > <Publish Event="DoAction"
> > Value="VerifyMe"><![CDATA[ProdIDVerified <> "1"]]></Publish>
> > <Publish Event="Reset" Value="1">1</Publish>
> > <Publish Event="SpawnWaitDialog"
> > Value="WaitForCostingDlg">CostingComplete = 1</Publish>
> > </Control>
> >
> >
> > "VerifyMe" obviously verifies if the ProductID is good to go. What I
> > have are two icon controls in my dialog that sort of display the
> status
> > of the entered serial. They are defined as so:
> >
> > <Control Id="VerifiedOKIcon" Type="Icon" X="205" Y="159" Height="16"
> > Width="16" Text="StatusOKIcon" Hidden="yes">
> > <Condition Action="hide"><![CDATA[ProdIDVerified <>
> > "1"]]></Condition>
> > <Condition Action="show">ProdIDVerified = "1"</Condition>
> > </Control>
> > <Control Id="VerifiedNOIcon" Type="Icon" X="205" Y="159"
> > Height="16" Width="16" Text="StatusNOIcon" Hidden="yes">
> > <Condition Action="show">ProdIDVerified AND
> > <![CDATA[ProdIDVerified <> "1"]]></Condition>
> > <Condition Action="hide">ProdIDVerified = "1"</Condition>
> > </Control>
> >
> > So what happens is when "Next" is pressed, if the serial number was
> > cool, the "OK" icon is displayed. If it didn't match up, the "NO"
> icon
> > is displayed, and the "OK" is hidden. This all works, but the only
> way
> > I could get it to happen immediately after "Next" was pressed was to
> add
> > the <Publish Event="Reset" Value="0">1</Publish> in order to "Refresh"
>
> > the dialog. The problem, as you can imagine, is that this in turn
> > resets PIDKEY, which is a problem. Is there a way so that after my CA
> > sets the ProdIDVerified property that the controls would immediately
> > reflect that to the user? Any help would be greatly
> appreciated. Thanks!
> >
> >
> >
> ------------------------------------------------------------------------
> >
> >
> -------------------------------------------------------------------------
> > 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
>
>
>
> -------------------------------------------------------------------------
> 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
>
-------------------------------------------------------------------------
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