Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Caret in StyledText won't hide(How can the Caret be hidden in a StyledText)
Caret in StyledText won't hide [message #528799] Wed, 21 April 2010 19:42
Nitzan Tomer is currently offline Nitzan TomerFriend
Messages: 1
Registered: April 2010
Junior Member
Hi all,

I'm trying to hide the Caret of a StyledText but for some reason it doesn't work.
Here's my (very simple) code:
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new GridLayout(1, false));
GridData gridData = new GridData();
gridData.horizontalAlignment = SWT.FILL;
gridData.grabExcessHorizontalSpace = true;
gridData.verticalAlignment = SWT.FILL;
gridData.grabExcessVerticalSpace = true;
StyledText textBox = new StyledText(shell, SWT.BORDER | SWT.MULTI| SWT.V_SCROLL | SWT.H_SCROLL);

shell.setSize(800, 350);;

while (!shell.isDisposed()) {
	if (!display.readAndDispatch())

The caret still remains and keeps blinking.
What am I doing wrong here?

Previous Topic:Is this a bug?
Next Topic:Strange error on Mac OS X 10.6 (Snow Leopard) with SWT 3.5 (Cocoa) - SOLVED
Goto Forum:

Current Time: Sat Dec 14 06:48:23 GMT 2019

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

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

Back to the top