开发者

TStringAlignGrid from D6 to DelphiXE

开发者 https://www.devze.com 2023-03-03 20:32 出处:网络
Has anyone been able to convert the StringAlignGrid by Andreas Hörstemeier from Delphi 6 (his latest release) to work under Delphi XE?

Has anyone been able to convert the StringAlignGrid by Andreas Hörstemeier from Delphi 6 (his latest release) to work under Delphi XE?

I have several projects that use StringAlignGrid extensivly and I would rather no开发者_JS百科t convert to another grid if possible.

Steve...


The source is freely available, so if you need to get this working straight away, you could just attempt to do it yourself.http://www.hoerstemeier.com/files/grid21.zip

I've quickly loaded the source and it's not that hard to do. I've got a version that compiles here, but I don't really have the time to test it. It took me about 3 minutes to get it working, so I suggest you just do what I just did:

  • ah_def.inc needs to be changed add XE; Otherwise you'll get a lot of code that's meant for pre-delphi 3. That fixes most of the compiler errors.
  • there's a conditional define in ah_def.inc that defines ShortString. If it's defined, you'll get String instead of ansistring.
  • A couple of PString variables that need to be changed to PAnsiString (unless you want to have unicode)
  • two PChar's that need to be PAnsiChar.

If you do make it work, don't forget to send your version to Andreas.


I faced this problem in the past for another component. Contacting the author was the solution : I received the sources for free accepting a confidentialty agreement.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号