RE: [flexcoders] Re: How to stop a button click from changing focus
Look into the PopupManager.createPopup method http://livedocs.adobe.com/flex/3/langref/mx/managers/PopUpManager.html There is a modal attribute which is false by default. I believe if you set that to true, you'll get your desired result. Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of valdhor Sent: Thursday, September 24, 2009 9:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to stop a button click from changing focus Disable the application? Application.application.enabled = false; --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , reflexactions reflexacti...@... wrote: If I have a popup window which has focus and I then click a button that is in the application main form the SystemManager's mouseDown handler automatically activates the main app and deactivates the popup. How can I stop that from happening. No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.112/2392 - Release Date: 09/24/09 05:52:00
Re: [flexcoders] Re: How to stop a button click from changing focus
First question would be: do you *want* them to be able to click in the main form? If not, you could simply set the modal property of the popup to true when you create it. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560
RE: [flexcoders] Re: How to stop a button click from changing focus
mouseFocusEnabled=false Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of reflexactions Sent: Thursday, September 24, 2009 8:47 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to stop a button click from changing focus Yes I want to be able to click in the main form because that is where the button is, this is why using modal or disabling the main app won't work. If it is easier to understand think of a toolbar that lives in the main form with several non-modal popup windows. Clicking the toolbar will do something to the active popup. So when you click a button in the toolbar I dont want it to remove focus from the active popup, becuase otherwise by the time the button's click fires focus has been moved to the main app. So far a hack that works is to have my own mouseDown handler that runs ahead of the SystemManager and stops the event propagating if the target is my button but I am not currently sure of the consequences of this. --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Tom McNeer tmcn...@... wrote: First question would be: do you *want* them to be able to click in the main form? If not, you could simply set the modal property of the popup to true when you create it. -- Thanks, Tom Tom McNeer MediumCool http://www.mediumcool.com 1735 Johnson Road NE Atlanta, GA 30306 404.589.0560