Hi Folks,
first time using VTV as VirtualStringTree with Checkboxes (CheckType=TriState)
User opens Form, VST is filled from a Database - 3 Levels deep
User can now check/uncheck Nodes as he wishes, with the State of the 2 higher-order nodes being set automagically (as it should be):
All Childnodes checked, "some" childnodes checked (This "Half-State"), no childnodes checked (See screenshot 1)
Now, only checks/unchecks on Level 3 are being saved back to the Database in Real-Time (I'm using the OnChecked-Event)
This works as it should
Now: Next day, user wants to continue, and after the VST is filled, i pull the already checked Level-3-Nodes from the Database.
I iterate over the nodes looking for my identifier, and when found do
Node^.CheckState:=csCheckedNormal;
Works as it should
BUT: The newly set CheckState of that Level-3-Node doesn't propagate back to its 2 higher-order Nodes
(Screen shot 2)
What am i missing?
It's not "vst.Refresh;" --> already tried that.