|
|
Re: icons in texteditor [message #454166 is a reply to message #454102] |
Mon, 18 April 2005 17:18 |
Eclipse User |
|
|
|
Originally posted by: bob.objfac.com
That's maybe too broad a suggestion to be useful. ;-}
Unless there is a ready-made plugin I don't know about...
SWT doesn't provide an editable widget that allows you to intersperse
images and text. (The Browser widget isn't editable; the RTF widget is
pie in the sky.) If you want to do it by a hack and you don't flow text
and no image height is greater than the row height, you could put
placeholder whitespace in the text and draw the images in a paint
listener. A similiar technique (except for the extra whitespace) is used
to draw the squiggles and boxes you see in the Java editor. (Flowing is
a problem because StyledText doesn't support non-breaking spaces.)
Anything much better than that, you'd really have to want it to do the
work required.
Bob Foster
Daniel Spiewak wrote:
> The only thing I can think of, and I know this is the sixth or seventh
> time I've suggested this to someone on this group, is to create a custom
> subclass of TextEditor.
>
> philipp_tiedt@de.ibm.com wrote:
>
>>I was wondering if there is a possibility to have icons (or little images)
>>displayed in a texteditor (like icq and other tools do with smileys in the
>>text :-) ). If so can someone please point me to some resources ? Thx in
>>advance.
>>
>>regards,
>>- philipp
>>
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03194 seconds