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 [email protected], "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 [email protected], "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 [email protected], "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: [email protected] > [mailto:[EMAIL PROTECTED] On > > > Behalf Of kaibabsowats > > > Sent: Tuesday, October 25, 2005 4:28 PM > > > To: [email protected] > > > 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 [email protected], "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 --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/cd_AJB/QnQLAA/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/

