PDA

View Full Version : I wanna WINDOW double click is maximum.



suhyun jeon
5 Aug 2009, 5:37 PM
Hello. Nice to meet you.
My project is GXT2.0 using now.
I wanna WINDOW double click is maximum.
I made 'Event.ONDBLCLICK' using method but WINDOW.class no method.

Doing attach photo. Look please.
http://blogfiles14.naver.net/20090805_285/mcjura00_1249457512311_yHM37Q_jpg/result_2009_7_3_16_31_48_125_2.jpg

help me please.

francescoNemesi
5 Aug 2009, 9:18 PM
header = getHeader();
header.sinkEvents(Events.OnDoubleClick.getEventCode());
header.addListener(Events.OnDoubleClick, new Listener<ComponentEvent>() {
public void handleEvent(ComponentEvent be) {
if (!isMaximized()) maximize();
else restore();
}
});

suhyun jeon
5 Aug 2009, 9:34 PM
Thank you. :)

Have a nice day.