|
hello,
try this fix, in the Function _findFirstNode in TreeListView.vb module, correct the bug
Return Me._findFirstNode(aStartingNode.NextSiblingNode, aStartingPoint - ((KidsCount + 1) * 16))
to:
Return Me._findFirstNode(aStartingNode.NextSiblingNode, aStartingPoint - ((KidsCount + 1) * Me.RowHeight))
in order to adapt for RowHeight property
|
|
|
|
|
This is very good programs.
Can you tell me how to find specific text.
Sadavarte U.S.
|
|
|
|
|
Is it possible to assign a specific image to a cell in the table rather than to the main tree portion?
Thanks
|
|
|
|
|
Hello,
i found a problem with myself.
I can´t found the "SelectedNode"-Property in the Treelistview.
The property doesn´t exist, and the "SelectedItems" haven´t got any property for "ParentNode" or something
else.
Now, how can i get the item? I wanted to remove the selected (sub-)node, but i can´t get it :-/
Thanks for help!
TBR
|
|
|
|
|
You have to cast the SelectedItem to a TreeListNode as the 'SelectedItems' property is inherited from the base class:
DirectCast(Me.SelectedItems(0), TreeListNode).ParentNode
|
|
|
|
|
Thanks,
i didn´t know i have to cast it
TBR
|
|
|
|
|
Very nice job. I've been looking for something like this.
In my search for a good open-source treelistview control I also came across this commercial one:
http://www.devcomponents.com/dotnetbar/treeviewcontrol.aspx[^]
The capability they have that is pretty cool is to define separate columns (with column header visible or not) for child nodes.
Any chance of something similar making it into your TreeListView?
|
|
|
|
|
I am very interested in using the control under VB6, as it is listed to work with this version, but found no way to register it.
Can someone help me?
Regards
|
|
|
|
|
You might be better off just use those that create just for VB6
http://www.vbaccelerator.com/home/VB/Code/Controls/TreeView/Multi-Column_TreeView_Control/article.asp
|
|
|
|
|
There is a possibility to change the size of the image?
|
|
|
|
|
How to add custom control to the subitems? I have used the "subitems.add(control ctrl)" method to add, but it doesn't work. the result shows "subtems -1" in the cells.
|
|
|
|
|
I have fixed this bug, if anyone is interested I can give a copy of the fixed DLL's and/or Source.
|
|
|
|
|
Can you send me a copy of fixed source.
My Email is rqx110@163.com.
Thanks.
|
|
|
|
|
Hi!
can you send the DLLs and the source to:
alsiggi2@googlemail.com
Many thanks in advance ...
|
|
|
|
|
I would be glad, if you could send me the dll to sven (dot)laufersweiler (at) web (dot) de
|
|
|
|
|
if you couldn't upload the bugfix here, please send the files to b.o.c.k.y at web dot de.
Thanks
|
|
|
|
|
Is it too much to just post the code change here?
If so, please send source to tsrymer "at" hotmail "dot" com
|
|
|
|
|
Just to reply to my own post and for anyone else's benefit...
The changes required to show the actual control instead of "SubItems -1" are:
In the ContainerListViewObject class, the actual control isn't being assigned to the _ChildControl variable. Change:
Public Sub New(ByVal aControl As Control)
Me._constructControl(aControl)
End Sub
to
Public Sub New(ByVal aControl As Control)
Me._ChildControl = Me._constructControl(aControl)
End Sub
In the TreeListView usercontrol class, you need to clear the controls before it gets redrawn. Change/add a line:
Me._TotalRend = 0
Me._NodeRowRects.Clear()
Me._PlusMinusRects.Clear()
MyBase._CheckBoxRects.Clear()
Me._ImageRects.Clear()
to
Me._TotalRend = 0
Me._NodeRowRects.Clear()
Me._PlusMinusRects.Clear()
MyBase._CheckBoxRects.Clear()
Me._ImageRects.Clear()
Me.Controls.Clear()
I think that's all I did...
|
|
|
|
|
I use this TreeLisView within a solution of mainly c# projects, and do not have any experience with vb.
I applied these changes and fill some Test data in and now have following Problem:
If I add a String
TreeListNode1.SubItems.Add("87%")
everything still works fine but if I want to add a ProgressBar:
ProgressBar battery_1 = new ProgressBar();
battery_1.Value = 87;
tuer1.SubItems.Add(battery_1);
Only the Progressbar will be shown, everything else is replaced by a single one red x. So far I figured out that this is part of exception handling within Winforms and that for some reason the Sub "OnDrawRows"
in TreeListView.vb is called again while computing this while-Loop:
Me._TotalRend = 0
Me._NodeRowRects.Clear()
Me._PlusMinusRects.Clear()
MyBase._CheckBoxRects.Clear()
Me._ImageRects.Clear()
Me.Controls.Clear()
While (NodeDraw IsNot Nothing AndAlso MaxRend > RenderedSoFar)
Me._renderNodeRows(NodeDraw, aGr, Rect, RenderedSoFar)
RenderedSoFar += 1
Me._TotalRend += 1
NodeDraw = Me.GetNextNode(NodeDraw)
End While
and therefore trying to draw the same elements twice, resulting in this problem.
I might add:
.net Framework 4.5
Visual Studio Express 2012
Any help is appreciated
modified 19-Dec-13 9:10am.
|
|
|
|
|
I have set the "GridLines" to "Both", and then scroll the HScrollBar. As you can see the "row lines" does not render very well.
|
|
|
|
|
OK, I have soled this problem.
In the file "TreeListView.vb",Line 1673
Old:
Wdth = Me.Columns(0).Bounds.Width - Xpos
Now:
Wdth = Me.Columns(0).Bounds.Width - Xpos - Me.HScroll.Value
|
|
|
|
|
I have added a imagelist to my treelistview. toplevel nodes get a imageindex 0, second level nodes get imageindex 1 and third level nodes get imageindex 2. there are 3 images in the imagelist. but secondlevel nodes were drawn without an image.
have I forgot to set any property?
|
|
|
|
|
column header are drawn with 2 or 3 pixels margin.
scrollbars both vertical and horizontal have a 2 pixel marin.
what is the intention?
|
|
|
|
|
Hi,
i try to add Childnodes dynamically to my Tree at the BeforeExpand Event. In this Event i start an asynchonous operation, which adds the children (after the eventhandler ended). Then the tree begins to expand and my async function adds the children. But the problem is with this, that no vertical scrollbar is added even if one is needed Is there a trick to tell the control to recalculate the need of an scrollbar? The Node.add operation seems not to perform this check.
Thank you for your Ideas.
Tobi
modified on Friday, May 22, 2009 6:54 PM
|
|
|
|
|
For now i got an workaround...
In the beforeExpand Event i add "dummy children" to the Tree (this works, because i know how much children my asyn op. will add). When my asnc op finishes, i delete these dummies and replaye them with the real children. Now the scrollbar is OK. But this workaound is not that nice...It would be better, when the Nodes.add routine would perform the scrollbar check...
Greetings Tobi
|
|
|
|