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
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Lazarus Lazarus
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 2.1k
    • Issues 2.1k
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 6
    • Merge requests 6
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
    • Test cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FPC
  • LazarusLazarus
  • LazarusLazarus
  • Issues
  • #39478
Closed
Open
Issue 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