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: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]
> <mailto:[EMAIL PROTECTED]>
>
> * Your use of
Yahoo! Groups is subject to the Yahoo! Terms of
> Service <http://docs.yahoo.com/info/terms/>
.
>
>
>
> ________________________________
>
--
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
YAHOO! GROUPS LINKS