[flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
Dustin, Thanks for that suggestion - it proved that the problem is indeed that the menu is showing up beneath my window. Another strange thing is that none of the items are selectable when I run my mouse cursor over them. How would I get the menu to stop showing up beneath my window? -- Renaun, PopUp.mxml's top component is an mx:Panel. Main.mxml allows the user to open any number of different windows (I gave them generic names for this example, obviously, but they are all smaller parts of a large application) in which the user will execute different tasks. Also, I do have my AS function inside of mx:Script![CDATA[ ]/mx:Script tags. -- Thank you both. =) --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: This doesn't sound like a cairngorm issue, but a flex depth issue. Try this... Try making the window height about 50 pixels, and add a bunch of menu items to the menubar's dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menu's items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=FinderA/ menuitem label=Finder B type=Finder data=FinderB/ /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=AddEditA/ menuitem label=Add/Edit B type=Add/Edit data=AddEditB/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=Open/ menuitem label=Close type=File data=Close/ menuitem label=Save type=File data=Save/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service http://docs.yahoo.com/info/terms/ . Yahoo! Groups Sponsor ~-- Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives
[flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
The parent of PopUp.mxml is an mx:Application. I saw that in the livedocs, but I didn't read it to mean that the MenuBar is not intended for use within a pop-up (i.e. within a Panel)... is this the case? --- In flexcoders@yahoogroups.com, kaibabsowats [EMAIL PROTECTED] wrote: From the livedocs: The MenuBar control defines a horizontal menu bar that contains one or more Menus. The MenuBar control is generally always visible. **It is not intended for use as a pop up.** The individual Menus popup as the user clicks on them and disappear when a menu item is clicked or the menu is dismissed by clicking outside the menu. **'s added for emphasive. What is the parent container of the PopUp.mxml (mx:Panel)? Is it a ViewStack? Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: Dustin, Thanks for that suggestion - it proved that the problem is indeed that the menu is showing up beneath my window. Another strange thing is that none of the items are selectable when I run my mouse cursor over them. How would I get the menu to stop showing up beneath my window? -- Renaun, PopUp.mxml's top component is an mx:Panel. Main.mxml allows the user to open any number of different windows (I gave them generic names for this example, obviously, but they are all smaller parts of a large application) in which the user will execute different tasks. Also, I do have my AS function inside of mx:Script![CDATA[ ]/mx:Script tags. -- Thank you both. =) --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: This doesn't sound like a cairngorm issue, but a flex depth issue. Try this... Try making the window height about 50 pixels, and add a bunch of menu items to the menubar's dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menu's items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=FinderA/ menuitem label=Finder B type=Finder data=FinderB/ /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=AddEditA/ menuitem label=Add/Edit B type=Add/Edit data=AddEditB/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=Open/ menuitem label=Close type=File data=Close/ menuitem label=Save type=File data=Save/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show
RE: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
When you create the window, you can specify its modality (I think it is the 3rd parameter on the createPopUp method, its a Boolean value). Try setting the modality to false. A modal window is the topmost window in a flex application. I have had similar issues with modal windows This may not work, but it is worth a try. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of fowleryj Sent: Wednesday, October 26, 2005 5:32 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working Dustin, Thanks for that suggestion - it proved that the problem is indeed that the menu is showing up beneath my window. Another strange thing is that none of the items are selectable when I run my mouse cursor over them. How would I get the menu to stop showing up beneath my window? -- Renaun, PopUp.mxml's top component is an mx:Panel. Main.mxml allows the user to open any number of different windows (I gave them generic names for this example, obviously, but they are all smaller parts of a large application) in which the user will execute different tasks. Also, I do have my AS function inside of mx:Script![CDATA[ ]/mx:Script tags. -- Thank you both. =) --- In flexcoders@yahoogroups.com, Mercer, Dustin [EMAIL PROTECTED] wrote: This doesn't sound like a cairngorm issue, but a flex depth issue. Try this... Try making the window height about 50 pixels, and add a bunch of menu items to the menubar's dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menu's items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=""> menuitem label=Finder B type=Finder data=""> /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=""> menuitem label=Add/Edit B type=Add/Edit data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=""> menuitem label=Close type=File data=""> menuitem label=Save type=File data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com YAHOO! GROUPS LINKS * Visit your group flexcoders http://groups.yahoo.com/group/flexcoders on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED]
[flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=FinderA/ menuitem label=Finder B type=Finder data=FinderB/ /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=AddEditA/ menuitem label=Add/Edit B type=Add/Edit data=AddEditB/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=Open/ menuitem label=Close type=File data=Close/ menuitem label=Save type=File data=Save/ /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. Yahoo! Groups Sponsor ~-- Fair play? Video games influencing politics. Click and talk back! http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM ~- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
RE: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working
This doesnt sound like a cairngorm issue, but a flex depth issue. Try this Try making the window height about 50 pixels, and add a bunch of menu items to the menubars dataProvider, then try. See if the menu is showing up under the window (you will be able to see that because the menus items should extend beyond the bottom of the window). I am not sure if this is the problem, but it is a logical first place to check. From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of kaibabsowats Sent: Tuesday, October 25, 2005 4:28 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working More details are need? How is PopUp.mxml used? Whats the top component in PopUp.mxml,etc... You probably doing this but just to double check, in PopUp.mxml are you putting the AS function insdie mx:Script![CDATA[ ]/mx:Script Renaun --- In flexcoders@yahoogroups.com, fowleryj [EMAIL PROTECTED] wrote: MenuBars aren't working properly in my pop-ups, whereas they are working just fine in my Main.mxml. In my pop-up, the File menu I've declared won't even drop down when I click on it. - In Main.mxml: mx:MenuBar id=MainMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=Finder menuitem label=Finder A type=Finder data=""> menuitem label=Finder B type=Finder data=""> /menuitem menuitem label=Add/Edit menuitem label=Add/Edit A type=Add/Edit data=""> menuitem label=Add/Edit B type=Add/Edit data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar mx:Script![CDATA[ private function menuChangeHandler(event){ if(event.menuItem.attributes.data == FinderA) { commonViewHelper.openWindow('FinderA') } else if(event.menuItem.attributes.data == FinderB) { commonViewHelper.openWindow('FinderB') } else if(event.menuItem.attributes.data == AddEditA) { commonViewHelper.openWindow('AddEditA') } else if(event.menuItem.attributes.data == AddEditB) { commonViewHelper.openWindow('AddEditB') } ]]/mx:Script (That works fine) - In PopUp.mxml: mx:MenuBar id=PopUpMenuBar width=450 change=menuChangeHandler(event) mx:dataProvider mx:XML menuitem label=File menuitem label=Open type=File data=""> menuitem label=Close type=File data=""> menuitem label=Save type=File data=""> /menuitem /mx:XML /mx:dataProvider /mx:MenuBar private function menuChangeHandler(event){ if(event.menuItem.attributes.data == Open) { // Nothing yet } else if(event.menuItem.attributes.data == Close) { PopUpViewHelper.closePopUp(); // Closes the pop-up } else if(event.menuItem.attributes.data == Save) { // Nothing yet } } (This is not working properly - the menu won't even drop down to show the options.) Any insight would be greatly appreciated. -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.