Hi all.
I'm an absolute Lazarus/Free Pascal beginner, so this might all be the result of some fundamental misunderstanding.
I'm trying to convert a Delphi 6 project to Lazarus. The two main visual components are a TVirtualStringTree and a TVirtualDrawTree.
In my project I created my own version of the TVirtualTreeHintWindow, and this is where I'm having problems at the moment. The thing is, it appears that many of the internal string references in VirtualTrees.pas have been changed from UnicodeString (where UnicodeString is defined as "UnicodeString = WideString") to String in the Lazarus port.
Looking at the Lazarus Wiki documentation, it seems "String" is synonymous with AnsiString with the {$H+} compiler switch (else ShortString), and looking at the Compiler Options for my project this is on by default.
So this leaves me with two questions:
1) Am I correct in understanding that the Lazarus-ported VirtualTrees are AnsiString only?
2) If not, how do I go about passing my WideString data to the functions/event handers that now expect AnsiString parameters?
Thank in advance. I don't mean to be disparaging in anyway, I can only imagine the amount of work that was involved in translating the component, and I commend the authors highly for that.