[plt-scheme] Text% getting and setting text, images, etc.

From: Erich Rast (Erich.Rast at t-online.de)
Date: Fri Mar 14 09:08:01 EST 2003

I need to re-implement all insert/copy/paste/undo/redo operations in a 
text% subclass. However, I haven't yet figured out how to get and 
insert editor data that may contain more than just text. Does 
"flattened text" include subeditors and images? How would I insert 
"flattened text" into the editor again?

I shouldn't really use on-copy and on-paste, because I also need to 
save ranges of editor data for my own custom undo scheme. So what I'd 
need is something like:

(get-rich-text start-position end-position) ==> rich text data or 
(insert-rich-text text-data position)

How to?

Best regards,


Posted on the users mailing list.