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,104
    • Issues 2,104
    • 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
  • #38084
Closed
Open
Issue created Nov 15, 2020 by FPC Admin account@fpc_adminOwner

TTreeView calls OnCollapsing and OnCollapsed during Control destruction and node clearing

Original Reporter info from Mantis: jamie @jamie
  • Reporter name: jamie philbrook

Description:

The TreeView is calling these events during destruction or clearing regardless of the expanded state.

if a tree is not expanded the events get called anyways and even if they were expanded they should not be getting called.

Delphi does not do this, when destroying the control these events are not called.

Steps to reproduce:

Drop a Treeview on the form. implement the OnCollapsed or OnCollapsing with some notification, for example a BEEP;

Free the control or just exit the app, you will get a beep and it does not matter if the tree is expanded or not..

During the events, you can test the NODE.Deleting and it is marked for deleting.

Should the events really get called at this time ?

I tested on Windows but I think it could also be happening on others too.

Mantis conversion info:

  • Mantis ID: 38084
  • Build: all
  • Version: 2.1 (SVN)
  • Fixed in revision: r64142 (#2a0df745), r64855 (#a1aea6a2)
  • Target version: 2.2
Assignee
Assign to
Time tracking