|
-
Mar 6th, 2002, 11:34 PM
#1
Thread Starter
New Member
Book Mark?
Hi,
I am accessing record from my database and display them in a treeview control and when click on the child node of treeview then display it's description in a richtextbox.
I want to place book mark on child nodes, so that through bookmark i display it's description.
When click on the BookMark button then it show the past bookmarks in a window and user can also place new bookmark.
i mean like this:
bookmark = parent.child.Description
Please help me.
thanks.
-
Mar 7th, 2002, 10:57 PM
#2
Member
by place a bookmark... do you mean to also add the description or just provide a way that people can quickly jump back to that child in the treeview?
-
Mar 7th, 2002, 11:53 PM
#3
Thread Starter
New Member
Re: Book Mark
No need for description, just put the track of the bookmark.
and yes provide a way that people can quickly jump back to that child in the treeview
-
Mar 8th, 2002, 01:00 AM
#4
Member
does this help at all?
the following works if the data set stays constant. but if it doesnt then you would have to take the fullpath as a string, grab the parts and trace it along the treeview. hope some of this is helpful.
VB Code:
Private Sub TreeView1_NodeClick(ByVal Node As ComctlLib.Node)
' just a visual path, you might want it for IDing a bookmark
'List1.AddItem Node.FullPath
' the actual index of a node from treeview
List1.AddItem Node.Index
End Sub
Private Sub List1_Click()
' variable is the index to bookmarked node
' i didn't want to write out a function to
' find out which item was clicked
Dim lngBooked As Long
lngBooked = 0
TreeView1.Nodes(Val(List1.List(lngBooked))).Selected = True
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|