Jump to content

TreeView expand branch


david_navigator

Recommended Posts

Let's imagine I have a tree view - The World, then Continents, then countries, then towns - example below

The 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)

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...