|
-
Jun 21st, 2005, 06:19 AM
#1
Thread Starter
Addicted Member
-
Jun 21st, 2005, 10:39 AM
#2
Re: Hide Treeview Label display ??
The "labeledit option" as you describe is used to indicate which Node has focus. You cannot get rid of it entirely.
You can use this code to remove the highlighting, but the Focus rectangle will still be visible.
VB Code:
Private Sub TreeView1_NodeClick(ByVal Node As MSComctlLib.Node)
Node.Selected = Not Node.Parent Is Nothing
End Sub
A suggestion: when the Parent node is clicked, expand it and move focus to its first child node.
-
Jun 22nd, 2005, 12:21 AM
#3
Thread Starter
Addicted Member
Re: Hide Treeview Label display ??
hi brucevde,
thanks for the code and suggesstion. but the code doesn't work as i want. actually i want to remove the focus rectangle. and for the suggesstion, i have did that already, but the problem is when all the nodes are collapsed then it will be at the parent node only(as in the picture in my first post..).
anyhow thanks again, if you find any other solution then please do tell me.
--Kishore...
-
Jun 22nd, 2005, 12:25 AM
#4
Thread Starter
Addicted Member
Re: Hide Treeview Label display ??
hi again,
actually for the parent node i could have kept the text itself. but in the child node i have to add images. so the parent nodes image space is left blank. if any one can suggest how to remove the image space then that will also do for me.(actually that is why i went to images for the alphabets..) thank you..
--Kishore...
-
Jun 22nd, 2005, 10:10 AM
#5
Re: Hide Treeview Label display ??
You can't. The style for each Node is the same and if the style includes an image, space is reserved for that image.
-
Jun 23rd, 2005, 12:36 AM
#6
Thread Starter
Addicted Member
Re: Hide Treeview Label display ??[CLOSED]
hi,
thanks for providing the information. i have to change my treeview according to how it works .. thanks again for your time ..
--Kishore...
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
|