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.SelectItem( newItem ) - don't highlight the new selected item

2 posts in Objects Last posting was on 2005-10-13 14:32:15.0Z
M.Erlinger Posted on 2005-10-05 00:03:15.0Z
From: "M.Erlinger" <michael.erlinger@vienna.at>
Newsgroups: sybase.public.powerbuilder.objects
Subject: TreeView.SelectItem( newItem ) - don't highlight the new selected item
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2527
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527
X-RFC2646: Format=Flowed; Original
X-Original-NNTP-Posting-Host: 62.212.169.105
Message-ID: <434317b1$1@forums-2-dub>
X-Original-Trace: 4 Oct 2005 17:00:49 -0700, 62.212.169.105
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 4 Oct 2005 17:00:52 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 4 Oct 2005 17:03:15 -0700
X-Trace: forums-1-dub 1128470595 10.22.108.75 (4 Oct 2005 17:03:15 -0700)
X-Original-Trace: 4 Oct 2005 17:03:15 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!forums-2-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8655
Article PK: 735871

Hello

(i'm using PB 9.03 - 8511) - is there any problem with the TreeView-Function
'SelectItem'??
the function set's the newItem to the current item, but don't highlight it -
the PB-Help-documentation describe the function as following:
**********************************************************************
"SelectItem Integer Highlights an item in the control, making it the current
item."
**********************************************************************


many thank's for any help
regards
Michael E.


Brad Wery Posted on 2005-10-13 14:32:15.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.SelectItem( newItem ) - don't highlight the new selected item
References: <434317b1$1@forums-2-dub>
In-Reply-To: <434317b1$1@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: <434e6fef$1@forums-1-dub>
Date: 13 Oct 2005 07:32:15 -0700
X-Trace: forums-1-dub 1129213935 165.23.247.49 (13 Oct 2005 07:32:15 -0700)
X-Original-Trace: 13 Oct 2005 07:32:15 -0700, ugg10.unitedgrain.ca
Lines: 27
X-Authenticated-User: pb105beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8664
Article PK: 735875

I think the description of the function in the help file is worded
wrong, or there's a bug in the function.

In any case, to select an item use the TreeViews GetItem function. Set
the Selected property for your TreeViewItem to true. Use the TreeViews
SetItem function to highlight the modified item.

Brad

M.Erlinger wrote:
> Hello
>
> (i'm using PB 9.03 - 8511) - is there any problem with the TreeView-Function
> 'SelectItem'??
> the function set's the newItem to the current item, but don't highlight it -
> the PB-Help-documentation describe the function as following:
> **********************************************************************
> "SelectItem Integer Highlights an item in the control, making it the current
> item."
> **********************************************************************
>
>
> many thank's for any help
> regards
> Michael E.
>
>