Sign in Join

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

Mailing lists / lazarus / 2012-12

Synmemo: problem adding OnStatusChange event handler

3 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Reinier Olislagers

Synedit newb here...

Win, Laz trunk, FPC x86 2.7.1

uses
...SynEdit,SynMemo,SynEditTypes,SynHighlighterIni

With a synmemo, trying to add an OnStatusChange event, I get "Unable to create method" and
C:\Development\lazarus_fpctrunk\components\synedit\synedit.pp(325,24) Error: method type definition not found
for TStatusChangeEvent in the line

  TStatusChangeEvent = SynEditTypes.TStatusChangeEvent;

Added the synedit package to the project requirements - same error message. Laz PPU files gives
SynEditTypes in
c:\development\lazarus_fpctrunk\components\synedit\synedittypes.pp

Adding
$(LazarusDir)\components\synedit;
to the project Other unit/-Fu files doesn't help... or rebuilding Lazarus.

What am I doing wrong?

Thanks,
Reinier

Reply by email

Mattias Gaertner
to Reinier Olislagers
Show quoted text 13 lines
Synedit newb here... Win, Laz trunk, FPC x86 2.7.1 uses ...SynEdit,SynMemo,SynEditTypes,SynHighlighterIni With a synmemo, trying to add an OnStatusChange event, I get "Unable to create method" and C:\Development\lazarus_fpctrunk\components\synedit\synedit.pp(325,24) Error: method type definition not found for TStatusChangeEvent in the line TStatusChangeEvent = SynEditTypes.TStatusChangeEvent;

Bug. I fixed it in trunk.

Mattias

Reply by email

Reinier Olislagers
to Mattias Gaertner
Mattias Gaertner wrote 19 lines
On Sun, 16 Dec 2012 11:02:38 +0100 Reinier Olislagers wrote: > Synedit newb here... > > Win, Laz trunk, FPC x86 2.7.1 > > uses > ...SynEdit,SynMemo,SynEditTypes,SynHighlighterIni > > With a synmemo, trying to add an OnStatusChange event, I get "Unable to > create method" and > C:\Development\lazarus_fpctrunk\components\synedit\synedit.pp(325,24) > Error: method type definition not found > for TStatusChangeEvent in the line > TStatusChangeEvent = SynEditTypes.TStatusChangeEvent; Bug. I fixed it in trunk.

Thanks, it works now ;)

Reply by email