Pages bounds not adjusted in TCustomNotebook when switching Multiline or ShowTabs
Original Reporter info from Mantis: cobines
-
Reporter name:
Original Reporter info from Mantis: cobines
- Reporter name:
Description:
When switching Multiline and/or ShowTabs after adding some tabs the pages (or maybe just the page that was active during the switch) don't have their bounds recalculated to the possibly new size of the client area, which results in page being drawn over the header.
I think there should be additional calls to TWin32WSCustomNotebook.AdjustSizeNotebookPages added when adding and removing pages and when updating properties.
Attached proposed solution.
Steps to reproduce:
Run attached example, you should see drawing artifacts like on pictures attached.
Mantis conversion info:
- Mantis ID: 18317
- OS: Windows XP
- OS Build: SP3
- Build: 28822
- Platform: Win32
- Version: 0.9.31 (SVN)
- Fixed in version: 0.9.29 (SVN)
- Fixed in revision: 28861 (#acf7b58d)
- Target version: 0.99.0