Controlling the Beep for Different Error Types

In the Vermont Views system environment, three different classes of actions will cause a beep of a certain pitch and duration to be sounded. The beep classes and their default durations and pitches are shown in Table 49.3. Note that for systems that do not support variable beeps, specifying both a pitch and duration greater than 0 causes the standard bell to ring.

Table 49.3: Classes of Actions Causing A Beep

What Beep Indicates Beep Class Default Duration Default Pitch
Nothing happened when the key was pressed. BPNOACTION BPMEDIUM BPLOW
Errors or invalid field input. BPERROR BPLONG BPMIDDLE
The cursor has automatically moved to the next item, because AUTOMOVE is ON (data forms only). BPAUTOMOVE OFF OFF

To change or turn off the beep for any of these classes, call the se_beeps() function:

se_beeps(beep_class, hsec, freq)
 
int beep_class;
/* #defined beep class
*/
int hsec;
/* Duration of beep in hundredths of a second
*/
int freq;
/* Pitch of beep in hertz
*/

It is recommended that for the BPAUTOMOVE beep class that you use BPSHORT for the duration and BPMIDDLE or BPLOW for the pitch. This setting produces a "tick" and is not annoying to the user.


Home Contents Previous Next