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 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,112
    • Issues 2,112
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 14
    • Merge requests 14
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • 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
  • #38403
Closed
Open
Issue created Jan 26, 2021 by FPC Admin account@fpc_adminOwner

TTabControl.IndexOfTabAt is always -1, with a hack p.y:=-5 it works

Original Reporter info from Mantis: Alextp2
  • Reporter name: CudaText man_

Description:

demo attached.
it shows PageControl - for it, mouse move shows OK tab index in caption.
if shows TabControl - for it, mouse move shows always -1 index in caption.

if you make hack from
https://bugs.freepascal.org/view.php?id=27467
and set
p.y:= -5
before the
n:=TabControl1.IndexOfTabAt(p);
then it will work.

Mantis conversion info:

  • Mantis ID: 38403
  • Build: 64415
  • Platform: Win10 x64
  • Version: 2.1 (SVN)
  • Fixed in version: 2.2
  • Fixed in revision: 64424 (#ed6e0875),64436 (#dfa3fe0e),64677 (#37d6fcb8)
  • Monitored by: » @martin_frb (Martin Friebe)
  • Target version: 2.2
Assignee
Assign to
Time tracking