Kbase 20371: Making the Enter Key to Behave as Space Bar in Multi-Select Browse
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  1/25/2006 |
|
Status: Unverified
GOAL:
How to use the enter key as well as the space bar on your keyboard to select a row in a multi-select browse.
FACT(s) (Environment):
Progress 9.x
FIX:
Use the SELECT-FOCUSED-ROW() method in the ON RETURN OF browse trigger in order to highlight the current row in the browse. To make the enter key work exactly in the same manner as the space bar, unselect the row (if it is already highlighted) and use the following code in the trigger:
DO:
DEFINE VARIABLE iNumber AS INTEGER NO-UNDO.
iNumber = BROWSE-1:FOCUSED-ROW.
IF BROWSE-1:IS-ROW-SELECTED(iNumber) THEN
BROWSE-1:DESELECT-FOCUSED-ROW().
ELSE
BROWSE-1:SELECT-FOCUSED-ROW().
END.