Page 1 of 1

Annotations with Scintilla

Posted: Tue Sep 20, 2011 3:30 pm
by Joestes
Does anyone know how to use the annotation commands (e.g. SCI_ANNOTATIONSETTEXT) with Scintilla ?

Purebasic doesn't support it, so is it even possible to use it? If yes, does anyone have a small example of how to do so? :)

Thanks in advance!

Regards

Re: Annotations with Scintilla

Posted: Tue Sep 20, 2011 5:02 pm
by USCode
Hi Joestes,
I've never used the Scintilla library so sorry if this is off base, but isn't the ScintillaSendMessage() command what you need?

Re: Annotations with Scintilla

Posted: Wed Sep 21, 2011 7:13 am
by Joestes
Yes, I knew that...

But I think PB doesnt support te command i'm looking for... :(

Re: Annotations with Scintilla

Posted: Wed Sep 21, 2011 10:31 am
by gnozal
From the scintilla sources at http://www.scintilla.org/ScintillaDownload.html ...
Scintilla.h wrote:#define SCI_ANNOTATIONSETTEXT 2540
#define SCI_ANNOTATIONGETTEXT 2541
#define SCI_ANNOTATIONSETSTYLE 2542
#define SCI_ANNOTATIONGETSTYLE 2543
#define SCI_ANNOTATIONSETSTYLES 2544
#define SCI_ANNOTATIONGETSTYLES 2545
#define SCI_ANNOTATIONGETLINES 2546
#define SCI_ANNOTATIONCLEARALL 2547
#define ANNOTATION_HIDDEN 0
#define ANNOTATION_STANDARD 1
#define ANNOTATION_BOXED 2
#define SCI_ANNOTATIONSETVISIBLE 2548
#define SCI_ANNOTATIONGETVISIBLE 2549
#define SCI_ANNOTATIONSETSTYLEOFFSET 2550
#define SCI_ANNOTATIONGETSTYLEOFFSET 2551
Example : http://www.garybeene.com/code/gbsnippets_gbs_00661.htm

Re: Annotations with Scintilla

Posted: Wed Sep 21, 2011 12:59 pm
by DoubleDutch
Be careful though as it may only be available on the Windows version of the library as Linux and OSX use a 'built-in' version that is custom for PB (as it wasn't officialliy available for OSX a while back). Hopefully they will update to the latest official version of Scintilla soon on those machines.