Scintilla text editor lazarus / 31-LCL ---------------------------------------------------------------------- chucky · 2017-09-24 21:54 I wrote a pure windows api program that uses the scintilla text editor and it works fine but I wanted to use the LCL and put the scintilla text editor in a form. Cant figure out out to do this. I guess I have to gain control of the windows message loop in order to get the messages routed to the editor. How does one go about embedding a windows control using createwindowex and then getting messages to the control. Or should a create a new lcl component? ---------------------------------------------------------------------- AlexTP · 2017-09-25 11:38 ATSynEdit is written for new text editors http://wiki.freepascal.org/ATSynEdit ---------------------------------------------------------------------- Phil · 2017-09-25 13:41 Quote from: chucky on September 24, 2017, 11:54:32 pmOr should a create a new lcl component? Wrapping the Scintilla dynamic library in an LCL control would be a good way to maximize its potential usefulness. Your LCL control could then installed in Lazarus and used in the form designer. You also have the possibility of adding support for Mac (Cocoa widgetset) and Linux (Qt widgetset):  http://www.scintilla.org/ScintillaDoc.html See the LCL implementation on Win32 of similar controls like TCustomMemo (immediate ancestor or TMemo) in files win32wsstdctrls.pp, etc. For a fairly simple example of an LCL control with Cocoa and Qt implementations, see TWebBrowser here: https://macpgmr.github.io/MacXPlatform/lclwebbrowser-src.zip ---------------------------------------------------------------------- engkin · 2017-09-25 13:56 I vaguely remember this: http://forum.lazarus.freepascal.org/index.php/topic,26331.0.html