delphi3000.com - the free delphi knowledge platform
delphi3000.com - the free delphi knowledge platform
Have a look at your member-status

connecting people's knowledge


  - Recent ArticlesRSS feed for Recent Articles on delphi3000.com
  - List of All Articles
  - Top Viewed Articles
  - Articles (+Attachem.)
  - Articles Of Interest
  - Categories
  - Top Uploader
  - Search
  - Index

  - My Home
  - Submit an Article
  - My Articles
  - My Personal Data
  - My Bookmarks
  - Activities
  - Login/Logout

  - Sign Up
  - Why Sign Up
  - Newsletter

  - Press
  - Advertise

  - Contact
  - Feedback



Community
Borland
ClubeDelphi
Dr. Bob
UK-BUG
Delphi Meetings
Planeta Delphi








Share this article with friendsShare this article with friends
Rate this articleRate this article - to keep the quality of delphi3000.com !
Comment this article or read through previous comments (3)


A Gardener's Guide To The Tree View: Part IIGo to Ghannodahn Kirrel's websiteComponent available for this articleFormat this article printer-friendly!Bookmark function is only available for registered users!
Grooming Your Tree
Product:
Delphi 4.x (or higher)
Category:
VCL-General
Skill Level:
Scoring:
Last Update:
04/10/2001
Search Keys:
delphi delphi3000 article borland vcl code-snippet TreeView VCL Kirrel Tutorial
Times Scored:
2
Visits:
6847
Uploader: Ghannodahn Kirrel
Company: RealityCheck Studios
Reference: The Infinity Citadel
Component Download: http://www.icitadel.com/tech_resource/articles/downloads/treeviewdemo2.zip
 
Question/Problem/Abstract:
What are the general properties and methods of the TreeView and TreeNode objects, and what effects/purposes do they serve?
Answer:



This is the second installment in the Gardener's Guide to the TreeView.  Advancing on what we learned in Part I, adding items to the TreeView, this new tutorial project presents the user with a form that publishes at runtime a wide variety of navigation and manipulation properties and methods of TTreeView, TTreeNodes and TTreeNode.

In detail, the following items are covered:

TTreeView
   Methods
      AlphaSort
      FullCollapse
      FullExpand
      LoadFromFile
      SaveToFile
   Properties
      AutoExpand
      HideSelection
      HotTrack
      ReadOnly
      ShowLines
      ShowRoot
      TopItem

TTreeNodes
   Methods
      Add
      AddFirst
      AddChild
      AddChildFirst
   Properties
      Count
      Items

TTreeNode
   Methods
      AlphaSort
      Delete
      DeleteChildren
      Collapse
      Expand
      GetFirstChild
      GetNextSibling
      GetNextChild
      GetNext
      GetNextVisible

Of particular note is the LoadFromFile and SaveToFile functionality of the TTreeView class.  A sample TreeView is included in the zip file with an RTV extension.  You can play around with creating your own TreeViews and save them for later use.

This tutorial has an advantage in that it not only describes in fair detail the purpose of each property and method in code comments, but also provides you with effectively a property editor for the TreeView.  Future parts of this tutorial will expand on that concept, and will delve into topics beyond the TreeView, though the core subject matter will remain constant.

I hope that these tutorials are of use to readers and programmers.  If you have any questions or comments about them, feel free to e-mail me at ghannodahn@icitadel.com.  The third part of this tutorial will incorporate a system to load data from a database table and populate the TreeView from it, or write the contents to a table.





Please rate this article!
Skill level:
BeginnerExpert

Useful:
No!Very!

Overall rating:
PoorExcellent



Comments to this article
Write a new comment
component download
    Kurt Mueller (Sep 13 2000 4:30AM)

can't download from your IP-Adress
'Page not found'
Kurt
Respond

RE: component download
Ghannodahn Kirrel (Sep 13 2000 8:46AM)

I have moved the source downloads to a full-time web server.  This should alleviate any difficulties in downloading the components.  My sincerest apologies for the trouble.

"The line between genius and insanity is measured by success."
Respond

RE: RE: component download
Miguel Angel Garcia Moreno (Nov 22 2004 3:31PM)

You can download from:

http://www.icitadel.com/nwo/technical_list.asp
Respond














 
Sign up to consume product discounts for Bronze memberships !

read more


   


  Community Ad of
M. Maes
 
   














 







     
  Copyright © 2000 - 2007 delphi3000.com - All rights reserved. Terms of use. || Privacy
delphi3000.com is a service by bluestep.com IT-Services GmbH (Vienna)