david_navigator Posted May 7, 2018 Share Posted May 7, 2018 Let's imagine I have a tree view - The World, then Continents, then countries, then towns - example belowThe World --Europe ----France -------Paris ----England -------London -------Manchester ----Spain --Asia -----China -----Malysia -----Thailand --North America -----Texas -----Florida --South America --Australasia --Antarctica however when the tree view is first presented to the user, I want just the first two levels expanded and the rest collapsed e.g The World [+]Europe [+]Asia [+]North America [+]South America [+]Australasia [+]Antarctica Is there an inbuilt method to do this, or is it a case of iterating through the nodes and expanding the appropriate one ? If the later - how do I do that - I can't see anything like a TUniTreeNode.expand method ? Thanks David (Version 1.0.2.1450 Trial) Quote Link to comment Share on other sites More sharing options...
Sherzod Posted May 7, 2018 Share Posted May 7, 2018 Hi, You can use Expanded property of TUniTreeNode Quote Link to comment Share on other sites More sharing options...
david_navigator Posted May 7, 2018 Author Share Posted May 7, 2018 Brilliant. Many thanks. Easy when you know how 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.