Scintilla Static Library

All PureFORM, JaPBe, Libs and useful code maintained by gnozal

Moderator: gnozal

gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Scintilla Static Library

Post by gnozal »

Scintilla Static Library (last update : NOV 7th 2012)

Scintilla versions :
 PB3.94 library
  ScintillaStaticLite : 2.02
 PB4.0x - PB4.5x libraries
  ScintillaStaticFull : 2.02
  ScintillaStaticLite : 2.02
 PB4.5x libraries
  ScintillaStaticFull : 2.24
  ScintillaStaticLite : 2.24
 PB4.6x+ libraries
  ScintillaStaticFull : 2.28
  ScintillaStaticLite : 2.28
 PB5.0x libraries
  ScintillaStaticFull : 2.28
  ScintillaStaticLite : 2.28

The purpose of this library is to use the new PB4.10+ ScintillaGadget with a static scintilla library (.lib) instead of a dynamic one (.dll).
It also works with CreateWindowEx_().

How to use

Replace the genuine function "InitScintilla(ScintillaDLLPath.s)" with InitScintillaStaticLite() or InitScintillaStaticFull().
That's it !

InitScintillaStaticLite() -> use 'lite' scintilla library [without all the lexers, like the PB Scintilla.dll]
InitScintillaStaticFull() -> use 'full' scintilla library [like the Scite SciLexer.dll]

Download
Only available for Purebasic Windows x86
 Scintilla 2.02 : (supports all Windows versions)
  PB3.94 : http://gnozal.ucoz.com/ScintillaStatic.zip
  PB4.3x : http://gnozal.ucoz.com/ScintillaStatic_430.zip
  PB4.4x : http://gnozal.ucoz.com/ScintillaStatic_440.zip
  PB4.5x : http://gnozal.ucoz.com/ScintillaStatic_450_v202.zip
 Scintilla 2.22 :
  PB4.5x : http://gnozal.ucoz.com/ScintillaStatic_450.zip
 Scintilla 2.28 :
  PB4.6x : http://gnozal.ucoz.com/ScintillaStatic_460.zip
  PB5.0x : http://gnozal.ucoz.com/ScintillaStatic_500.zip
Last edited by gnozal on Tue Aug 18, 2009 11:53 am, edited 13 times in total.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Just tested the Lite version, appears to work fine on Vista.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

:D
no longer necessarily to update my version for PB4 :mrgreen:

I have test both and it works without problems!

thanks
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
JCV
Enthusiast
Enthusiast
Posts: 579
Joined: Fri Jun 30, 2006 4:30 pm
Location: Middle East

Post by JCV »

Thanks! :D

[Registered PB User since 2006]
[PureBasic 5.7][SpiderBasic 2.2] [Win 10 64bit]
[Intel i7 990x 4.20 Ghz] [18GB DDR3]
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

@gnozal

can you give me a static lib (not userlib) of "ScintillaStaticFull", please :wink:

PB-Extensions not required

greetings
Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

ts-soft wrote:@gnozal
can you give me a static lib (not userlib) of "ScintillaStaticFull", please :wink:
Check your PM.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

Update

- added PB3.94 library (tested with a special jaPBe build)
- updated PB4.xx library (added scintilla help file)
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
eddy
Addict
Addict
Posts: 1479
Joined: Mon May 26, 2003 3:07 pm
Location: Nantes

Post by eddy »

very nice
Imagewin10 x64 5.72 | IDE | PB plugin | Tools | Sprite | JSON | visual tool
akj
Enthusiast
Enthusiast
Posts: 665
Joined: Mon Jun 09, 2003 10:08 pm
Location: Nottingham

Post by akj »

I am unable to install the PB4.0x Scintilla library.
The installer says:
Install library to E:\Basic Compilers\PureBasic V4\PureBasic.exe
but surely the 'PureBasic.exe' should not be part of the foldername, but the installer gives me no option to change it.
Anyway, all 5 components of the package are reported as ERROR and nothing is installed.
What is going wrong?
Anthony Jordan
User avatar
Kiffi
Addict
Addict
Posts: 1353
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

akj wrote:The installer says:
Install library to E:\Basic Compilers\PureBasic V4\PureBasic.exe
but surely the 'PureBasic.exe' should not be part of the foldername, but the installer gives me no option to change it.
Anyway, all 5 components of the package are reported as ERROR and nothing is installed.
What is going wrong?
strange... same on my system (Installing to: "D:\Programme\PureBasic\PureBasic.exe") with PureFILE_.zip.

