Recent

Author Topic: ATSynEdit Adapter  (Read 1630 times)

polpero

  • Full Member
  • ***
  • Posts: 116
ATSynEdit Adapter
« on: March 23, 2019, 07:36:04 pm »
Hi...

I used to be able to compile a program and now it doesn't... strange. Here is the situation:

To a ATSynEdit editor I am adding an EControl adapter

Code: Pascal  [Select][+][-]
  1.  Adapter:= TATAdapterEControl.Create(Self);
   

but compilation stops with message:

Code: Pascal  [Select][+][-]
  1. atsynedit_adapter_econtrol.pas(651,43) Error: Incompatible types:
  2.    got "<procedure variable type of procedure(TObject;LongInt;LongInt) of object;Register>"
  3.    expected "<procedure variable type of procedure(TObject;LongInt) of object;Register>"

hilighting the line:
 
Code: Pascal  [Select][+][-]
  1. TATSynEdit(AEditor).Strings.OnLog:= @DoChangeLog;


//////////
Before messing around in AT's code I'm asking if anyone else gets such behavior?

thanks

I'm using version 2.0 on Windows
     

jamie

  • Hero Member
  • *****
  • Posts: 6090
Re: ATSynEdit Adapter
« Reply #1 on: March 23, 2019, 07:53:52 pm »
Its possible you have a conflicting case of Objects..
if you have included the Objects unit, you may want to place that at the start of the USES list so that
it will be the last one the compiler looks at.

Units in the USES list are backwards as for scope searching.

the same hold true if you have places other units at the end of the list recently that just may be
conflicting.

 Other than that, It could be something else all together but if it use to compile and now it does not, something
obviously has changed. >:(
The only true wisdom is knowing you know nothing

AlexTP

  • Hero Member
  • *****
  • Posts: 2383
    • UVviewsoft
Re: ATSynEdit Adapter
« Reply #2 on: March 23, 2019, 08:54:34 pm »
    property AdapterForHilite: TATAdapterHilite read FAdapterHilite write FAdapterHilite;
not "Adapter" like in your code.

AlexTP

  • Hero Member
  • *****
  • Posts: 2383
    • UVviewsoft
Re: ATSynEdit Adapter
« Reply #3 on: March 23, 2019, 08:57:52 pm »
1- do you see this error in app/demo_adapter_econtrol?
2- try to delete folder "lib" in atsynedit + atsynedit_ex pcks.

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit Adapter
« Reply #4 on: March 23, 2019, 09:03:19 pm »
@Alextp

yes error is found also in the demo
and i did delete the lib with no better results

il looks as if the doChange procedure has been re-written but not fully integrated...

AlexTP

  • Hero Member
  • *****
  • Posts: 2383
    • UVviewsoft
Re: ATSynEdit Adapter
« Reply #5 on: March 23, 2019, 09:06:13 pm »
i use the Github version (Github @Alexey-T). you may use OnlinePM version which is not ok?

polpero

  • Full Member
  • ***
  • Posts: 116
Re: ATSynEdit Adapter
« Reply #6 on: March 23, 2019, 10:20:03 pm »
Yep!

Thanks Alex

should always check your GitHub first!


 

TinyPortal © 2005-2018