Skip to content

GitLab

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    • Menu
    Projects Groups Snippets
  • Sign up now
  • Login
  • Sign in / Register
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 2,082
    • Issues 2,082
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 10
    • Merge requests 10
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • FPC
  • Lazarus
  • LazarusLazarus
  • Issues
  • #39478
Closed
Open
Created Nov 19, 2021 by Andreas F@afriess

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

Edited Nov 19, 2021 by Andreas F
Assignee
Assign to
Time tracking