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.

Treeview Control

5 posts in Objects Last posting was on 2006-04-03 17:03:26.0Z
Sybase Posted on 2006-04-03 13:51:56.0Z
From: "Sybase" <stc@dk.ibm.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Treeview Control
Lines: 9
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
X-Original-NNTP-Posting-Host: blueice1n1.uk.ibm.com
Message-ID: <44310a2c@forums-2-dub>
X-Original-Trace: 3 Apr 2006 04:42:36 -0800, blueice1n1.uk.ibm.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Apr 2006 04:42:37 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Apr 2006 05:51:56 -0800
X-Trace: forums-1-dub 1144068716 10.22.108.75 (3 Apr 2006 05:51:56 -0800)
X-Original-Trace: 3 Apr 2006 05:51:56 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8822
Article PK: 736026

I am dynamically populating a treeview control.
How can i detect if a item has been populated before.
I is a simulation of the explorer, but i only wants to populate the items
when the user actually wants them to be populated.
The root is normally the c: and D: drive

Steen C


Chris Werner Posted on 2006-04-03 14:13:56.0Z
From: "Chris Werner" <cw{please_no_spam}ATf-s.de>
Newsgroups: sybase.public.powerbuilder.objects
References: <44310a2c@forums-2-dub>
Subject: Re: Treeview Control
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: 62.8.156.42
Message-ID: <44310f55@forums-2-dub>
X-Original-Trace: 3 Apr 2006 05:04:37 -0800, 62.8.156.42
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Apr 2006 05:04:38 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Apr 2006 06:13:56 -0800
X-Trace: forums-1-dub 1144070036 10.22.108.75 (3 Apr 2006 06:13:56 -0800)
X-Original-Trace: 3 Apr 2006 06:13:56 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8823
Article PK: 736028

Hi Steen,

combine the treeview control with a
dataStore. Before populating an item,
check wether it is already in the dataStore.
If so, don't populate it. After populating
an item insert it into the dataStore. For
inserting into the dataStore and checking
against it choose an item representation
which identifies every item unique. In your
case this may be the whole path to the file
or directory.

HTH

Chris Werner


"Sybase" <stc@dk.ibm.com> schrieb im Newsbeitrag
news:44310a2c@forums-2-dub...

>I am dynamically populating a treeview control.
> How can i detect if a item has been populated before.
> I is a simulation of the explorer, but i only wants to populate the items
> when the user actually wants them to be populated.
> The root is normally the c: and D: drive
>
> Steen C
>


Sybase Posted on 2006-04-03 14:35:32.0Z
From: "Sybase" <stc@dk.ibm.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <44310a2c@forums-2-dub> <44310f55@forums-2-dub>
Subject: Re: Treeview Control
Lines: 39
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
X-Original-NNTP-Posting-Host: blueice1n1.uk.ibm.com
Message-ID: <44311464@forums-2-dub>
X-Original-Trace: 3 Apr 2006 05:26:12 -0800, blueice1n1.uk.ibm.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Apr 2006 05:26:13 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Apr 2006 06:35:32 -0800
X-Trace: forums-1-dub 1144071332 10.22.108.75 (3 Apr 2006 06:35:32 -0800)
X-Original-Trace: 3 Apr 2006 06:35:32 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8824
Article PK: 736027

Thanks, I will do that.
I just hoped there where so propety like number of children.

Steen C
IBM Denmark

"Chris Werner" <cw{please_no_spam}ATf-s.de> wrote in message
news:44310f55@forums-2-dub...
> Hi Steen,
>
> combine the treeview control with a
> dataStore. Before populating an item,
> check wether it is already in the dataStore.
> If so, don't populate it. After populating
> an item insert it into the dataStore. For
> inserting into the dataStore and checking
> against it choose an item representation
> which identifies every item unique. In your
> case this may be the whole path to the file
> or directory.
>
> HTH
>
> Chris Werner
>
>
> "Sybase" <stc@dk.ibm.com> schrieb im Newsbeitrag
> news:44310a2c@forums-2-dub...
>>I am dynamically populating a treeview control.
>> How can i detect if a item has been populated before.
>> I is a simulation of the explorer, but i only wants to populate the items
>> when the user actually wants them to be populated.
>> The root is normally the c: and D: drive
>>
>> Steen C
>>
>
>


Brad Wery Posted on 2006-04-03 15:48:52.0Z
From: Brad Wery <bradweryatagricoreunited.com>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Treeview Control
References: <44310a2c@forums-2-dub> <44310f55@forums-2-dub> <44311464@forums-2-dub>
In-Reply-To: <44311464@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: ugg10.unitedgrain.ca
X-Original-NNTP-Posting-Host: ugg10.unitedgrain.ca
Message-ID: <443135d4$1@forums-1-dub>
Date: 3 Apr 2006 07:48:52 -0800
X-Trace: forums-1-dub 1144075732 165.23.247.49 (3 Apr 2006 07:48:52 -0800)
X-Original-Trace: 3 Apr 2006 07:48:52 -0800, ugg10.unitedgrain.ca
Lines: 51
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8825
Article PK: 736029

Could you use the FindItem function of the treeview:

IF tv_1.FindItem(ChildTreeItem!, index) > 0 THEN
MessageBox('',"Children exist for parent handle 'index'")
END IF

Brad

Sybase wrote:
> Thanks, I will do that.
> I just hoped there where so propety like number of children.
>
> Steen C
> IBM Denmark
> "Chris Werner" <cw{please_no_spam}ATf-s.de> wrote in message
> news:44310f55@forums-2-dub...
>
>>Hi Steen,
>>
>>combine the treeview control with a
>>dataStore. Before populating an item,
>>check wether it is already in the dataStore.
>>If so, don't populate it. After populating
>>an item insert it into the dataStore. For
>>inserting into the dataStore and checking
>>against it choose an item representation
>>which identifies every item unique. In your
>>case this may be the whole path to the file
>>or directory.
>>
>>HTH
>>
>>Chris Werner
>>
>>
>>"Sybase" <stc@dk.ibm.com> schrieb im Newsbeitrag
>>news:44310a2c@forums-2-dub...
>>
>>>I am dynamically populating a treeview control.
>>>How can i detect if a item has been populated before.
>>>I is a simulation of the explorer, but i only wants to populate the items
>>>when the user actually wants them to be populated.
>>>The root is normally the c: and D: drive
>>>
>>>Steen C
>>>
>>
>>
>
>


Philip Salgannik Posted on 2006-04-03 17:03:26.0Z
Sender: 484f.443136e4.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Treeview Control
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4431370e.4851.1681692777@sybase.com>
References: <44310a2c@forums-2-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 3 Apr 2006 07:54:06 -0800, 10.22.241.42
Lines: 18
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 3 Apr 2006 07:54:07 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 3 Apr 2006 09:03:26 -0800
X-Trace: forums-1-dub 1144080206 10.22.108.75 (3 Apr 2006 09:03:26 -0800)
X-Original-Trace: 3 Apr 2006 09:03:26 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8826
Article PK: 736030

Always helpd to read Help :-) on the control you are working
with.
Properties for TreeViewItem object
ExpandedOnce Boolean Specifies whether the item has been
expanded at least once, also meaning the item has been
populated with children. Values are:
TRUE - The item has been expanded once
FALSE - The item has not been expanded once

> I am dynamically populating a treeview control.
> How can i detect if a item has been populated before.
> I is a simulation of the explorer, but i only wants to
> populate the items when the user actually wants them to
> be populated. The root is normally the c: and D: drive
>
> Steen C
>
>