TPage.TabVisible is not implemented properly
Original Reporter info from Mantis: luizamerico
-
Reporter name: Luiz Americo
Original Reporter info from Mantis: luizamerico
- Reporter name: Luiz Americo
Description:
There are some problems when using TPage.TabVisible property:
- When setting TabVisible to false in at least two pages, the remaining pages get wrong page handles. This occurs because of use of PageIndex instead of VisibleIndex when removing the page handle in TCustomNoteBook.AddRemovePageHandle
- The ActivePage/PageIndex of the parent Notebook was not being updated after changing the property.
Attached is a test program and a patch that fixes both issues.
Luiz
Mantis conversion info:
- Mantis ID: 7349
- OS: Windows
- OS Build: XP
- Platform: i386
- Version: 0.9.17 (SVN)
- Fixed in version: 0.9.21 (SVN)
- Fixed in revision: 10519 (#10aecd20)
- Target version: 0.9.22