Edit control & default button

4 messages Options
Embed this post
Permalink
Dan Giambalvo-2

Edit control & default button

Reply Threaded More More options
Print post
Permalink
I'm running into a strange issue with an interaction between an Edit control and a default button with a custom action on a WiX Dialog.  The Edit is tied to an MSI property, and the button's custom action does some processing to validate the value of that property.   I'm finding when I make the button default (so it responds to Enter), that the CustomAction is not passed the updated value of the control.

Is this a known limitation of Windows Installer UI?

Thanks for your help!
-Dan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: Edit control & default button

Reply Threaded More More options
Print post
Permalink
Dan Giambalvo wrote:
> I'm running into a strange issue with an interaction between an Edit control and a default button with a custom action on a WiX Dialog.  The Edit is tied to an MSI property, and the button's custom action does some processing to validate the value of that property.   I'm finding when I make the button default (so it responds to Enter), that the CustomAction is not passed the updated value of the control.
>
> Is this a known limitation of Windows Installer UI?
>  

Dunno if it's known, but it makes sense, as default buttons don't
trigger a loss of focus.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Dan Giambalvo-2

Re: Edit control & default button

Reply Threaded More More options
Print post
Permalink
So, is there any way to work around this issue?  Is there something I can do in the handler of my button to cause a focus change before I invoke my CA?  

-----Original Message-----
From: Bob Arnson [mailto:[hidden email]]
Sent: Wednesday, November 04, 2009 4:45 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Edit control & default button

Dan Giambalvo wrote:
> I'm running into a strange issue with an interaction between an Edit control and a default button with a custom action on a WiX Dialog.  The Edit is tied to an MSI property, and the button's custom action does some processing to validate the value of that property.   I'm finding when I make the button default (so it responds to Enter), that the CustomAction is not passed the updated value of the control.
>
> Is this a known limitation of Windows Installer UI?
>  

Dunno if it's known, but it makes sense, as default buttons don't
trigger a loss of focus.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users
Bob Arnson-6

Re: Edit control & default button

Reply Threaded More More options
Print post
Permalink
Dan Giambalvo wrote:
> So, is there any way to work around this issue?  Is there something I can do in the handler of my button to cause a focus change before I invoke my CA?  
>  

I'm not aware of any.

--
sig://boB
http://joyofsetup.com/



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/wix-users