Hello.. I have one question/suggestion..

Is there an easy way to determine the version of scintilla, or if not, maybe it 
should be?

You see, as the versions go by more messages are supported, and you cannot
neccesarily depend on what version of the scintilla dlls are available..

If would've been nice to have a message, something like SCI_GETVERSION to
return the version of the loaded dll, so a interface/program can modify it's 
behaviour depending
on what is available. 

Going through the versioninfo resource stored in the dll requires a bit of 
code, and not very portable.

I would suggest that it returned a longint containing hi and lo version, and 
the highbit of the long to
specify whether it's a CVS or official release. 

And probably a define in the scintilla.h to contain the version, so the 
program/interface itself can 
determine what version it was compiled with, if neccessary.

Or alternatively, do something like SCI_SUPPORTS(msgid), which would return 0 
or 1
depending on whether the dll supports 'msgid' message or not.

Jan
====>>>> Delphi Scintilla Interface Components 
(http://delphisci.sourceforge.net) <<<<====


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to