Recent

Author Topic: SynEdit and SynMemo  (Read 7879 times)

Kamau

  • Jr. Member
  • **
  • Posts: 67
  • Old Delphi programmer
SynEdit and SynMemo
« on: January 23, 2013, 07:21:57 am »
I have just discovered the fantastic SynEdit and SynMemo and have three questions.

1. Is there any manual or FAQ for these?

2. What is the main difference between these two?

3. How do I use the SynPasSyn to take effect?

/Kamau
« Last Edit: January 24, 2013, 02:53:42 pm by Kamau »

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 10670
  • Debugger - SynEdit - and more
    • wiki
Re: SynEdit and SynMemo
« Reply #1 on: January 23, 2013, 02:18:30 pm »
1) Not really: http://wiki.lazarus.freepascal.org/SynEdit
For all else: Ask here.

2) They are 99% identical. You should use SynEdit. SynMemo has:
- less published properties (they exist, but are public or protected
- 2 wrappers: like you can use SynMemo.Append as short for SynEdit.Lines.Append
- 2 extra functions (rather slow) converting the x/y into a bytepos it the complete text

3) Assign it to the SynEdit.Highlighter property. In Object inspector. The SynPasSyn will be i the dropdown, IF you dropped one (or more) on the form.

Kamau

  • Jr. Member
  • **
  • Posts: 67
  • Old Delphi programmer
Re: SynEdit and SynMemo
« Reply #2 on: January 23, 2013, 04:21:06 pm »
Thanks I will check and report.

/Kamau

Kamau

  • Jr. Member
  • **
  • Posts: 67
  • Old Delphi programmer
Re: SynEdit and SynMemo
« Reply #3 on: January 23, 2013, 07:19:41 pm »
3) Assign it to the SynEdit.Highlighter property. In Object inspector. The SynPasSyn will be i the dropdown, IF you dropped one (or more) on the form.

Thanks, it is clear how it works.

And it works! :-)

/Kamau

 

TinyPortal © 2005-2018