문제

I am using

Shell shell = new Shell(display,SWT.NONE);

This however removes the listener or disables the close event. So when I try to right click the application in the taskbar and say "Close window" it doesn't do anything. If I use another shell style such as

SWT.MIN

then it performs the close operation. I am using windows 7.

I need to have a borderless window and at the same time be able to close the application from the context menu, if that is possible.

도움이 되었습니까?

해결책

SWT.NO_TRIM

does exactly what you want. A window without border that still closes using the taskbar context menu.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top