Page 1 of 1

AdvEditor library.

Posted: Sun Oct 23, 2005 1:40 pm
by srod
Hi,

I have just stumbled upon Andreas' AdvEditor library in Purearea which looks absolutely brilliant. I've been searching for a way of embedding images within rich edit controls for ages and without having to learn OLE, and this seems to fit the bill exactly. If this library does what I think it does, then it fills one massive gap in PB.

However, all the docs are in German and I was wondering therefore if anyone has any simple examples of using this library which might be shared? Shit, I'd happily pay for an English translation of the main help file!

Thanks.

And thanks Andreas for sharing.

Posted: Mon Oct 24, 2005 11:20 am
by Anden
Well, it doesn't only look that way :-).
It's definitely a great job Andreas has done here.

And he is a very supportive guy, too. Has implemented some additional features almost as fast as i could ask for ...

Happy me, my native tongue is german :evil:

Posted: Mon Oct 24, 2005 12:39 pm
by srod
I don't suppose you have a few little snippets of code you might share... :D

What I'm particularly interested in is in being able to stream rtf content (with images) into and out of an editor gadget.

Posted: Tue Oct 25, 2005 9:12 am
by Anden
That's a quite simple task (only one command needed):

ADVEditor_SaveFile(Gadget.l, Filename.s, Flag.l) --> StreamOut
ADVEditor_LoadFile(Gadget.l, Filename.s, Flag.l) --> StreamIn

While Flag could be #SF_RTF for RTF-Files or #SF_TEXT for text only files.

Posted: Tue Oct 25, 2005 11:39 am
by srod
Thanks, but I meant streaming from memory. Suppose rtf$ contains an r.t.f. encoded string with images and multiple fonts etc. It is this I would like to stream into the ADV_editor.

Thanks.

Posted: Tue Oct 25, 2005 12:44 pm
by Dare2
Hi srod.

If you are looking for the streaming (loading/saving) of RTF format, then this simple editor has code does that:
viewtopic.php?t=10466&highlight=rtf
It was early days for me, but it does the job.

I have tried to write an RTF editor that handles inserted objects (images, etc) but with limited success. Your heads-up on this library will change that, so thanks! My gain.

BTW, I learned how to handle streaming via Balrog's scriptvm editor:
viewtopic.php?t=9651&highlight=scriptvm

If I have misunderstood what you are looking for, ignore this. :) But thanks for pointing out the library!