Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Extending TextEditor by modifying the StyledText and TextLayout classes
Extending TextEditor by modifying the StyledText and TextLayout classes [message #438108] Wed, 16 June 2004 08:40
Dan Winterstein is currently offline Dan WintersteinFriend
Messages: 33
Registered: July 2009
Member
I want to modify the TextEditor to allow subscripts and superscripts.
Does anyone have any experience/advice on how to make this sort of change?

Clearly this involves changing the StyledText widget. I have looked
through the JavaDoc (and so am well aware that modifying StyledText is
not supported). I think the TextLayout class should be the place to
edit, but there's a lot of code behind StyledText and I'm far from clear
on how everything works.

All help greatfully appreciated.
Yours, etc.
- Daniel

PS - If I get things to work, would people be interested in the code?
PPS - Is there a place for posting nice examples of Eclipse code? If
not, shall we set one up?

-----------------------------------------------
The Universe may
Be as great as they say,
But it wouldn't be missed
If it didn't exist.
(Piet Hein)

Daniel Winterstein
2F2, 12 Lonsdale Terrace
Edinburgh, EH3 9HN
Previous Topic:Print preview
Next Topic:Accelerate Keys (CTRL+C,CTRL+V,CTRL+X) of Text widget do not work in MultipageEditorPart
Goto Forum:
  


Current Time: Fri Apr 19 16:17:11 GMT 2024

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

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

Back to the top