Results 1 to 3 of 3

Thread: Creating a Menu When a Titlebar Icon is Pressed

  1. #1
    Ext User
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
      0  

    Default 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
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364
    Vote Rating
    87
      0  

    Default

    yourMenu.showAt(e.getXY());

  3. #3
    Ext User
    Join Date
    Jan 2008
    Posts
    38
    Vote Rating
    0
      0  

    Default

    Perfect - thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •