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.

Right mouseclick on treeviewitem

9 posts in Objects Last posting was on 2004-11-25 08:53:23.0Z
Rolf Knaden Posted on 2004-11-19 12:15:34.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: Right mouseclick on treeviewitem
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.146.103.20
X-Original-NNTP-Posting-Host: 213.146.103.20
Message-ID: <419de3e6@forums-1-dub>
Date: 19 Nov 2004 04:15:34 -0800
X-Trace: forums-1-dub 1100866534 213.146.103.20 (19 Nov 2004 04:15:34 -0800)
X-Original-Trace: 19 Nov 2004 04:15:34 -0800, 213.146.103.20
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8098
Article PK: 735369

Hello.
In PB9 clicking with the right-mousebutton on a treeview-control does not
select the clicked item permanently.
Only during the time, the right button is pressed, the item at the
mousepointer gets selected.
When releasing the button the former item is reselected.
However. When moving the mouse while the right button is pressed, then the
new item gets selected.
In PB6 the new item always got selected.

I think, it is a bug. Or is it a feature? If so, how can I get the old
behaviour or when will it be fixed?

--

Rolf Knaden
conject GmbH, c/o Business-Contor Philosophenweg 31-33, 47051 Duisburg

Fon: +49 (0203) 9414.138
Fax: +49 (0203) 9414.555
Rolf.Knaden@conject.com

www.conject.com

konsequent conject.


Philip Salgannik Posted on 2004-11-19 15:22:46.0Z
Sender: 5296.419e0d29.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Right mouseclick on treeviewitem
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <419e0fc6.52ea.1681692777@sybase.com>
References: <419de3e6@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 19 Nov 2004 07:22:46 -0800
X-Trace: forums-1-dub 1100877766 10.22.241.41 (19 Nov 2004 07:22:46 -0800)
X-Original-Trace: 19 Nov 2004 07:22:46 -0800, 10.22.241.41
Lines: 19
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8099
Article PK: 735366


> Hello.
> In PB9 clicking with the right-mousebutton on a
> treeview-control does not select the clicked item
> permanently. Only during the time, the right button is
> pressed, the item at the mousepointer gets selected.
> When releasing the button the former item is reselected.
> However. When moving the mouse while the right button is
> pressed, then the new item gets selected.
> In PB6 the new item always got selected.
>
> I think, it is a bug. Or is it a feature? If so, how can I
> get the old behaviour or when will it be fixed?

Starting with PB7 PB uses a wrapper around Microsoft's
common control treeview (versus their own implementation in
prior versions), the behavioural changes are documented in
release notes for ALL PB releases starting with 7.
I doubt this is a bug and I doubt you will ever "get the
old behaviour"...


Rolf Knaden Posted on 2004-11-20 18:51:06.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <419de3e6@forums-1-dub> <419e0fc6.52ea.1681692777@sybase.com>
Subject: Re: Right mouseclick on treeviewitem
Lines: 33
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
NNTP-Posting-Host: pd9fe0643.dip.t-dialin.net
X-Original-NNTP-Posting-Host: pd9fe0643.dip.t-dialin.net
Message-ID: <419f921a$1@forums-1-dub>
Date: 20 Nov 2004 10:51:06 -0800
X-Trace: forums-1-dub 1100976666 217.254.6.67 (20 Nov 2004 10:51:06 -0800)
X-Original-Trace: 20 Nov 2004 10:51:06 -0800, pd9fe0643.dip.t-dialin.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8103
Article PK: 735371

But the microsoft treeview does not show this behavior. If you click with
the right button, the clicked item gets selected.

In my application I have the problem, that the user clicks with the right
button on a certin item and get's a popup-menu. Then he selects an action of
that menu. But the action is not executed with the item the user first
clicked on, but with that one, which was selected before.

And very strange for me is, that if you move the Pointer, it get's selected.

<Philip Salgannik> schrieb im Newsbeitrag
news:419e0fc6.52ea.1681692777@sybase.com...

>> Hello.
>> In PB9 clicking with the right-mousebutton on a
>> treeview-control does not select the clicked item
>> permanently. Only during the time, the right button is
>> pressed, the item at the mousepointer gets selected.
>> When releasing the button the former item is reselected.
>> However. When moving the mouse while the right button is
>> pressed, then the new item gets selected.
>> In PB6 the new item always got selected.
>>
>> I think, it is a bug. Or is it a feature? If so, how can I
>> get the old behaviour or when will it be fixed?
>
> Starting with PB7 PB uses a wrapper around Microsoft's
> common control treeview (versus their own implementation in
> prior versions), the behavioural changes are documented in
> release notes for ALL PB releases starting with 7.
> I doubt this is a bug and I doubt you will ever "get the
> old behaviour"...


Philip Salgannik Posted on 2004-11-24 19:23:03.0Z
Sender: 5251.41a4a6cd.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Right mouseclick on treeviewitem
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41a4df92.5951.1681692777@sybase.com>
References: <419f921a$1@forums-1-dub>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 24 Nov 2004 11:22:58 -0800, 10.22.241.42
Lines: 18
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 24 Nov 2004 11:23:00 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 24 Nov 2004 11:23:03 -0800
X-Trace: forums-1-dub 1101324183 10.22.108.75 (24 Nov 2004 11:23:03 -0800)
X-Original-Trace: 24 Nov 2004 11:23:03 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8111
Article PK: 735379


> But the microsoft treeview does not show this behavior. If
> you click with the right button, the clicked item gets
> selected.

And then it gets unselected and selection goes back to the
previously selected one.


> In my application I have the problem, that the user clicks
> with the right button on a certin item and get's a
> popup-menu. Then he selects an action of that menu. But
> the action is not executed with the item the user first
> clicked on, but with that one, which was selected before.

