Is it possible to have a Canvas with a border around it? Passing SWT.BORDER_SOLID
to the Canvas constructor does nothing:
是否有可能有一个带有边框的画布?将SWT.BORDER_SOLID传递给Canvas构造函数不执行任何操作:
imageCanvas = new Canvas(top, SWT.V_SCROLL | SWT.H_SCROLL | SWT.NO_REDRAW_RESIZE | SWT.DOUBLE_BUFFERED | SWT.BORDER_SOLID);
1 个解决方案
#1
3
SWT.BORDER
will do the trick.
SWT.BORDER会做的。
The Javadoc of SWT.BORDER_SOLID
states that it's:
SWT.BORDER_SOLID的Javadoc声明它是:
Used By:
TextStyle
使用者:TextStyle
#1
3
SWT.BORDER
will do the trick.
SWT.BORDER会做的。
The Javadoc of SWT.BORDER_SOLID
states that it's:
SWT.BORDER_SOLID的Javadoc声明它是:
Used By:
TextStyle
使用者:TextStyle