On 21/04/2010 19:04, Lee Jenkins wrote:
Martin wrote:
On 21/04/2010 18:34, Lee Jenkins wrote:
Hi all,
I was curious about Lazarus' version of SynEdit and if the Delphi
examples are more or less still relevant to coding against the LCL
version?
Not sure which "delphi examples"?
- Something that comes with lazarus, and I have overlooked?
- Something that comes with Delphi?
- Something from the originla SynEdit website/distribution?
- Something else?
I meant current Delphi examples. Well, relatively current as I don't
think the demos have been changed in quite some time, even with the
unicode version that is available now.
The SynEdit in Lazarus is based on something around Version 1.2 of
the original SynEdit. And the Lazarus version has since been heavily
modified.
Ouch!
From this I assume, that the examples are not part of lazarus, but from
some other source...
I need implement Completion proposal, AutoComplete, AutoCorrect and
Muti-Syntax.
There are classes for completion proposal (drop down) and afaik
Auto-complete (look at the syncompletion unit)
I don't think there currently is any AutoCorrect implementation
"Muti-Syntax." refers to syntax highlighting? Not sure what you mean?
Yeah for syntax. In Delphi SynEdit there is TSynMultiSyn where you
can use two different highlighters. This is important since the
editor will handle both XML and JavaScript within CDATA tag like
Adobe's MXML and MS's WPF markup, XAML.
The SynMultiSyn still exists in Lazarus. Not sure if anyone has used it
lately, or if it was tested.
But if bug reports are made, it will be fixed and maintained.
Otherwise, as for examples, how to add thinks to SynEdit. I wouldn't be
to sure examples that are not part of Lazarus will work out of the box.
There may still be similarities.
Syncompletion is used in SourceEditor, Syncompletion is also available
as a component on the component palette => so that should be a start
Martin
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus