Setting TabVisible := False on TPageControl will render content of following tabs invisible
Original Reporter info from Mantis: MIS5
-
Reporter name:
Original Reporter info from Mantis: MIS5
- Reporter name:
Description:
If you have a TPageControl with e.g. 5 pages then:
Main issue:
And you either runtime or designtime set TabVisible:=False of the middle tab - then the content of the latter two tabs is invisibe when running the program (problem does not manifest itself in he form designer)
Variation:
You can also see a related/same problem by setting all tabs in TPageControl TabVisible:=False - then entire content is gone even if AcivePageIndex is value
Steps to reproduce:
Create a new project with an empty form.
- Add a TPageControl with e.g. 5 pages.
- Add a button to each page with different captions.
- Either design time or runtime set TabVisible property of middle-tab to False.
- Now the content of the following pages (the buttons) are gone (at least not visible)
Additional information:
For big applications you may not always want all pages visible for all users at all times. Using TabVisible is one way to hide these. (I use it a lot, but this probably varies between developers and type of project)
I originally reported the issue here
http://forum.lazarus.freepascal.org/index.php/topic,41624.0.html