Tag: composite

水平滚动条在CTabItem内的复合下不起作用

我有CtabItem,里面有一个Composite小部件。 然后,我在其中添加了一些组件。 代码是这样的 – Composite composite = new Composite(tabFolder, SWT.H_SCROLL); tabItem.setControl(composite); Label lblName = new Label(composite, SWT.NONE); lblName.setBounds(10, 28, 55, 15); lblName.setText(“Name”); textName = new StyledText(composite, SWT.BORDER); String myText = tree.getSelection()[0].getText(); textName.setText(myText); Point textNamesize = textName.computeSize(SWT.DEFAULT, SWT.DEFAULT); textName.setBounds(76, 28, textNamesize.x, 21); Label lblPath = new Label(composite, SWT.NONE); lblPath.setBounds(10, 83, 55, 15); lblPath.setText(“Path”); textPath = new […]