AdvEditor library.

Everything else that doesn't fall into one of the other PB categories.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

AdvEditor library.

Post 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.
I may look like a mule, but I'm not a complete ass.
Anden
Enthusiast
Enthusiast
Posts: 135
Joined: Mon Jul 21, 2003 7:23 am
Contact:

Post 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:
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
Anden
Enthusiast
Enthusiast
Posts: 135
Joined: Mon Jul 21, 2003 7:23 am
Contact:

Post 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.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post 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.
I may look like a mule, but I'm not a complete ass.
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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!
@}--`--,-- A rose by any other name ..
Post Reply