Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Text vertical scrollbar not usable on Mac
Text vertical scrollbar not usable on Mac [message #633389] Sun, 17 October 2010 10:36 Go to next message
Mark McLaren is currently offline Mark McLarenFriend
Messages: 45
Registered: July 2009
I'm finding that the vertical scrollbar on OSX is not useable if the text field is small. (I'm using Here's an example:

public class TestVerticalScroll {

	public static void main(String[] args) {
		Display display = new Display();
		Shell shell = new Shell(display);
		Text text = new Text(shell, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);
		text.setSize(164, 50);
		shell.setSize(300, 300);;
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())

Changing the height from 50 to 80 will make the scrollbar useful again!

Does anyone else have this problem?

Re: Text vertical scrollbar not usable on Mac [message #634581 is a reply to message #633389] Fri, 22 October 2010 10:14 Go to previous message
Lakshmi ShanmugamFriend
Messages: 276
Registered: July 2009
Location: India
Senior Member

I think the scrollbar's buttons & thumb don't appear because they cannot fit-in in the given size. On my system, usable arrow buttons without thumb appear when the text box's height is 56 and thumb appears when height is 60.
While the scrollbar is not usable, you can use mouse scroll to scroll the text.

Lakshmi P Shanmugam
Previous Topic:Problem with focuslost
Next Topic:Hide an SWT composite
Goto Forum:

Current Time: Fri May 29 08:18:17 GMT 2020

Powered by FUDForum. Page generated in 0.02274 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top