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 Datawindow - Navigating using Arrow Keys

2 posts in DataWindow Last posting was on 2008-04-30 13:35:43.0Z
MattMale Posted on 2008-04-30 11:25:04.0Z
From: "MattMale" <mmale@chubb.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Treeview Datawindow - Navigating using Arrow Keys
Lines: 18
Organization: ChubbEurope
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.3198
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48185710$1@forums-1-dub>
Date: 30 Apr 2008 04:25:04 -0700
X-Trace: forums-1-dub 1209554704 10.22.241.152 (30 Apr 2008 04:25:04 -0700)
X-Original-Trace: 30 Apr 2008 04:25:04 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86750
Article PK: 416008

Hi,

We have a treeview datawindow in PB10.5.1. When the user clicks around using
the mouse, the expected events are all triggered (rowfocuschanged etc).

But when they use the up/down arrow keys this doesn't happen.

I've tried coding round this using the pbm_dwnkey event, but the current row
(as returned by GetRow) isn't changing, so this opens a can of worms (e.g.
would need to programmatically keep track of the current row).

Is there a simple solution? Failing that, is there a way of disabling the
arrow key navigation altogether?

Many thanks
Matt


MattMale Posted on 2008-04-30 13:35:43.0Z
From: "MattMale" <mmale@chubb.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48185710$1@forums-1-dub>
Subject: Re: Treeview Datawindow - Navigating using Arrow Keys
Lines: 26
Organization: ChubbEurope
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.3198
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <481875af@forums-1-dub>
Date: 30 Apr 2008 06:35:43 -0700
X-Trace: forums-1-dub 1209562543 10.22.241.152 (30 Apr 2008 06:35:43 -0700)
X-Original-Trace: 30 Apr 2008 06:35:43 -0700, vip152.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:86754
Article PK: 416013

Aha! I've worked out what we're doing wrong, we should be using the
TreeNodeSelected event, not rowfocuschanged.
Sorry to trouble you all
M

"MattMale" <mmale@chubb.com> wrote in message
news:48185710$1@forums-1-dub...
> Hi,
>
> We have a treeview datawindow in PB10.5.1. When the user clicks around
> using the mouse, the expected events are all triggered (rowfocuschanged
> etc).
>
> But when they use the up/down arrow keys this doesn't happen.
>
> I've tried coding round this using the pbm_dwnkey event, but the current
> row (as returned by GetRow) isn't changing, so this opens a can of worms
> (e.g. would need to programmatically keep track of the current row).
>
> Is there a simple solution? Failing that, is there a way of disabling the
> arrow key navigation altogether?
>
> Many thanks
> Matt
>