No problem J  Hopefully Flex 2.0 will fix some of these problems…  Time to go do some tests to see so we can log these for Flex 2 J

 

Dustin Mercer

 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of fowleryj
Sent: Wednesday, October 26, 2005 2:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RES: (Flex 1.5 using Cairngorm Framework) MenuBars in PopUps not Working

 

That was it! I set modal to false and now the menu shows up. Thanks
for your help, Dustin.

--- In flexcoders@yahoogroups.com, "Mercer, Dustin"
<[EMAIL PROTECTED]> wrote:
>
> When you create the window, you can specify its' modality (I think it is
> the 3rd parameter on the createPopUp method, it's 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:[EMAIL PROTECTED] 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:[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="">
> > >   <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




Reply via email to