scrolledcomposite

SWT tandem scrollbars in composite

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-25 03:47:08
问题 I'm trying to add a button above the create two ScrolledComposites that scroll in tandem snippet from swt snippets the problem is that if I put the example code in a different Composite than the shell the example not working import org.eclipse.swt.*; import org.eclipse.swt.custom.*; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; public class tandemWithButton { public static void main(String[] args) { Display display = new Display(); Shell

Java SWT - ScrolledComposite inside Group

杀马特。学长 韩版系。学妹 提交于 2019-12-25 03:10:26
问题 I have a problem with putting ScrolledComposite inside the Group - it doesn't show inside the Group . ScrolledComposite has to scroll the Label . final private static Group group_netpbmOutput = new Group(shell, SWT.NONE); final private static ScrolledComposite scroll_netpbmOutput = new ScrolledComposite(group_netpbmOutput, SWT.V_SCROLL | SWT.H_SCROLL); final private static Label labelImage_netpbmOutput = new Label(scroll_netpbmOutput, SWT.BORDER); //init Group group_netpbmOutput.setLayout(new

How to fill a ScrolledComposite?

人盡茶涼 提交于 2019-12-24 08:55:35
问题 I have a class extending from ScrolledComposite, within this class I have created a Composite which is intended to fill the parent ScrolledComposite. But whenever I add labels to the inner composite it wraps to the upper right corner only. I want my inner Composite to completely fill the outer ScrolledComposite. Is there a way to do this? public class Container extends ScrolledComposite { final Composite comp; Label nameLabel, sizeLabel, dateLabel; ArrayList<Label> entrySize, date; ArrayList

How to fill a ScrolledComposite?

前提是你 提交于 2019-12-24 08:52:18
问题 I have a class extending from ScrolledComposite, within this class I have created a Composite which is intended to fill the parent ScrolledComposite. But whenever I add labels to the inner composite it wraps to the upper right corner only. I want my inner Composite to completely fill the outer ScrolledComposite. Is there a way to do this? public class Container extends ScrolledComposite { final Composite comp; Label nameLabel, sizeLabel, dateLabel; ArrayList<Label> entrySize, date; ArrayList

SWT - computingSize for Multi-line textfield inside ScrolledComposite

妖精的绣舞 提交于 2019-12-23 12:37:25
问题 I have a composite(innerComposite) within a ScrolledComposite(sc). At runtime, additional UI components can be added. So I'm using the code below to set the minimum size of the sc to enable scrolling, in case that the additional UI components "overflow" the sc. sc.setMinSize( innerComposite.computeSize( innerComposite.getSize().x, SWT.DEFAULT ) ); One issue is with the SWT Multi-Line textfield inside this sc/innerComposite. textBox = new org.eclipse.swt.widgets.Text(parent, SWT.MULTI | SWT

Does SWT StyledText have a height limit?

霸气de小男生 提交于 2019-12-12 13:35:20
问题 I am trying to create an application that contains a StyledText box displayed within a ScrolledComposite. I am having difficulties displaying a large number of lines in my StyledText box (over 2,550 seems to cause issues). The StyledText box must not itself have a scroll bar but must be scrollable via the ScrolledComposite. As there are other items below and above the StyledText that need to be scrollable to and I do not want multiple scroll bars. Hence with large amounts of data I have a