Figure 211 shows how to specify the MOUBTN keyword.at
Figure 211. Specifying the MOUBTN Keyword at Record Level
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 A MOUBTN(*URP CF03) A MOUBTN(*SRP CF12) A CF12(12 'CANCEL') A R RECORD1 A MOUBTN(*ULP *UMP ROLLUP) A MOUBTN(*UMP *ULP ROLLDOWN) A 1 10'ONE--:' A FIELD1 10A I 1 17TEXT('ONE') A 2 10'TWO--:' A FIELD2 10A I 2 17TEXT('TWO') A
In this example, 2 Programmable Mouse Button events have been defined that will be in effect for all records within this file (unless overridden at the record level). These definitions associate the unshifted right mouse button pressed event with the CF03 key and the shifted right mouse button pressed event with the CF12 key. The CF03 key has no response indicator associated with it while the CF12 key has response indicator 12 associated with it.
Within RECORD1, two two-event mouse button events have been defined. The first associates the unshifted left mouse button pressed followed by the unshifted middle mouse button pressed with the ROLLUP key. The second associates the unshifted middle mouse button pressed followed by the unshifted left mouse button pressed with the ROLLDOWN key. These definitions are only valid when RECORD1 is the last record to be written to the display.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.