473,396 Members | 1,917 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

tree list images

I'm trying to add different images to the nodes and subnodes of a tree list.
I would like the primary nodes to display one image and the secondary nodes
several different images, and then, of course, be able to 'open' or 'close'
those with second images for each representing 'open' or 'closed'. When I
try to do this, I can't seem to get beyon 'one image for all node levels'.

Thanks for any help.

Bernie Yaeger
Nov 20 '05 #1
3 1317
sorry - meant treeview.

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
I'm trying to add different images to the nodes and subnodes of a tree list. I would like the primary nodes to display one image and the secondary nodes several different images, and then, of course, be able to 'open' or 'close' those with second images for each representing 'open' or 'closed'. When I
try to do this, I can't seem to get beyon 'one image for all node levels'.

Thanks for any help.

Bernie Yaeger

Nov 20 '05 #2
add images to an imagelist control.

add that to the appropriate imagelist property in the treeview properties.

When adding nodes, tell it which imagelist index to use.

0....N

HTH,

Shane

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
I'm trying to add different images to the nodes and subnodes of a tree list. I would like the primary nodes to display one image and the secondary nodes several different images, and then, of course, be able to 'open' or 'close' those with second images for each representing 'open' or 'closed'. When I
try to do this, I can't seem to get beyon 'one image for all node levels'.

Thanks for any help.

Bernie Yaeger

Nov 20 '05 #3
Hi Shane,

Tx - it does help.

Bernie

"SStory" <Th*******@TAKEOUTTHISSPAMBUSTERsofthome.net> wrote in message
news:%2*****************@TK2MSFTNGP12.phx.gbl...
add images to an imagelist control.

add that to the appropriate imagelist property in the treeview properties.

When adding nodes, tell it which imagelist index to use.

0....N

HTH,

Shane

"Bernie Yaeger" <be*****@cherwellinc.com> wrote in message
news:ev**************@TK2MSFTNGP12.phx.gbl...
I'm trying to add different images to the nodes and subnodes of a tree

list.
I would like the primary nodes to display one image and the secondary

nodes
several different images, and then, of course, be able to 'open' or

'close'
those with second images for each representing 'open' or 'closed'. When I try to do this, I can't seem to get beyon 'one image for all node levels'.
Thanks for any help.

Bernie Yaeger


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jeffrey Silverman | last post by:
Hi, all. I have a linked list. I need an algorithm to create a tree structure from that list. Basically, I want to turn this: $list = array( array( 'id' => 'A', 'parent_id' => null, 'value'...
2
by: ragha | last post by:
Dear friends I am emulating thr tree structure mentioned in the article http://www.15seconds.com/issue/010921.htm I have succesfully created the folder structure for level 2 I need this...
25
by: prabhat143 | last post by:
Hi, Given a singly linked, null terminated list, how can it be converted to tree? Each node in the list has three attributes: it's ID, it's parent ID and of course, the next node it's pointing...
2
by: Kiran | last post by:
Hello all, I am using a tree to display stuff, and it is constantly updated, but what I have noticed is in the lowest level, there is clearly noticable cutoff of the text I place there. The cutoff...
1
by: Amit Bhatia | last post by:
User-Agent: OSXnews 2.081 Xref: number1.nntp.dca.giganews.com comp.lang.c++:817435 Hi, I searched online to see if this is valid or not (since my classes are still very incomplete, I am...
9
by: raylopez99 | last post by:
What's the best way of implementing a multi-node tree in C++? What I'm trying to do is traverse a tree of possible chess moves given an intial position (at the root of the tree). Since every...
7
by: snitu | last post by:
hello i am new user of this forum. i have a problem in javascript code. plz. give me idea about how to create tree using xml file (not using xsl file) in javascript. i am also sending my...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.