RTollison 0 Posted December 13, 2024 (edited) NOTE: Found issue. No replies needed. Except for scolding.... I had a project that was working with the VST and checkboxes showing up. i had to move project to a new pc and get the virtual components installed. i can now compile project without errors but lost something along the way. i used this code to add the nodes with a check box: function AddVSTObject(AVST: TCustomVirtualStringTree; ANode: PVirtualNode; AObject: TObject): PVirtualNode; var Data: PClassRoomData; begin Result:=AVST.AddChild(ANode); Result.CheckType := ctTriStateCheckBox; AVST.ValidateNode(Result,False); Data:=AVST.GetNodeData(Result); Data^.FObject:=AObject; end; It will display the tree with all the info but the checkboxes do not display. i checked the properties of the vst and found nothing related to checkboxes. so any ideas as to what i could check to get the checkboxes to show up? Edited December 13, 2024 by RTollison Share this post Link to post
RTollison 0 Posted December 13, 2024 old program shows the checkbox but new compiled program with gui changes not related to tree does not show checkbox Share this post Link to post
RTollison 0 Posted December 13, 2024 well crap, now i find the miscoptions and checksupport. sorry for post and thanks Share this post Link to post
David Hoyle 68 Posted December 16, 2024 You should be using the AVST.CheckType[ANode] := ctTriStateCheckBox property rather than alter the node structure directly otherwise the VTV control cannot perform related functions associated with check boxes. Share this post Link to post