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
Member
I'm finding that the vertical scrollbar on OSX is not useable if the text field is small. (I'm using swt-3.6.1-cocoa-macosx-x86_64.zip). 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.setText("ABC\r\r\r\r\r\rXYZ");
		text.setSize(164, 50);
		shell.setSize(300, 300);
		shell.open();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch())
				display.sleep();
		}
		display.dispose();
	}
}


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

Does anyone else have this problem?

Thanks
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: 275
Registered: July 2009
Location: India
Senior Member
Hi,

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:Simple SWT Table
Next Topic:SWT Browser Scrollbar
Goto Forum:
  


Current Time: Fri Oct 20 01:28:56 GMT 2017

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

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