TTabControl causes ELayoutException in Frames
- Lazarus/FPC Version: <Lazarus 2.3.0 (rev main-2_3-674-gdda96a38) FPC 3.2.2 i386-win32-win32/win64>
- Operating System: <Win10/64>
- CPU / Bitness: <64Bit>
What happens
Using a TTabControl in a Frame in Frame enviroment causes a ELayoutException (Tested with Win32 compiling)
Steps to reproduce
Use the attached sample programm and change the tabs TS_DUT1 to TS_DUT2 and reverse to produce a redraw.
Hints
With a Debugging-Lazarus i can see that the calculation in \lcl\include\tabcontrol.inc TTabControlNoteBookStrings.TabControlBoundsChange sets the bound new, but TabControl.ClientWidth calculates including the TabControlInternalBorder, so a resize is in a loop introduced.layoutproblem.zip