Just starting out? Need help? Post your questions and find answers here.
Joestes
User
Posts: 25 Joined: Thu Mar 19, 2009 12:42 pm
Location: Utrecht, The Netherlands
Post
by Joestes » Tue Sep 20, 2011 3:30 pm
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
Posts: 924 Joined: Wed Mar 24, 2004 11:04 pm
Location: Seattle
Post
by USCode » Tue Sep 20, 2011 5:02 pm
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
Posts: 25 Joined: Thu Mar 19, 2009 12:42 pm
Location: Utrecht, The Netherlands
Post
by Joestes » Wed Sep 21, 2011 7:13 am
Yes, I knew that...
But I think PB doesnt support te command i'm looking for...
gnozal
PureBasic Expert
Posts: 4229 Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:
Post
by gnozal » Wed Sep 21, 2011 10:31 am
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).
DoubleDutch
Addict
Posts: 3220 Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:
Post
by DoubleDutch » Wed Sep 21, 2011 12:59 pm
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.