Annotations with Scintilla

Just starting out? Need help? Post your questions and find answers here.
Joestes
User
User
Posts: 25
Joined: Thu Mar 19, 2009 12:42 pm
Location: Utrecht, The Netherlands

Annotations with Scintilla

Post 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
USCode
Addict
Addict
Posts: 924
Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle

Re: Annotations with Scintilla

Post 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?
Joestes
User
User
Posts: 25
Joined: Thu Mar 19, 2009 12:42 pm
Location: Utrecht, The Netherlands

Re: Annotations with Scintilla

Post by Joestes »

Yes, I knew that...

But I think PB doesnt support te command i'm looking for... :(
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Re: Annotations with Scintilla

Post 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
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3220
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Re: Annotations with Scintilla

Post 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.
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
Post Reply