Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Offset of last visible character in a StyledText control
Offset of last visible character in a StyledText control [message #1005602] Sun, 27 January 2013 05:21
Eclipse UserFriend
How can I get the integer offset of the last visible character in a StyledText control?

I have tried the following:

Rectangle rect = styledText.getClientArea();
Point p = new Point(rect.width, rect.height);
int offset = styledText.getOffsetAtLocation(p);


But this causes an IllegalArgumentException.

Thanks,
Kevin
Previous Topic:swt, xulrunner 10, and Javascript XPCOM calls
Next Topic:SWT, XULrunner, OS X and hover events not working
Goto Forum:
  


Current Time: Sun Aug 31 09:56:42 EDT 2025

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

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

Back to the top