How do I save a Treeview together with its StateIndex values used for check box immages in the tree

My application had a TTreeViewcontaining Text only.  With this I simply used SaveToFile and LoadFromFile to save and retrieve the Tree.  I now added some checkboxes to the TreeView using  StateIndex to point to the associates immages for the checkboxes.  How can I save the TreeView now together with the StateIndex values as the SaveToFile and LoadFromFile methods only save the text and not the StateIndex values?
Who is Participating?
HenryM2Author Commented:
Thanks the solution from the link did the trick
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.