Recent

Author Topic: QUESTION: Why are the TreeNodes disappearing?  (Read 557 times)

Marion

  • Full Member
  • ***
  • Posts: 123
QUESTION: Why are the TreeNodes disappearing?
« on: May 06, 2021, 12:35:44 am »
Does anyone know why the treenodes in my treeview are getting freed when I collapse the tree? I don't have any code that is doing this. I thought it might be my treenode.data going out of scope but those are all now global variables, so that can't be it.
Thank you,
Marion
(A recovering Windows programmer.)

Marion

  • Full Member
  • ***
  • Posts: 123
Re: QUESTION: Why are the TreeNodes disappearing?
« Reply #1 on: May 06, 2021, 12:45:30 am »
This is strange. I finally deleted the treeview control and added a new one. The nodes now stopped disappearing. I did have a TTreeFilterEdit control (which I deleted) connected to the TreeView and maybe that was "hiding" the nodes?
Thank you,
Marion
(A recovering Windows programmer.)

 

TinyPortal © 2005-2018