Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

New wxScintilla 1.66 works with current head

(1/2) > >>

MortenMacFly:
Dear devs,

a new version of wxScintilla (1.66) is out. I realised that Code::Blocks is using this library. Within my current CVS version of Code::Blocks I have switched to this version nearly without any problems. I thought I share this experience with you.

The only thing I had to do (to get rid of a compiler error) was the following change in Platform.h:

--- Code: ---#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1

--- End code ---
...i had to change into:

--- Code: ---#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1
#undef PLAT_WIN
#define PLAT_WIN 1

--- End code ---

it's working quite well and stable for a while now, maybe it's worth switching to the new version.

With regards,

Morten.

heromyth:
I have also made some changes like this


--- Code: ---diff -ruN wxscintilla/src/scintilla/src/ExternalLexer.h wxscintilla-new/src/scintilla/src/ExternalLexer.h
--- wxscintilla/src/scintilla/src/ExternalLexer.h Fri Nov 12 19:49:42 2004
+++ wxscintilla-new/src/scintilla/src/ExternalLexer.h Sat Nov 12 14:52:58 2005
@@ -8,17 +8,15 @@
 #ifndef EXTERNALLEXER_H
 #define EXTERNALLEXER_H
 
-#if PLAT_WIN
+#if PLAT_WIN || PLAT_WX
 #define EXT_LEXER_DECL __stdcall
 #elif PLAT_GTK
-#define EXT_LEXER_DECL
+#define EXT_LEXER_DECL
 #endif
 
--- End code ---

for compiling wxScintilla (1.66)

thomas:
Thanks for pointing out :)
I tried today, and it actually compiles fine even without those last modifications.

Do you have any idea what is actually different between this version and the last one? I was unable to find any useful information on that subject.
If there are notable improvements, it may of course be worth using the new version. On the other hand, the current version has the advantage that it  works - we tested that  ;)

takeshimiya:
Changelog:


* Bug fixed with text display on GTK+ with Pango 1.8.
* Caret painting avoided when not focused.
The rest, more or less are changes to SciTE rather than Scintilla

heromyth:
It seems that the wxScintilla has been moved away from the CVS respository of CB. Today, I update my CB cvs copy. The wxScintilla disappeared.:shock:
Can someone tell me what happened to CB?
Recently, CB has changed greatly, added many usefully things!

Navigation

[0] Message Index

[#] Next page

Go to full version