Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • 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,102
    • Issues 2,102
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 9
    • Merge requests 9
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • 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
  • #36046
Closed
Open
Issue created Sep 04, 2019 by FPC Admin account@fpc_adminOwner

TTrackBar. Patch. For large ranges (Max - Min) and TickStyle = tsAuto (default) windows hang

Original Reporter info from Mantis: SergeAnvarov @SergeAnvarov
  • Reporter name: Serge Anvarov

Description:

Windows tries to draw all these ticks, causing itself to hang (don't answer for very long).
The decision is made as in Delphi: with a large range cancels auto drawing ticks.

Steps to reproduce:

In new empty application put TTrackBar on form and add:

procedure TForm1.FormCreate(Sender: TObject);
begin
  TrackBar1.Max := MaxInt;
end;

Additional information:

See https://forum.lazarus.freepascal.org/index.php/topic,46606.msg332560.html#msg332560

Mantis conversion info:

  • Mantis ID: 36046
  • OS: Windows
  • OS Build: Windows 7
  • Platform: Windows
  • Version: 2.0.4
  • Fixed in revision: 62125 (#e7174e7a)
Assignee
Assign to
Time tracking