1. #1
    Ext GWT Premium Member
    Join Date
    Aug 2008
    Posts
    47
    Vote Rating
    0
    xalvaro is on a distinguished road

      0  

    Question Windows maximizing on header doubleclick

    Windows maximizing on header doubleclick


    I try to implement what is written in this post :http://extjs.com/forum/showthread.php?t=61528 with GXT 2.0.


    Code:
    	public void onModuleLoad()
    	{
    			final Window win = new Window();
    		win.getHeader().sinkEvents(Event.ONDBLCLICK);
    		win.getHeader().addListener(new EventType(Event.ONDBLCLICK), new Listener<ComponentEvent>()
    		{
    
    			public void handleEvent(ComponentEvent be)
    			{
    				Info.display("test","test");
    				win.maximize();
    			}
    		});
    		win.show();
    
    	}
    But nothing happen .

    What is the correct implementation to do this?

  2. #2
    Sencha User
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    new EventType(Event.ONDBLCLICK) -> use Events.OnDoubleClick

  3. #3
    Ext GWT Premium Member
    Join Date
    Aug 2008
    Posts
    47
    Vote Rating
    0
    xalvaro is on a distinguished road

      0  

    Default


    thanks

Thread Participants: 1