[Lazarus] TAChart Localization

Werner Pamler werner.pamler at freenet.de
Wed Dec 16 14:30:12 CET 2015


Am 13.12.2015 um 13:26 schrieb Maxim Ganetsky:
> It does not look nice. You are hacking around const specifier.
Hacking? At least in good company:

excerpt from SysUtils:
     constructor Exception.CreateRes(ResString: PString);
     begin
       inherited create;
       fmessage:=ResString^;
     end;

Isn't this the same? If the address of the resource string is fed into 
the CreateRes constructor then the exception will be raised with the 
translated string.





More information about the Lazarus mailing list