tcoates Posted May 11, 2017 Share Posted May 11, 2017 In our program we have a treeview (TUniTreeview) and the contents of which are added when the program loads.... tempNode2 := NavTree.Items.Add(nil, 'Recordings'); tempNode2.ImageIndex := 1; tempNode2.SelectedIndex := 1; but ... only want certain nodes in the treeview to appear in expanded form, but not others when the page is initially displayed to the user. ie .. I tried something like... NavTree.Items[1].Expand(True) but that did not work. Can someone give me a hand on what to do here? Thanks. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 12, 2017 Share Posted May 12, 2017 Hi, In our program we have a treeview (TUniTreeview) and the contents of which are added when the program loads.... Can you make a simple testcase for this?! Best regards, Quote Link to comment Share on other sites More sharing options...
tcoates Posted May 12, 2017 Author Share Posted May 12, 2017 Attached demo program. The demo program I created as built in steps. First I populate the treeview via button onclick event, and ti worked as expected. Then I added code to populate treeview during the form create event and that is when node 'B' does not expand. TestTreeView1.zip Quote Link to comment Share on other sites More sharing options...
Jean-Marc Kiener Posted May 12, 2017 Share Posted May 12, 2017 See: http://forums.unigui.com/index.php?/topic/7548-tunitreeview/ Quote Link to comment Share on other sites More sharing options...
allenchow Posted September 26, 2017 Share Posted September 26, 2017 Only one item can be expanded inside a timer. Quote Link to comment Share on other sites More sharing options...
allenchow Posted October 11, 2017 Share Posted October 11, 2017 I mean you can't expand more than one node inside a timer event Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.