powebuilder 11.5 moving thru fields with arrows

Is it possible to define the up arrow to act as shit+tab (move to previous field) and down arrow as tab (move to next field)?  

i am using powerbuilder 11.5
basilhs_sAsked:
Who is Participating?
 
diasroshanCommented:
Hi,

Here goes,
Create a new event, ue_keydown
with Event ID as pbm_dwnkey
Script below and screenshot attached.


Choose Case Key

Case KeyUpArrow!
      // Back tabbing with KeyUpArrow key
      keybd_event(16,0,0,0) // SHIFT Depressed
      keybd_event(9,0,0,0) // TAB Depressed
      keybd_event(16,0,2,0) // SHIFT Released (CANNOT BE OMITTED)
      keybd_event(9,0,2,0) // TAB Released (Can be omitted)
      Return 1
Case KeyDownArrow!
      // Forward tabbing with KeyDownArrow key
      keybd_event(9,0,0,0) // TAB Depressed
      keybd_event(9,0,2,0) // TAB Released (Can be omitted)
      Return 1
End Choose

Cheers,
Rosh
event.JPG
0
 
basilhs_sAuthor Commented:
i am getting a compiler error for kbd_event. can we do the same thing with send(handle)?
0
 
basilhs_sAuthor Commented:
excell solution. thank you very much
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.