Re: How can I create group logic with using classes?

From: Bruce Roberts (ber_at_attcanada.net)
Date: 12/18/03


Date: Thu, 18 Dec 2003 11:34:27 -0500


"Arda Han" <arda@han.com> wrote in message
news:3fe1c8b0@newsgroups.borland.com...
> summary of my result is simple. Items have an ID and Parent ID for
> controling.
> For example 102 don't have a parent but 102.01 have a parent it is 102
>
> But I don't know how can I code it? And draw it on Treeview?

Each line in your list corresponds to a tTreeNode. Each period in the Id
indicates a level of indentation. To create the nodes you need code to find
the parent and then call the parent's AddChild method. Set the Text property
of the new node to the text that you want displayed.



Relevant Pages

  • Re: TreeView Bold Work Around Help
    ... > Custom Draw TreeView in VB.NET ... >> TreeView to a bold property, the bounds or rectangle that draws the node ... I have read all sorts of suggestions about making all the font ...
    (microsoft.public.dotnet.languages.vb)
  • Re: TreeView Adding Problem
    ... but I wonder why the TreeView is so slow. ... TTreeView.Items.Insertto insert that TTreeNode. ... TTreeNode.GetNext until you have the treenode you want (how you know ... If you must go the route of having a set of TTreeNode, an array is ...
    (comp.lang.pascal.delphi.misc)
  • Re: TreeView
    ... > yesterday I haven't ever used TreeView either, ... The nodes are a TTreeNode in the TTreeView.Items (which is a TTreeNodeS ... AddFirst, or AddChildFirst specifying the appropriate node to add to as ... a sibling or to add as a sibling child. ...
    (alt.comp.lang.borland-delphi)
  • Multicolumn - Treeview
    ... I'm trying to draw an additional column in a treeview. ... override the WndProc of the Form and catch the WM_NOTIFY ... Protected Overrides Sub WndProc ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • Re: Lines in treeview
    ... >> algorithm to draw the branch lines on the left of the items. ... the usual way is to let the Treeview to draw ... I'm looking for an algorithm that can let me draw the branch lines for the ...
    (microsoft.public.win32.programmer.ui)