1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
    mconnors1234 is on a distinguished road

      0  

    Default Creating a Menu When a Titlebar Icon is Pressed

    Creating a Menu When a Titlebar Icon is Pressed


    I have a titlebar that contains an icon. When the icon is pressed I want to display an Ext.menu.Menu.

    I have a handler for the icon:

    handler: function(e, target, panel)

    The question I have is how do I display the menu at this point?

    Also, is it possible to associate the Menu at the window creation time so I would not even need a handler?

    Any suggestions would be appreciated.

    Thanks,

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,360
    Vote Rating
    81
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    yourMenu.showAt(e.getXY());

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
    mconnors1234 is on a distinguished road

      0  

    Default


    Perfect - thanks!

Thread Participants: 1