Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PRCRIA10

PRCRIA10.m

Go to the documentation of this file.
  1. PRCRIA10 ;TPA/RAK/WASH IRMFO - Header/Footer Boxes ;8/27/96 15:37
  1. ;;5.1;IFCAP;;Oct 20, 2000
  1. ;Per VHA Directive 10-93-142, this routine should not be modified.
  1. FTRBOX(FOOTER,CENTER,VALUE) ;Footer box
  1. ;--------------------------------------------------------------------
  1. ; FOOTER - Text for footer. if none then will default to
  1. ; "Press RETURN to continue, '^' to quit".
  1. ; CENTER - If not zero then center text.
  1. ; VALUE - Value returned to calling rouine.
  1. ; "" - if iom or ioxy are not defined
  1. ; 0 - if an uparrow '^' is entered
  1. ; 1 - if return is entered
  1. ;
  1. ; ****************** WARNING **********************
  1. ; * this subroutine xecutes the variable "IOXY" *
  1. ; * to move around the screen - be sure to W @IOF *
  1. ; * to clear screen and set $y to zero *
  1. ; *************************************************
  1. ;--------------------------------------------------------------------
  1. N DIR S VALUE="" Q:'$G(IOM)!($G(IOXY)']"")
  1. ; *** for MSM ***
  1. I ^%ZOSF("OS")["MSM" S X=0 X ^%ZOSF("RM")
  1. S FOOTER=$G(FOOTER),CENTER=+$G(CENTER)
  1. I FOOTER']"" S FOOTER="Press RETURN to continue, '^' to quit"
  1. I CENTER S FOOTER=$J(" ",(IOM-$L(FOOTER)/2))_FOOTER
  1. S DX=0,DY=22 X IOXY W $$REPEAT^XLFSTR("_",IOM)
  1. ; *** for MSM ***
  1. I ^%ZOSF("OS")["MSM" S X=IOM X ^%ZOSF("RM")
  1. K DIR S DIR(0)="EA",DIR("A")=FOOTER D ^DIR S VALUE=Y
  1. Q
  1. HDRBOX(HEADER,TEXT) ;Header box
  1. ;--------------------------------------------------------------------
  1. ; HEADER() - Text array to be centered and highlighted at top of box.
  1. ; TEXT() - Additional text array to be left justified.
  1. ;
  1. ; ****************** WARNING **********************
  1. ; * this subroutine xecutes the variable "IOXY" *
  1. ; * to move around the screen - be sure to W @IOF *
  1. ; * to clear screen and set $y to zero *
  1. ; *************************************************
  1. ;--------------------------------------------------------------------
  1. Q:'$D(HEADER)&('$D(TEXT))
  1. I $G(HEADER)]"",($D(HEADER)=1) S HEADER(1)=HEADER
  1. I $D(TEXT)=1 S TEXT(1)=TEXT
  1. N IOBLC,IOBRC,IOBT,IOG1,IOG0,IOHL,IOLT,IOMT,IORT,IOTLC,IOTRC
  1. N IOTT,IOVL,IORVON,IORVOFF,I,LEN,X
  1. S X="IORVON;IORVOFF" D ENDR^%ZISS,GSET^%ZISS
  1. ; *** for MSM ***
  1. I ^%ZOSF("OS")["MSM" S X=0 X ^%ZOSF("RM")
  1. S:$G(IOHL)']"" IOHL="-"
  1. S:$G(IOVL)']"" IOVL="|"
  1. F I="IOBLC","IOBRC","IOG0","IOG1","IOTLC","IOTRC" S @I=$G(@$G(I))
  1. W @IOF,IOG1,IOTLC F I=1:1:(IOM-2) W IOHL
  1. W IOTRC S DY=$Y,I=""
  1. F S I=$O(HEADER(I)) Q:I="" S LEN=$L(HEADER(I)) D
  1. .S DX=0,DY=DY+1 X IOXY W IOVL S DX=(IOM-LEN\2) X IOXY
  1. .W IOG0,IORVON,HEADER(I),IORVOFF,IOG1 S DX=IOM X IOXY W IOVL
  1. S I="" F S I=$O(TEXT(I)) Q:I="" S LEN=$L(TEXT(I)) D
  1. .S DX=0,DY=DY+1 X IOXY W IOVL,IOG0,TEXT(I),IOG1
  1. .S DX=IOM X IOXY W IOVL
  1. S DX=0,DY=DY+1 X IOXY W IOBLC F I=1:1:(IOM-2) W IOHL
  1. S DX=IOM X IOXY W IOBRC
  1. W IOG0
  1. ; *** for MSM ***
  1. I ^%ZOSF("OS")["MSM" S X=IOM X ^%ZOSF("RM")
  1. Q