Recent

Author Topic: Add Function to a Form?  (Read 2718 times)

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1120
  • Professional amateur ;-P
Re: Add Function to a Form?
« Reply #15 on: March 23, 2021, 07:00:44 am »
Hey JuhaManninen,

No, actually they are published, exactly for the streaming system.

Holy smokes, Batman!! It now hit me, that this was what I was suppose to think instead of protected. Thanks JuhaManninen.

I had this bad feeling in the back of my mind that somewhere in time I had this burning question that I needed to know in what of the 4 levels(private, protected, public or published) did the auto inserted component code fall under and I now remember that it was published. I then also felt quite frustrated that I could not add my own code to that protected are that doesn't have published at the top of it. But I guess that's because I didn't quite understand the rules of published at the time.
My brain is really and royally effed up and in a state of mushiness!!! I needed JuhaManninen to stimulate my poor neurons to fire up the path to that long lost conclusion, argh!!

Thank you all for jogging my poor memory!!

Cheers,
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4467
  • I like bugs.
Re: Add Function to a Form?
« Reply #16 on: March 25, 2021, 08:25:22 am »
Heh :)
For more brain activity you should study RTTI.
It is used for component streaming and also a lot in the form designer and the object inspector with its property editors.
It is actually a sophisticated system, but also complicated as you can notice by studying the code.
Mostly Lazarus trunk and FPC 3.2 on Manjaro Linux 64-bit.

Gustavo 'Gus' Carreno

  • Hero Member
  • *****
  • Posts: 1120
  • Professional amateur ;-P
Re: Add Function to a Form?
« Reply #17 on: March 29, 2021, 09:11:25 pm »
Hey JuhaManninen,

For more brain activity you should study RTTI.

Now you're taking the mick :D Please have mercy on this old man's brain :P

But it's a very good suggestion, thanks !!

Cheers
Gus
Lazarus 3.99(main) FPC 3.3.1(main) Ubuntu 23.10 64b Dark Theme
Lazarus 3.0.0(stable) FPC 3.2.2(stable) Ubuntu 23.10 64b Dark Theme
http://github.com/gcarreno

 

TinyPortal © 2005-2018