Recent

Author Topic: Help with Property/Component editors  (Read 3108 times)

PatBayford

  • Full Member
  • ***
  • Posts: 125
Help with Property/Component editors
« on: June 12, 2017, 12:44:54 am »
Some newbie help please, working on a project with a custom property editor, (it's a tutorial exercise via Delphi). So, I need access to the equivalent of IFormDesigner, or TFormDesigner, which live in the DsgnIntf unit in the Delphi universe. Anybody know where they hide in Lazarus, or do you folk not write custom editors?
Lazarus 1.8.0 FPC 3.0.2 SVN 56594 Windows 10 64bit (i386-win32-win32/win64)

HeavyUser

  • Sr. Member
  • ****
  • Posts: 397
Re: Help with Property/Component editors
« Reply #1 on: June 12, 2017, 08:15:25 am »
do a directory search inside the lazarus installation directory its hiding there somewhere.

wp

  • Hero Member
  • *****
  • Posts: 11830
Re: Help with Property/Component editors
« Reply #2 on: June 12, 2017, 09:03:56 am »
All the property/component editors are in (lazarus)/components/ideintf. Be prepared for some differences to Delphi.

avra

  • Hero Member
  • *****
  • Posts: 2514
    • Additional info
ct2laz - Conversion between Lazarus and CodeTyphon
bithelpers - Bit manipulation for standard types
pasettimino - Siemens S7 PLC lib

PatBayford

  • Full Member
  • ***
  • Posts: 125
Re: Help with Property/Component editors
« Reply #4 on: June 12, 2017, 09:56:57 pm »
Thanks for the help guys - I was not prepared for how different Lazarus is to Delphi under the hood - found the article and the necessary classes.Hopefully all will proceed to a peaceful conclusion.
Lazarus 1.8.0 FPC 3.0.2 SVN 56594 Windows 10 64bit (i386-win32-win32/win64)

PatBayford

  • Full Member
  • ***
  • Posts: 125
Re: Help with Property/Component editors
« Reply #5 on: August 21, 2017, 12:13:22 am »
So far so good, however, I now have an "Invalid type cast" error when the editors/s are invoked. How do I get to debug the editors? The instructions in the article are so vague as to be useless!
Thanking you all in advance  :)
Lazarus 1.8.0 FPC 3.0.2 SVN 56594 Windows 10 64bit (i386-win32-win32/win64)

howardpc

  • Hero Member
  • *****
  • Posts: 4144
Re: Help with Property/Component editors
« Reply #6 on: August 21, 2017, 12:31:13 am »
May be simplest to share compilable code that reliably produces the invalid typecast.
Hopefully someone can successfully debug it, post correct code and explain how they went about it. It's hard to give that explanation in the abstract.

PatBayford

  • Full Member
  • ***
  • Posts: 125
Re: Help with Property/Component editors
« Reply #7 on: August 21, 2017, 01:37:48 am »
May be simplest to share compilable code that reliably produces the invalid typecast.
Hopefully someone can successfully debug it, post correct code and explain how they went about it. It's hard to give that explanation in the abstract.
Will have to give that some thought howard - fortunately, the need is not urgent
Lazarus 1.8.0 FPC 3.0.2 SVN 56594 Windows 10 64bit (i386-win32-win32/win64)

 

TinyPortal © 2005-2018