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

Prevent changing row with tab key

222 views
Skip to first unread message

Gwydion

unread,
Apr 30, 2008, 8:05:51 AM4/30/08
to
When I press TAB key on last field of a datawindow it changes the row. I
need to cicle and go to the first field in the same row

How can I make this behavior?

Best regards,
Iñaki

Jason 'Bug' Fenter [TeamSybase]

unread,
Apr 30, 2008, 10:47:06 AM4/30/08
to
You'll probably want to start in the RowFocusChanging event. You have
the option of preventing the change based on the return value you specify.

--
Off topic:
Sybase has been reviewing NNTP availability and is looking at
alternative ways to build a user community. As a test-bed /
proof-of-concept, I have personally created a community on Ning
(http://powerbuilder.ning.com). While Ning certainly doesn't offer all
of the features that I'd like to see Sybase eventually implement, I am
trying to foster some community involvement on that site. Several of the
TeamSybase members have joined already and are available to answer
questions there.

Please sign up; give it a try. My hope is that it evolves into more than
just a Q&A database, but it won't get there without your participation.

shashi

unread,
May 1, 2008, 5:06:45 AM5/1/08
to
On Apr 30, 7:47 pm, "Jason 'Bug' Fenter [TeamSybase]"

I have using this code since ages. This also deactivates the pagedown
and pageup keys - important if your DataWindow is of the freefrom type
// Create a userevent called 'keypressed' in the same or base
datawindow object
//user event - activated thru pbm_dwnkey
Choose Case Key

Case KeyPageUp!, KeyPageDown!
This.acceptText() //do nothing
Return 1
Case KeyTab!
//if the scrollvalue is changed - return to original
This.SetRedraw(FALSE)
This.Post Function ScrolltoRow(This.GetRow())
This.Post Function SetRedraw(True)
Case KeySpaceBar!, KeyDelete!, KeyBack!, KeyHome!, KeyEnd!, &
KeyLeftArrow!, KeyRightArrow!, Key5!, KeyEnter!,KeyDownArrow!,
KeyUpArrow!

// CASE eLSE
// I used to use these for other functions but now most of that has
been shifted to the editchanged event -
End Choose

0 new messages