|
|
#1 |
|
Addicted Member
Join Date: Jul 04
Location: Mumbai
Posts: 236
![]() |
Hide Treeview Label display ??[CLOSED]
hi guys,
i am using a treeview. in the first set of node i am using alphabets and i am using images for that. in the child nodes i am using both images and texts. so i have to use treeview's style(7) tvwtreelinesplusminuspicturetext. but in the parent node since i am not using text its giving the labeledit option, it looks odd. i feel it looks better without that. i have attached the image and showed my query in red arrow. can anyone guide me how to hide or not to show the label from the parent..
__________________
--Kishore...
Last edited by kishore.kr; Jun 23rd, 2005 at 12:44 AM. Reason: Closing the thread... |
|
|
|
|
|
#2 |
|
PowerPoster
Join Date: Oct 02
Location: British Columbia
Posts: 9,719
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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:
A suggestion: when the Parent node is clicked, expand it and move focus to its first child node. |
|
|
|
|
|
#3 |
|
Addicted Member
Join Date: Jul 04
Location: Mumbai
Posts: 236
![]() |
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...
|
|
|
|
|
|
#4 |
|
Addicted Member
Join Date: Jul 04
Location: Mumbai
Posts: 236
![]() |
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...
|
|
|
|
|
|
#5 |
|
PowerPoster
Join Date: Oct 02
Location: British Columbia
Posts: 9,719
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
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.
|
|
|
|
|
|
#6 |
|
Addicted Member
Join Date: Jul 04
Location: Mumbai
Posts: 236
![]() |
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...
|
|
|
|
![]() |
|
||||||
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|