How to remove all nodes, including VirtualStringTree descendants, in the event handler closes the form containing VirtualStringTree ?
How to remove all nodes, including VirtualStringTree descendants, in the event handler closes the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To delete all nodes from a
TVirtualStringTreeor its descendant use theClearmethod (but note that theClearmethod is virtual and can be overriden by some descendant. However, the implementer should keep the original purpose of this method, which is clearing the tree. If not, then it’s just a wrong implementation in my view: