Is anybody going to comment on this please?
The TV Action property may well have a value expanded or collapsed, but that is totally useless when there is no AfterSelect event generated by clicking on the Plus/Minus symbol.
Strangely, whilst I've used TVs before, I've never been in an open/closed imagery scenario before as an author, so this is a bit of an uknown to me. I dug out my old XP latop. Hmm. Looks like Plus/Minus has always been a bit of a hole in the visual paradigm, for example in XP WE, using Plus's to display a child folder and then selecting the child leaves the parent shown closed, whereas selecting the parent, then the child leaves both shown open. Isn't that just wonderfully consistent from the user's view? The latter is visually correct.
So are Plus/Minus symbols just a historical problem? Have I got that right?
Also, just relying on ImageIndex and SelectedImageIndex to implement visual indications of open/closed folders isn't adequate. Selecting a child causes the parent, which by anybody's definition is still open, to be shown as closed because it is no longer selected. No. It is still open. You are looking inside it. That is the wrong action.
What about the following workaround for that latter problem? On selecting a node, I should set all ImageIndex-s of the parents chain to the open image, save the index of the selection, then on the next selection use the saved index to return that node and all it's parents to the closed image (except on the first selection) as well as performing the open indications and index saving. I'll give it whirl anyway.
Edit : Whirl successful!
Cheers.