Welcome, Guest
Username: Password: Remember me
Discussions for CodeTyphon Object Pascal Programming Language
  • Page:
  • 1

TOPIC:

Custom component properties do not saved 1 year 3 months ago #17974

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 102
  • Thank you received: 0
Dear colleagues, could you tell me how to create components with collections among their properties?

I'm making a visual component "Oscilloscope". This component has a "Channels" property. I made these "channels" as TCollectionItem and put them in the collection. In the IDE in the component inspector, everything is displayed correctly, channels are added, removed, etc., but the properties of only the first added channels are saved! If you change the properties in an existing channel, they are visually displayed, but everything is compiled with the same, unchanged property values! And nothing changes in the form file either.

What needs to be done so that changes made in the component inspector are saved?

Warning: Spoiler!

Please Log in or Create an account to join the conversation.

Last edit: by Roman.

Custom component properties do not saved 1 year 3 months ago #17975

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1114
  • Thank you received: 165
Check the code in
packages_pl\pl_ECControls\source\echeader.pas
packages_pl\pl_ExControls\source\TplGalleryUnit.pas
PilotLogic Core Programmer
The following user(s) said Thank You: Roman

Please Log in or Create an account to join the conversation.

Custom component properties do not saved 1 year 3 months ago #17976

  • Roman
  • Roman's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 102
  • Thank you received: 0
Thanks a lot!
I didn't implement the GetOwner function in the "channel" and that was the problem. Thanks to your advice, I fixed the error!

Please Log in or Create an account to join the conversation.

Custom component properties do not saved 1 year 3 months ago #17977

  • Matis A.
  • Matis A.'s Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1114
  • Thank you received: 165
Have fun...
PilotLogic Core Programmer

Please Log in or Create an account to join the conversation.

  • Page:
  • 1