Topic: 使用SWT.ON_TOP遇到问题,怎么解决?

  Print this page

1.使用SWT.ON_TOP遇到问题,怎么解决? Copy to clipboard
Posted by: patriotzhou
Posted on: 2005-04-19 12:00

import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;

public class OnTop {
public static void main(String[] args){
Display display=new Display();
Shell shell=new Shell(display,SWT.CLOSE|SWT.ON_TOP);
shell.open();
while(!shell.isDisposed()){
if(!display.readAndDispatch()){
display.sleep();
}
}
shell.dispose();
}
}

运行之后,只有一个很小的标题栏,和一个关闭按钮,我换了其它style也没有用?
哪位SWT高手能解决这个问题啊?

2.Re:使用SWT.ON_TOP遇到问题,怎么解决? [Re: patriotzhou] Copy to clipboard
Posted by: wing5jface
Posted on: 2005-04-19 23:32

試下:
Shell shell = new Shell(display, SWT.SHELL_TRIM|SWT.ON_TOP);
可能符合你的需求!

3.Re:使用SWT.ON_TOP遇到问题,怎么解决? [Re: patriotzhou] Copy to clipboard
Posted by: patriotzhou
Posted on: 2005-04-25 10:19

不行啊,效果还是一样的

4.Re:使用SWT.ON_TOP遇到问题,怎么解决? [Re: patriotzhou] Copy to clipboard
Posted by: cnfree
Posted on: 2005-05-18 11:22

SWT.DIALOG_TRIM| SWT.APPLICATION_MODAL|SWT.ON_TOP


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923