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
  • #34249
Closed
Open
Issue created Sep 11, 2018 by FPC Admin account@fpc_adminOwner

ItemHeight shrinked after first shown when TListBox.Style is OwnerDrawFixed

Original Reporter info from Mantis: baldzhang @baldzhang
  • Reporter name: bald zhang

Description:

found this issue in #34223 (closed)
make a test program and reproduced, 1.8.4 and trunk version is the same.

Windows 10, 4k display, 192dpi

Form2 is created only once, ShowModal when Form1.Button1 click
the first time, ListBox drawing good, ItemHeight is (31)
then became to (20) everytime it shown.

because I run 1.8.4 with environment: __COMPAT_LAYER = "GdiDPIScaling DPIUnaware"
always got 96dpi, so not met this in PathEditor

another smaller problem: Form's Left and Top not scaled, at design-time(96dpi) they are (+300+200, Form1), at run-time(192dpi), should be (+600+400) but not.

Mantis conversion info:

  • Mantis ID: 34249
  • OS: Windows
  • OS Build: 10
  • Platform: win32
  • Version: 1.9 (SVN)
  • Fixed in revision: r59094 (#7bcf1cc5)
  • Target version: 1.10
Assignee
Assign to
Time tracking