On 6/10/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

> Is there a way to set the depth of my menu so it is ALWAYS on top
> (DepthManager.setDepthTo(kTopmost)) for my menu VBox component?

YES!  It is POSSIBLE! :)

See this sample code.  It works.  The menu is always above the Alert box.

<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml";
  xmlns="*" creationComplete="showWindow()">
  <mx:Script>
    import mx.controls.Alert;
 
    private var window:Alert;

    public function raiseMenus():Void
    {
      menuBar.getMenuAt(0).setDepthAbove(window);
    }

    public function showWindow():Void
    {
      window = Alert.show("Move me close to the menu bar above, then
open the menu and see that it's higher than me.", "Window",
Alert.NONMODAL);
    }
  </mx:Script>
  <mx:MenuBar id="menuBar" menuShow="raiseMenus()">
    <mx:dataProvider>
      <mx:XML>
        <menuitem label="Click Here">
          <menuitem label="SubMenuItem 1-A" />
          <menuitem label="SubMenuItem 2-A" />
        </menuitem>
      </mx:XML>
    </mx:dataProvider>
  </mx:MenuBar>
</mx:Application>


 
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/
 


Reply via email to