Extending TextEditor by modifying the StyledText and TextLayout classes [message #438108] |
Wed, 16 June 2004 08:40 |
Dan Winterstein 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
|
|
|
Powered by
FUDForum. Page generated in 0.02156 seconds