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.

disable treeview item

4 posts in Objects Last posting was on 2005-03-09 04:25:28.0Z
hany maher Posted on 2005-03-07 11:24:31.0Z
From: "hany maher" <hany_maher@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: disable treeview item
Lines: 4
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; Original
X-Original-NNTP-Posting-Host: 168.187.147.137
Message-ID: <422c39eb$1@forums-2-dub>
X-Original-Trace: 7 Mar 2005 03:24:27 -0800, 168.187.147.137
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 7 Mar 2005 03:24:28 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 7 Mar 2005 03:24:31 -0800
X-Trace: forums-1-dub 1110194671 10.22.108.75 (7 Mar 2005 03:24:31 -0800)
X-Original-Trace: 7 Mar 2005 03:24:31 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8253
Article PK: 735517

Hi all:
Can I disable some items in treeview?


Roy Kiesler [TeamSybase] Posted on 2005-03-07 17:51:20.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: disable treeview item
References: <422c39eb$1@forums-2-dub>
In-Reply-To: <422c39eb$1@forums-2-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 216.250.69.98
X-Original-NNTP-Posting-Host: 216.250.69.98
Message-ID: <422c9498$1@forums-1-dub>
Date: 7 Mar 2005 09:51:20 -0800
X-Trace: forums-1-dub 1110217880 216.250.69.98 (7 Mar 2005 09:51:20 -0800)
X-Original-Trace: 7 Mar 2005 09:51:20 -0800, 216.250.69.98
Lines: 9
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8254
Article PK: 735513


hany maher wrote:
> Hi all:
> Can I disable some items in treeview?
>
>

What do you mean by diable? Prevent editing? Prevent adding children?
--
Roy


hany maher Posted on 2005-03-08 05:57:50.0Z
From: "hany maher" <hany_maher@hotmail.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <422c39eb$1@forums-2-dub> <422c9498$1@forums-1-dub>
Subject: Re: disable treeview item
Lines: 17
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
NNTP-Posting-Host: 168.187.147.137
X-Original-NNTP-Posting-Host: 168.187.147.137
Message-ID: <422d3ede@forums-1-dub>
Date: 7 Mar 2005 21:57:50 -0800
X-Trace: forums-1-dub 1110261470 168.187.147.137 (7 Mar 2005 21:57:50 -0800)
X-Original-Trace: 7 Mar 2005 21:57:50 -0800, 168.187.147.137
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8255
Article PK: 735515

Hi Roy:
I have treeview biuild in u_tvs, and I build the datastore to rierieve data
depend in user security (Display the items that the user has permision to
access), the requirment is to retrieve all treeview items and disable the
items that the user not have permision to access.
Prevent (Access when the user click by mouse), DIMMED tree view item

"Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com> wrote in message
news:422c9498$1@forums-1-dub...
> hany maher wrote:
>> Hi all:
>> Can I disable some items in treeview?
>
> What do you mean by diable? Prevent editing? Prevent adding children?
> --
> Roy


Roy Kiesler [TeamSybase] Posted on 2005-03-09 04:25:28.0Z
From: "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com>
Reply-To: SPAM_FRE_roy.kiesler@teamsybase.com
Organization: TeamSybase
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: disable treeview item
References: <422c39eb$1@forums-2-dub> <422c9498$1@forums-1-dub> <422d3ede@forums-1-dub>
In-Reply-To: <422d3ede@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: c-24-4-133-16.client.comcast.net
X-Original-NNTP-Posting-Host: c-24-4-133-16.client.comcast.net
Message-ID: <422e7ab8$1@forums-1-dub>
Date: 8 Mar 2005 20:25:28 -0800
X-Trace: forums-1-dub 1110342328 24.4.133.16 (8 Mar 2005 20:25:28 -0800)
X-Original-Trace: 8 Mar 2005 20:25:28 -0800, c-24-4-133-16.client.comcast.net
Lines: 34
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8259
Article PK: 735520


hany maher wrote:
> Hi Roy:
> I have treeview biuild in u_tvs, and I build the datastore to rierieve data
> depend in user security (Display the items that the user has permision to
> access), the requirment is to retrieve all treeview items and disable the
> items that the user not have permision to access.
> Prevent (Access when the user click by mouse), DIMMED tree view item
> "Roy Kiesler [TeamSybase]" <roy.kiesler@teamsybase.com> wrote in message
> news:422c9498$1@forums-1-dub...
>
>>hany maher wrote:
>>
>>>Hi all:
>>>Can I disable some items in treeview?
>>
>>What do you mean by diable? Prevent editing? Prevent adding children?
>>--
>>Roy
>
>
>

Well, you have two(!) tasks here, not one:

1. Draw the items in lighter font color, e.g., gray as opposed yo black
2. Prevent context menu from appearing when they are clicked

To do the first, look at the custom draw PBNI sample on CodeXchange at
http://powerbuilder.codexchange.sybase.com/files/documents/67/1127/CustomDraw.zip.

To do the later, handle the RightClicked event on the treeview control.

--
Roy