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
Hi,

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!!!

Thanks....

[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 P ShanmugamFriend
Messages: 279
Registered: July 2009
Location: India
Senior Member
Hi,

You can use the VerifyListener to check and modify the entered text. See this example snippet on how to use the VerifyListener ---> http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet19.java


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: Fri Apr 19 18:55:21 GMT 2024

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

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

Back to the top