Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Hard/Idiot Question, navigate DW via keyboard ?

58 views
Skip to first unread message

steven

unread,
Jan 16, 2008, 8:24:39 PM1/16/08
to
Hello to you,

I'm newbie in PB world, using PB9.
May background is VB6 using lots of third-party activex
components.

How to navigate DW via keyboard ?

I means, I can navigate it likes MS-EXCEL, or others GRID
Components.

Able to navigate POINTER to LEFT, RIGHT, UP, DOWN, by
[ENTER]/[TAB], [LEFT ARROW], [RIGHT ARROW] keystroke.

Can do Smart-Scrolling when Column is activate.

or All of you accept the "standard-behaviour" comes from PB
?

What is your general-practice for DW Navigation without
using MOUSE ?

Please advice & show me how to code it

Regards,
Steven

Dave Fish [TeamSybase]

unread,
Jan 16, 2008, 10:40:21 PM1/16/08
to
I don't really understand your question. Users can navigate a
DataWindow using the tab key. You can trap the enter key and make it
behave like the tab key.

Regards,
Dave Fish
Sybase

PowerBuilder Blog:
http://powerbuilderevangelist.blogspot.com/

steven

unread,
Jan 17, 2008, 1:59:31 AM1/17/08
to
Imagine if DW have 30 columns and 100 rows.

That means you have face to automatic-scrolling when the
column is focused (DW can be freeform, tabular).

But DW GRID style seems no problem in navigate via keyboard.

Regards,
Steven

Jeremy Lakeman

unread,
Jan 17, 2008, 7:43:24 AM1/17/08
to

Does this datawindow you are trying to navigate have any columns in
the tab order?
Do you want to see the row that has focus even though no fields are
editable?
Do you want that black selection thingy on a grid datawindow to move
around via the keyboard?

We don't really know what you want yet.

Dave Fish [TeamSybase]

unread,
Jan 17, 2008, 11:15:59 AM1/17/08
to
Sorry I still don't understand the issue. As the user tabs through the
columns when they get to the last column in a row it will move the
focus to the first column of the next row.

If you want them to be able to use the arrow keys to navigate it is a
bit trickier because the left and right arrow keys allow them to
navigate the characters in the column they are in. You can capture the
up and down arrow keys in the DataWindow control's key event and use
SetColumn and SetRow functions to change focus.

Regards,
Dave Fish
Sybase

PowerBuilder Blog:
http://powerbuilderevangelist.blogspot.com/

0 new messages