That means that your code is looking to execute on the
selected item versus the one which was RMBed (and whose
handle was passed in as an argument to the rightclicked
event..


Rolf Knaden Posted on 2004-11-24 21:16:19.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <419f921a$1@forums-1-dub> <41a4df92.5951.1681692777@sybase.com>
Subject: Re: Right mouseclick on treeviewitem
Lines: 30
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
NNTP-Posting-Host: pd9fe0bb1.dip.t-dialin.net
X-Original-NNTP-Posting-Host: pd9fe0bb1.dip.t-dialin.net
Message-ID: <41a4fa23@forums-1-dub>
Date: 24 Nov 2004 13:16:19 -0800
X-Trace: forums-1-dub 1101330979 217.254.11.177 (24 Nov 2004 13:16:19 -0800)
X-Original-Trace: 24 Nov 2004 13:16:19 -0800, pd9fe0bb1.dip.t-dialin.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8115
Article PK: 735380


>> But the microsoft treeview does not show this behavior. If
>> you click with the right button, the clicked item gets
>> selected.
>
> And then it gets unselected and selection goes back to the
> previously selected one.

That's not right. In the treeview of the microsoft explorer the item does
not go back to the previously selected one.

>> In my application I have the problem, that the user clicks
>> with the right button on a certin item and get's a
>> popup-menu. Then he selects an action of that menu. But
>> the action is not executed with the item the user first
>> clicked on, but with that one, which was selected before.
>
> That means that your code is looking to execute on the
> selected item versus the one which was RMBed (and whose
> handle was passed in as an argument to the rightclicked
> event..

Up to now I used the rbuttondown-event to display popup-menus. This event
does not get a reference to the item.
I see, the rightclicked-event is the better one to use.

But however. Wouldn't it be fine, if old features keep on working, when
sybase changes things.


Rolf Knaden Posted on 2004-11-24 21:16:19.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <419f921a$1@forums-1-dub> <41a4df92.5951.1681692777@sybase.com>
Subject: Re: Right mouseclick on treeviewitem
Lines: 21
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
NNTP-Posting-Host: pd9fe0bb1.dip.t-dialin.net
X-Original-NNTP-Posting-Host: pd9fe0bb1.dip.t-dialin.net
Message-ID: <41a4fa23$2@forums-1-dub>
Date: 24 Nov 2004 13:16:19 -0800
X-Trace: forums-1-dub 1101330979 217.254.11.177 (24 Nov 2004 13:16:19 -0800)
X-Original-Trace: 24 Nov 2004 13:16:19 -0800, pd9fe0bb1.dip.t-dialin.net
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8116
Article PK: 735384


> And then it gets unselected and selection goes back to the
> previously selected one.

That's not right. In the treeview of the microsoft explorer the item does
not go back to the previously selected one.

> That means that your code is looking to execute on the
> selected item versus the one which was RMBed (and whose
> handle was passed in as an argument to the rightclicked
> event..

Up to now I used the rbuttondown-event to display popup-menus.
This event does not get a reference to the selected item. I see, the
rightclicked-event could be the better one to use.

But however. Wouldn't it be fine, if old features keep on working,
when sybase changes things. It would avoid much time of changing
existing code.


Philip Salgannik Posted on 2004-11-24 21:57:34.0Z
Sender: 46d4.41a4f7a0.1804289383@sybase.com
From: Philip Salgannik
Newsgroups: sybase.public.powerbuilder.objects
Subject: Re: Right mouseclick on treeviewitem
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <41a503ce.47a5.1681692777@sybase.com>
References: <41a4fa23$2@forums-1-dub>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 24 Nov 2004 13:57:34 -0800
X-Trace: forums-1-dub 1101333454 10.22.241.41 (24 Nov 2004 13:57:34 -0800)
X-Original-Trace: 24 Nov 2004 13:57:34 -0800, 10.22.241.41
Lines: 28
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8117
Article PK: 735385


> > And then it gets unselected and selection goes back to
> > the previously selected one.
>
> That's not right. In the treeview of the microsoft
> explorer the item does not go back to the previously
> selected one.

It is right. That's what it does in Windows 2000 microsoft
explorer
>
> > That means that your code is looking to execute on the
> > selected item versus the one which was RMBed (and whose
> > handle was passed in as an argument to the rightclicked
> > event..
>
> Up to now I used the rbuttondown-event to display
> popup-menus. This event does not get a reference to the
> selected item. I see, the rightclicked-event could be the
> better one to use.
>
> But however. Wouldn't it be fine, if old features keep on
> working, when sybase changes things. It would avoid much
> time of changing existing code.


Usage of the rbuttondown-event to display popup-menus (non
usage :-)) was discussed in great detail in the release
notes.


Philip Salgannik Posted on 2004-11-25 02:02:01.0Z
From: "Philip Salgannik" <philemaxNOSPAM@comcast.net>
Newsgroups: sybase.public.powerbuilder.objects
References: <41a4fa23$2@forums-1-dub> <41a503ce.47a5.1681692777@sybase.com>
Subject: Re: Right mouseclick on treeviewitem
Lines: 20
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: h005018067b6f.ne.client2.attbi.com
Message-ID: <41a53d15$1@forums-2-dub>
X-Original-Trace: 24 Nov 2004 18:01:57 -0800, h005018067b6f.ne.client2.attbi.com
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 24 Nov 2004 18:01:58 -0800, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 24 Nov 2004 18:02:01 -0800
X-Trace: forums-1-dub 1101348121 10.22.108.75 (24 Nov 2004 18:02:01 -0800)
X-Original-Trace: 24 Nov 2004 18:02:01 -0800, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8118
Article PK: 735386


<Philip Salgannik> wrote in message
news:41a503ce.47a5.1681692777@sybase.com...
>> > And then it gets unselected and selection goes back to
>> > the previously selected one.
>>
>> That's not right. In the treeview of the microsoft
>> explorer the item does not go back to the previously
>> selected one.
>
> It is right. That's what it does in Windows 2000 microsoft
> explorer

And in Windows XP

pbm_thisusuallydoesnothelp:-))
Philip Salgannik


Rolf Knaden Posted on 2004-11-25 08:53:23.0Z
From: "Rolf Knaden" <rolf.knaden@conject.com>
Newsgroups: sybase.public.powerbuilder.objects
References: <41a4fa23$2@forums-1-dub> <41a503ce.47a5.1681692777@sybase.com> <41a53d15$1@forums-2-dub>
Subject: Re: Right mouseclick on treeviewitem
Lines: 5
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 213.146.103.27
X-Original-NNTP-Posting-Host: 213.146.103.27
Message-ID: <41a59d83$1@forums-1-dub>
Date: 25 Nov 2004 00:53:23 -0800
X-Trace: forums-1-dub 1101372803 213.146.103.27 (25 Nov 2004 00:53:23 -0800)
X-Original-Trace: 25 Nov 2004 00:53:23 -0800, 213.146.103.27
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8119
Article PK: 735387

> And in Windows XP
There is no difference betwenn W2K and XP.