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.

Change backcolor item Treeview

2 posts in Objects Last posting was on 2004-06-01 18:23:04.0Z
CC Posted on 2004-06-01 16:59:37.0Z
From: "CC" <softQUITAESTO@gic.es>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Change backcolor item Treeview
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
X-Original-NNTP-Posting-Host: 172.red-213-96-32.pooles.rima-tde.net
Message-ID: <40bcb634@forums-2-dub>
X-Original-Trace: 1 Jun 2004 10:00:36 -0700, 172.red-213-96-32.pooles.rima-tde.net
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Jun 2004 09:57:49 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Jun 2004 09:59:37 -0700
X-Trace: forums-1-dub 1086109177 10.22.108.75 (1 Jun 2004 09:59:37 -0700)
X-Original-Trace: 1 Jun 2004 09:59:37 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7912
Article PK: 735184

Hello to everyone.

I´ve a treeview, and the problem is that when this treeview lose focus, is
very difficult to know wich is the item selected.

I´ve changed bold property of selected item (selectionchanged), and even add
a picture to this selected item, but user wants more !!!!!.

Is possible to change BackColor or ForeColor of an item in a treeview ????

Any ideas ????

Many thanks

Carlos


Roy Kiesler [TeamSybase] Posted on 2004-06-01 18:23:04.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 0.6+ (Windows/20040530)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Change backcolor item Treeview
References: <40bcb634@forums-2-dub>
In-Reply-To: <40bcb634@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Original-NNTP-Posting-Host: 208.252.62.131
Message-ID: <40bcc9c1@forums-2-dub>
X-Original-Trace: 1 Jun 2004 11:24:01 -0700, 208.252.62.131
Lines: 26
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 1 Jun 2004 11:21:13 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 1 Jun 2004 11:23:04 -0700
X-Trace: forums-1-dub 1086114184 10.22.108.75 (1 Jun 2004 11:23:04 -0700)
X-Original-Trace: 1 Jun 2004 11:23:04 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:7913
Article PK: 735185


CC wrote:

> Hello to everyone.
>
> I´ve a treeview, and the problem is that when this treeview lose focus, is
> very difficult to know wich is the item selected.
>
> I´ve changed bold property of selected item (selectionchanged), and even add
> a picture to this selected item, but user wants more !!!!!.
>
> Is possible to change BackColor or ForeColor of an item in a treeview ????
>
> Any ideas ????
>
> Many thanks
>
> Carlos
>
>

What version of PB? If you are using 9.0 or later, and have some C++
knowledge, you can use PBNI for that. See example --
http://powerbuilder.codexchange.sybase.com/files/documents/67/1127/CustomDrawDemo.zip

--
Roy