Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » StyledText cursor position(Need to set the cursor position in StyledText)
StyledText cursor position [message #697055] Fri, 15 July 2011 12:20 Go to next message
swetha Missing name is currently offline swetha Missing nameFriend
Messages: 3
Registered: July 2011
Junior Member

My requirement is :
In the StyledText after a line when the user clicks enter the cursor comes just below the first letter of the previous line.I need to increase the cursor position by 4 spaces to right.Is there any way to do that...Please help!!!


[Updated on: Fri, 15 July 2011 12:23]

Report message to a moderator

Re: StyledText cursor position [message #697947 is a reply to message #697055] Mon, 18 July 2011 12:48 Go to previous message
Lakshmi ShanmugamFriend
Messages: 276
Registered: July 2009
Location: India
Senior Member

You can use the VerifyListener to check and modify the entered text. See this example snippet on how to use the VerifyListener --->

Lakshmi P Shanmugam
Previous Topic:Can i build UI like this?
Next Topic:OLE ignores calls to Microsoft Excel. OLE or Windows problem?
Goto Forum:

Current Time: Tue Nov 24 21:38:28 GMT 2020

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

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

Back to the top