[Lazarus] Adding and hiding TPageControl tabs

Martin lazarus at mfriebe.de
Thu Sep 26 16:39:01 CEST 2013


On 26/09/2013 15:32, Mark Morgan Lloyd wrote:
> I know that this should be an FAQ, but Google isn't being much help.
>
> I've got a TPageControl with a single design-time page, on which 
> there's a Synedit which is used (a) as a splash when there's no other 
> tabs and (b) as a template for design-time properties.
>
> I can add an extra tab and put a Synedit in it under program control, 
> and load it with text. What I can't do is hide the original (index 
> zero) tab: if I do, the Synedit vanishes:

PageControl in 1.0 has many bugs.

Please try 1.0.13 not released, you can get from svn fixes branch using svn.
Or 1.3 (also not released)
Or 1.1.99 from sourceforge

1.0.13 should be stable.

The other 2 are work in progress




More information about the Lazarus mailing list