News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

New wxScintilla 1.66 works with current head

Started by MortenMacFly, October 26, 2005, 07:49:58 AM

Previous topic - Next topic

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:

#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1

...i had to change into:

#elif defined(__WX__)
#undef PLAT_WX
#define PLAT_WX  1
#undef PLAT_WIN
#define PLAT_WIN 1


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

With regards,

Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

heromyth

I have also made some changes like this

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


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  ;)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

#3
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!

rickg22

AFAIK the wxScintilla is still present under the sdk.