wxWidgets/src/stc
Maarten Bent dec895e1d7 Add more initialization checks for wxSTC SurfaceD2D target
Return early if the check fails. No functional changes.

This commit is best viewed ignoring whitespace changes.

Closes https://github.com/wxWidgets/wxWidgets/pull/1914
2020-06-30 00:23:31 +02:00
..
scintilla define WXBUILDING when compiling the library on OpenVMS 2020-03-05 08:15:04 +01:00
descrip.mms define WXBUILDING when compiling the library on OpenVMS 2020-03-05 08:15:04 +01:00
gen_docs.py Change wxSTC mapping for SCI_REGISTERIMAGE 2019-03-17 01:48:51 -05:00
gen_iface.py Eliminate a couple more -Wcast-qual warnings 2020-02-03 09:02:14 -08:00
PlatWX.cpp Add more initialization checks for wxSTC SurfaceD2D target 2020-06-30 00:23:31 +02:00
PlatWX.h Improve setting wxSTCPopupWindow size 2020-06-01 16:55:42 +02:00
PlatWXcocoa.h Define the wxSTCPopupBase for wxCocoa 2019-03-18 22:25:10 -05:00
PlatWXcocoa.mm Fix macOS memory leaks, also avoid false positive warnings from clang analyzer 2019-04-21 23:52:37 +02:00
README.txt
ScintillaWX.cpp Fix the DPI in wxSTC IME window 2020-06-24 17:25:19 -05:00
ScintillaWX.h Improve DPI handling in wxSTC 2020-06-01 16:45:21 +02:00
stc_i18n.cpp
stc.cpp Hide wxSTC popup when the DPI changes 2020-06-01 17:02:08 +02:00
stc.cpp.in Hide wxSTC popup when the DPI changes 2020-06-01 17:02:08 +02:00
stc.h.in Forward IME messages to ScintillaWX and handle them 2020-05-11 00:37:49 -04:00
stc.interface.h.in Add Raw variants for replacement functions to wxSTC 2019-09-28 00:49:46 -05:00

This contrib is the wxStyledTextCtrl, which is a wrapper around the
Scintilla edit control.  (See www.scintilla.org)

There is still VERY MUCH to be done, most notable of which is a more
advanced sample that exercises more of the code.  (I haven't tested
AutoComplete or CallTips, or most of the event types at all yet.)  And
also documentation, adding wrappers for some new scintilla
functionality, building and testing on wxGTK, etc.  Be patient, it all
will get there soon.



Let me describe a bit about the architecture I am implementing...
Obviously there is the Platform layer which implements the various
platform classes by using wxWindows classes and filling in where
needed.  Then there is a ScintillaWX class that is derived from
ScintillaBase and implements the necessary virtual methods that
Scintilla needs to fully function.  This class however is not meant to
ever be used directly by wx programmers.  I call it one end of the
bridge between the wx and Scintilla worlds.  The other end of the
bridge is a class called wxStyledTextCtrl that looks, feels and acts
like other classes in wxWindows.  Here is a diagram:


 +------------------+          +-------------------+
 | wxStyledTextCtrl |--bridge--|    ScintillaWX    |
 +------------------+          +-------------------+
                               |   ScintillaBase   |
                               +-------------------+
                               |       Editor      |
                               +-------------------+
                               |     PlatWX        |
                               +-------------------+


wxStyledTextCtrl derives from wxControl so it has a window that can be
drawn upon.  When a wxStyledTextCtrl is constructed it constructs a
ScintillaWX for itself and passes itself to the scintilla object to be
set as the wMain and wDraw attributes.  All method calls on the STC
are sent over the bridge in the form of calls to ScintillaWX::WndProc.
All notifications are sent back over the bridge and turned into
wxEvents.


Robin

[SOLARIS NOTE - ellers@iinet.net.au - June 2002]

On sunos5 (sparc) the stc code breaks if optimisation is turned on (the
default). If your release build breaks but the debug build is fine, 
try reconfiguring with --disable-optimise and rebuilding. If you are using
wxPython you will also need to disable optimised compiling. To do this I
had to hand modify the python makefile in (prefix)/lib/python2.2/config/Makefile
to remove optimisation flags.