Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-06

Call abstract method in SynEdit

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

ZeelandNet Webmail

Hi,

Working on a project with SynEdit gives
me a call to an abstract method in SynEdit.pp paintlines on line 3836

attr := fHighlighter.GetTokenAttribute;

Any idea what could be
causing this? I tried by assigning a highlighter to the component, but it should just work fine without it as well. When I try an empty project then everything works just fine.

Regards, Darius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20110623/887c7bbb/attachment.html>

Reply by email

Martin
to Unknown author
Show quoted text 11 lines
Hi, Working on a project with SynEdit gives me a call to an abstract method in SynEdit.pp paintlines on line 3836 attr := fHighlighter.GetTokenAttribute; Any idea what could be causing this? I tried by assigning a highlighter to the component, but it should just work fine without it as well. When I try an empty project then everything works just fine.
What have you set as Highligther (Synedit.Highlighter := xxxxx) ?

It seems the Highlighter you use, does not implement all the required methods.

Some background on writing a highlighter:
http://wiki.lazarus.freepascal.org/SynEdit_Highlighter

Reply by email

Unknown author
to Martin

Hi Martin,

Show quoted text 8 lines
> Any idea what could be causing this? I tried by assigning a > highlighter to the component, but it should just work fine without it > as well. When I try an empty project then everything works just fine. What have you set as Highligther (Synedit.Highlighter := xxxxx) ? It seems the Highlighter you use, does not implement all the required methods.

I found that there was a highlighter set somewhere in the code (I'm porting a delphi project). You're conclusions are right, it's not implementing everything properly. For now I have disabled the highlighter all together.

Some background on writing a highlighter: http://wiki.lazarus.freepascal.org/SynEdit_Highlighter

Thanks for the tip! I will use this once I'll try to enable the highlighter again.

Regards, Darius

Reply by email