Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Need help in ToolStripMenuButton MouseOut and MouseOver

    SmartGwtEE 2.3 version, Browser IE 7 or Chrome

    i have a ToolStripMenuButton and when i mouseover on the toolstripmenubutton i get a menu and when i mouse out on the menu i am able to hide the menu, but the issue is when i mouse over again after the mouseout i dont get the menu, i will have to click on a different section of the page then have to mouseover to get the menu.

    Can someone please help me out here if i am missing anything here.

    Code:
    Menu menu = getToolStripMenuButton(application.getTabWidgetList());
    toolStripButton.setMenu(menu);
    
    toolStripButton.addMouseOverHandler(new MouseOverHandler()
                    {
                        public void onMouseOver(MouseOverEvent event)
                        {
                            toolStripButton.setShowMenuBelow(true);                                         
                            toolStripButton.getMenu().show();
                        }
                    });
    
    menu.addMouseOutHandler(new MouseOutHandler()
                    {
                        public void onMouseOut(MouseOutEvent event)
                        {
                                                             
                            toolStripButton.getMenu().hide();
                        }
                    });
    
    menu.addMouseOverHandler(new MouseOverHandler()
                    {
                        public void onMouseOver(MouseOverEvent event)
                        {
                            toolStripButton.setShowMenuBelow(true);                                         
                            toolStripButton.getMenu().show();
                        }
                    });
    Last edited by rakeshmadhav; 16 Dec 2011, 12:24.

    #2
    Have you solved the issue? I got the same one.

    Comment

    Working...
    X