And i thought, my system was broken...

Greetings ... Kiffi
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

It's because the PB folder registry string changed with PB4.10beta4, and although I have fixed it in the lib installer source, I did not compiled it yet nor updated the archives on my site ... Will do ...
Anyway, note that the installer is a self-extracting ZIP archive, so you can open it with any archiver.
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Gnozal, will you be able to do an update of your lib with the new 1.75 version of Scintilla? The RC is now available and it's most likely there will be no more changes. Some major problems have been fixed in that version. PM me if you need the location of the RC. :)
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

DoubleDutch wrote:Gnozal, will you be able to do an update of your lib with the new 1.75 version of Scintilla? The RC is now available and it's most likely there will be no more changes. Some major problems have been fixed in that version. PM me if you need the location of the RC. :)
I'd rather wait for the final version.
And I don't know if I will succeed with V1.75, I had a lot of PoLink errors before I got V1.73 to work.
Btw, what are the new features in V1.75 ?
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
User avatar
DoubleDutch
Addict
Addict
Posts: 3219
Joined: Thu Aug 07, 2003 7:01 pm
Location: United Kingdom
Contact:

Post by DoubleDutch »

Here are the changes (windows) from 1.73 to 1.74...

# Indicators changed to be a separate data structure allowing more indicators. Storing indicators in high bits of styling bytes is deprecated and will be removed in the next version.
# Unicode support extended to all Unicode characters not just the Basic Multilingual Plane.
# Performance improved on wide lines by breaking long runs in a single style into shorter segments.
# Performance improved by caching layout of short text segments.
# Caret may be displayed as a block.
# Dragging does not start until the mouse has been dragged a certain amount. This stops spurious drags when just clicking inside the selection.
# Bug fixed where brace highlight not shown when caret line background set.
# Bug fixed when many font names used.
# Bug fixed with SCI_LINETRANSPOSE on a blank line.
# Bug on Windows fixed by examining dropped text for Unicode even in non-Unicode mode so it can work when source only provides Unicode or when using an encoding different from the system default.


and from 1.754 to 1.75...

* Invalid bytes in UTF-8 mode are displayed as hex blobs. This also prevents crashes due to passing invalid UTF-8 to platform calls.
* Indentation guides enhanced to be visible on completely empty lines when possible.
* The horizontal scroll bar may grow to match the widest line displayed.
* Allow autocomplete popups to appear outside client rectangle in some cases.
* When line state changed, SC_MOD_CHANGELINESTATE modification notification sent and margin redrawn.
* Folding performance improved.
* On Windows versions that support Unicode well, Scintilla is a wide character window which allows input for some less common languages like Armenian, Devanagari, Tamil, and Georgian. To fully benefit, applications should use wide character calls.
* SCI_DELWORDRIGHTEND added for closer compatibility with GTK+ entry widget.
* The styling buffer may now use all 8 bits in each byte for lexical states with 0 bits for indicators.
* Bug fixed where setting background colour of calltip failed.
* Bug fixed when showing selection with a foreground colour change which highlighted an incorrect range in some positions.
* Cut now invokes SCN_MODIFYATTEMPTRO notification.
* Bug fixed where caret not shown at beginning of wrapped lines. Caret made visible in some cases after wrapping and scroll bar updated after wrapping.
* Modern indicators now work on wrapped lines.


I've "bolded" the things that effect my stuff the most, I consider them to be the most important changes. ;)

As you can see there have been quite a few fixes since 1.73, quite a few of them 'causes crashes.

If Fred/Freak reads this then they may like to know (if they didn't already) that there is an official OSX port of Scintilla now (since 1.74).
https://deluxepixel.com <- My Business website
https://reportcomplete.com <- School end of term reports system
gnozal
PureBasic Expert
PureBasic Expert
Posts: 4229
Joined: Sat Apr 26, 2003 8:27 am
Location: Strasbourg / France
Contact:

Post by gnozal »

DoubleDutch wrote:I've "bolded" the things that effect my stuff the most, I consider them to be the most important changes. ;)
I wonder if these styling bytes changes may brake the jaPBe syntax highlighting code ?!!
DoubleDutch wrote:As you can see there have been quite a few fixes since 1.73, quite a few of them 'causes crashes.
In my experience apps using scintilla like jaPBe (or PureFORM) do not crash that much (due to Scintilla bugs) ...
For free libraries and tools, visit my web site (also home of jaPBe V3 and PureFORM).
Post Reply