-
13 May 2009 2:13 AM #1
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.
But nothing happenCode: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(); }
.
What is the correct implementation to do this?
-
13 May 2009 2:15 AM #2
new EventType(Event.ONDBLCLICK) -> use Events.OnDoubleClick
-
13 May 2009 2:20 AM #3


Reply With Quote