The alarm display is updated on the screen
by calling the function AlarmDsp(). On the default alarm page, this
function is called in the Always Command so that the page will
constantly update. You can stop the update of the alarm display by
not calling this function while your form is displayed. For
example:
INT bStopDisplay;
FUNCTION
AddComment()
STRING sCom;
bStopDisplay = TRUE;
sCom = Input("Alarm", "Enter Alarm Comment",
"");
AlarmComment(sCom);
bStopDisplay =
FALSE; END
FUNCTION
AlarmDspExt(NT AN, INT nCount, INT nType)
IF NOT bStopDisplay THEN
AlarmDsp(AN, nCount, nType);
END
END
Then replace the call to AlarmDsp with AlarmDspExt(). This will
cause the alarm display to pause while the form is being displayed.
When the form is closed the alarm will start displaying again.
|