[Lazarus] Custom component: cannot make Items: TStrings

Michael Van Canneyt michael at freepascal.org
Sat Sep 30 21:44:23 CEST 2017



On Sat, 30 Sep 2017, Alexey via Lazarus wrote:

> Hi. I added to ATTabs prop Items: TStrings. It has getter/setter. It has 
> registering in IDE.
>
> - in designer, OI can set Items and tabs appear
>
> - if i run app, tabs dont appear- ??
>
> - if I restart IDE, app's LFM looses Items- ??
>
> https://github.com/alexey-t/attabs

Remove the clear statement in the setter ?

It clears FTabItems, which you just assigned. That's pointless.
Also, if FTabItems equals AValue, it will clear the AValue.

Michael.


More information about the Lazarus mailing list