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,118
    • Issues 2,118
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 15
    • Merge requests 15
  • 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
  • #39708
Closed
Open
Issue created Apr 12, 2022 by K H@d7_2_laz

Windows, virtual listview, "Item" in "Edited" becomes to be wrong when selection changed during editing

  • Lazarus/FPC Version: <Lazarus 2.2.0 (rev lazarus_2_2_0) FPC 3.2.2 x86_64-win64-win32/win64__>
  • Operating System: <Windows 10>
  • CPU / Bitness: <64>

What happens

When - during an inplace editor is open - another item is clicked, then "Item" within the "OnEdited" event points to the wrong item. It does point to the newly selected item and not to the item that just has been edited.

What did you expect

That "Item" within the "Edited" event preserves the object that is just being to be edited.

Just as the regular listview does (test project is attached)

Steps to reproduce

listview_virtualMode_prob_Edited_at_selectionchange.zip

listview_regular_no_prob_Edited_at_selectionchange.zip

Run the virtualmode test project attached, it's a step-by-step-instruction herein

See also

Forum discussion in https://forum.lazarus.freepascal.org/index.php/topic,59024

Edited Apr 13, 2022 by Werner Pamler
Assignee
Assign to
Time tracking