Questions tagged [scrolledcomposite]

50 questions
8
votes
3 answers

ScrolledComposite parent with GridLayout

I'd like to have a ScrolledComposite which has a parent with GridLayout but the scrollbar doesn't show up, unless I use FillLayout. My problem with FillLayout is that its children takes equal parts of the available space. In my case there are two…
gombost
  • 317
  • 1
  • 3
  • 9
6
votes
1 answer

SWT: Nested Layouts with ScrolledComposite exceeds available space

I want to build a Master-Detail layout for one of my applications using SWT. Container, Content, Sidebar and Part1 are Composite instances. Scrolled is a ScrolledComposite The desired layout is something…
Johannes Wachter
  • 2,715
  • 17
  • 17
6
votes
2 answers

Use GridLayout in Scrolled Composite

I am trying to created a scrolled composite that has a composite with a grid layout inside. However when I try to set the content of the scrolled composite nothing loads. This appears only to affect composites with grid layouts. What am I doing…
Talon06
  • 1,756
  • 3
  • 27
  • 51
5
votes
1 answer

SWT Composite maximum size

I have a ScrolledComposite, the contents of which are being truncated. I have Googled and am aware that it is a known issue on Windows. The only suggested workaround I can find is to use the canvas.scroll functionality. Given the age of the issue,…
Craig
  • 51
  • 1
  • 2
5
votes
1 answer

Export full scrolled composite to image

I want to export a full scrolled composite to an image. I mean the whole composite, not just the visible area of the composite. I found this example: Image drawable = new Image(display, someComposite.getBounds()); GC gc = new…
yossico
  • 3,421
  • 5
  • 41
  • 76
4
votes
3 answers

SWT - computingSize for Multi-line textfield inside ScrolledComposite

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…
humansg
  • 735
  • 3
  • 12
  • 30
3
votes
1 answer

SWT ScrolledComposite cuts off canvas generated images after 32768 pixels

So I wrote a program that depending upon a given 'model' it generates a horizontal 'timeline' bar with a height of 50 pixels and a length of approx 84600 pixels. Each pixel represents a second since it is modelling events in seconds over a 24hr…
JackSparrow123
  • 1,360
  • 2
  • 18
  • 23
3
votes
1 answer

How to smoothly scroll SWT composite?

I'm using a SWT ScrolledComposite but when I scroll in Windows I get some tearing / flickering if I scroll to fast. What can I do to double buffer or reduce this effect, or what can I do to override the default scrolling functionality and make it…
steve
  • 1,545
  • 4
  • 18
  • 28
3
votes
2 answers

Does SWT StyledText have a height limit?

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…
Andrew
  • 83
  • 7
3
votes
2 answers

Set ScrolledComposite's ScrollBar visibility to false in SWT

I have two ScrolledComposites and I'm synchronizing their vertical scroll positions like this: final ScrollBar vScroll1 = canvasScroll.getVerticalBar(); final ScrollBar vScroll2 = titleScroll.getVerticalBar(); vScroll1.addSelectionListener(new…
user377628
2
votes
1 answer

Prevent scrolling on text field? Java SWT

I have a multi line text field inside of a ScrolledComposite. If my mouse is outside of the text field scrolling works fine but if my mouse is on the text field it stops scrolling the ScrolledComposite. I didn't set V_Scroll on the textfield so it…
llTtoOmMll
  • 67
  • 2
  • 6
2
votes
1 answer

JFace PreferencePage List with scrollbars

i am trying to create a PreferencePage which holds a List. The List can get large and under the List there Buttons which interact with the List. It would be useful if the Buttons where always visible but when the list gets to large the…
lolung
  • 460
  • 3
  • 16
1
vote
1 answer

Java SWT ScrolledComposite Performance with many Composites inside

i have a problem with my Java SWT ScrolledComposite: In a (centered) ScrolledComposite are displayed many pictures previews (see picture images). If the images in the ScrolledComposite are loaded, it takes a long time. After that the previews lags…
Todo
  • 11
  • 1
1
vote
1 answer

ChartComposite into a scrolledComposite

I need to put a scroll into a chart without but I can't use javax.swing, just using swt. I want to put a ilimited number of items in the category axis,maybe 100 or 200, obviously you need a scroll for watching all data in the x axis. I have…
david d
  • 21
  • 3
1
vote
0 answers

Scrolled composite content is not shown in multi page wizard

I'm using Eclipse Neon 4.6. When I open a multi-page wizard, and its second page contents is a scrolled composite, the page comes up blank no widgets at all. When I resize or maximize the editor, then the contents are displayed and the…
EJoe
  • 55
  • 8
1
2 3 4