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 Highlighting problem

2 posts in Objects Last posting was on 2007-10-04 20:08:04.0Z
rletlow Posted on 2007-10-02 14:37:46.0Z
From: rletlow@gmail.com
Newsgroups: sybase.public.powerbuilder.objects
Subject: Treeview Highlighting problem
Date: Tue, 02 Oct 2007 14:37:46 -0000
Organization: http://groups.google.com
Lines: 26
Message-ID: <1191335866.150664.291620@50g2000hsm.googlegroups.com>
NNTP-Posting-Host: 12.14.171.93
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1191335866 12249 127.0.0.1 (2 Oct 2007 14:37:46 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Tue, 2 Oct 2007 14:37:46 +0000 (UTC)
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.1),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 50g2000hsm.googlegroups.com; posting-host=12.14.171.93; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0
Path: forums-1-dub!forums-master!newswest.sybase.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!50g2000hsm.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9499
Article PK: 736656

I have a 10.5 treeview control that is behaving eratically.

dragdrop auto is set to false
I have code in the dragdrop event to prevent the user from dropping
an
item on itself or its parent.


The problem is that if I pop up a message telling the user that
action
is forbidden, the item that they tried to drop on becomes highlighted
and it will not let any other items become highlighted.


I verified this in the powerbuilder 10.5 code example for treeview
drag drop and it does the same thing if you try to drop an employee
into a diferent department and select no when it asks you to confirm
the dragdrop to a different department.


Has anyone else seen this behavior?


Thanks,
Roy


André Tobiassen <a03t03 Posted on 2007-10-04 20:08:04.0Z
Subject: Re: Treeview Highlighting problem
From: =?iso-8859-15?Q?Andr=E9_Tobiassen?= <a03t03@bbl.no_spam>
Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15
MIME-Version: 1.0
Newsgroups: sybase.public.powerbuilder.objects
References: <1191335866.150664.291620@50g2000hsm.googlegroups.com>
Content-Transfer-Encoding: 8bit
Message-ID: <op.tzovjnwuogymit@at.bbl.no>
User-Agent: Opera Mail/9.23 (Win32)
NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
X-Original-NNTP-Posting-Host: box80-64-192-234.static.sdsl.no
Date: 4 Oct 2007 13:08:04 -0700
X-Trace: forums-1-dub 1191528484 80.64.192.234 (4 Oct 2007 13:08:04 -0700)
X-Original-Trace: 4 Oct 2007 13:08:04 -0700, box80-64-192-234.static.sdsl.no
Lines: 45
X-Authenticated-User: pb110beta
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:9505
Article PK: 736661

Can you solve this by using the dragenter and dragleave events instead?

On dragleave always change the mouse pointer (object.pointer) to "No!", or
another custom cursor. On dragenter, check if the object is valid where
source != source or source != source.getparent(). If not valid, then keep
the pointer to "No!", if valid change the pointer to something else, like
"hyperlink!", to tell the user that its ok to drop.

I always try to avoid messageboxes that often causes annoyance to the
user, when a visual clue like a changing cursor is enough.

Regards
André


PÃ¥ Tue, 02 Oct 2007 16:37:46 +0200, skrev <rletlow@gmail.com>:

> I have a 10.5 treeview control that is behaving eratically.
>
> dragdrop auto is set to false
> I have code in the dragdrop event to prevent the user from dropping
> an
> item on itself or its parent.
>
>
> The problem is that if I pop up a message telling the user that
> action
> is forbidden, the item that they tried to drop on becomes highlighted
> and it will not let any other items become highlighted.
>
>
> I verified this in the powerbuilder 10.5 code example for treeview
> drag drop and it does the same thing if you try to drop an employee
> into a diferent department and select no when it asks you to confirm
> the dragdrop to a different department.
>
>
> Has anyone else seen this behavior?
>
>
> Thanks,
> Roy
>