Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - 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
Sender: 4db9.48a2ef12.1804289383@sybase.com
From: roost257
Newsgroups: sybase.public.powerbuilder.objects
Subject: tree view item path
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48a2f029.4dfc.1681692777@sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 13 Aug 2008 07:31:05 -0700
X-Trace: forums-1-dub 1218637865 10.22.241.41 (13 Aug 2008 07:31:05 -0700)
X-Original-Trace: 13 Aug 2008 07:31:05 -0700, 10.22.241.41
Lines: 10
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9757
Article PK: 736892

Hi...

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

How do i find the existing path?

regards

Roost


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: <48a2f029.4dfc.1681692777@sybase.com>
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
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48a2f90a$1@forums-1-dub>
Date: 13 Aug 2008 08:08:58 -0700
X-Trace: forums-1-dub 1218640138 10.22.241.152 (13 Aug 2008 08:08:58 -0700)
X-Original-Trace: 13 Aug 2008 08:08:58 -0700, vip152.sybase.com
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.