I am testing a Java app with a TreeView. The status of the items in the TreeView is indicated by the different icons next to the item. I tried to read the icon index using the GetItemImageIndex method, but it is always returning 0 for the index. Somebody in this forum mentions something about the developers have to be using the "image index" but I couldn't find what exactly is an image index in the TreeView context.

So, if the app is supposed to be written in a certain way for this method to work, how should it be written? Another way of putting it, how should I write a TreeView example so that SilkTest can get the different icon index? I need to describe it to the developer or better yet give them a sample source code. I know they are using the DefaultTreeCellRenderer to draw the TreeView items.

Thank you very much in advance for your help.