Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

tree view item path

2 posts in Objects Last posting was on 2008-08-13 15:08:58.0Z
roost257 Posted on 2008-08-13 14:31:05.0Z
From: roost257
Newsgroups: sybase.public.powerbuilder.objects
Subject: tree view item path
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <>
Date: 13 Aug 2008 07:31:05 -0700
X-Trace: forums-1-dub 1218637865 (13 Aug 2008 07:31:05 -0700)
X-Original-Trace: 13 Aug 2008 07:31:05 -0700,
Lines: 10
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9757
Article PK: 736892


How do i dynamically assign the path of the picture
associated with a tree view item?

How do i find the existing path?



Roland Smith [TeamSybase] Posted on 2008-08-13 15:08:58.0Z
From: "Roland Smith [TeamSybase]" <rsmith_at_trusthss_dot_com>
Newsgroups: sybase.public.powerbuilder.objects
References: <>
Subject: Re: tree view item path
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
Message-ID: <48a2f90a$1@forums-1-dub>
Date: 13 Aug 2008 08:08:58 -0700
X-Trace: forums-1-dub 1218640138 (13 Aug 2008 08:08:58 -0700)
X-Original-Trace: 13 Aug 2008 08:08:58 -0700,
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9758
Article PK: 736888

To display the current value within the clicked event:

TreeViewItem ltvi_item
Integer li_index

this.GetItem(handle, ltvi_item)
li_index = ltvi_item.PictureIndex

MessageBox("PictureName", this.PictureName[li_index])

The pictures in the PictureName array cannot be changed at runtime. You can
change the PictureIndex of a specific item. Do a GetItem, change the
PictureIndex and then do a SetItem.