On 17/06/2013 23:30, Martin wrote:
From memory:I would (if I had time) start a new component, not inheriting, but starting on a copy of SynEditOr even throwing out most of it, except Keeping- the textbuffer (keep bidi-view, but get rid of folding and trim space [those are wrappers around the textbuffer])- LazSynSurface (which paints the text) - caret - create a markup module for highlight (must also store the color info) then copy stuff for selection and clipboard, if neededSome of that code is still under redesign in SynEdit, so that may mean some maintenance later.
Attached is what it takes to start. Just a rough draft, but it already draws the text. And has the buffer.
Add your own keyboard...Also needs to add support for doublewidth (Japanese) chars (that is just a wrapper for the buffer.
Search SynEdit for ScreenCaret (the actual | ) and caret...There will be some issues, because some things expect a "TSynEdit" and this is not ....
pack_syn_cmd.rar
Description: Binary data
-- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus