h60669
s 00050/00000/00000
d D 1.1 83/01/20 11:15:02 tes 1 0
c date and time created 83/01/20 11:15:02 by tes
e
u
tes
mjb
U
t
T
I 1
subroutine qtitle (buffer)
########################################################################
#                                                                      #
#          THIS MATERIAL IS CONFIDENTIAL AND IS FURNISHED UNDER        #
#          A WRITTEN LICENSE AGREEMENT.  IT MAY NOT BE USED,           #
#          COPIED OR DISCLOSED TO OTHERS EXCEPT IN ACCORDANCE          #
#          WITH THE TERMS OF THAT AGREEMENT.                           #
#                                                                      #
#          COPYRIGHT (C) 1982 GRAPHIC SOFTWARE SYSTEMS INC.            #
#          ALL RIGHTS RESERVED.                                        #
#                                                                      #
#     Function: Define a menu title from given buffer                  #
#                                                                      #
#     Input Parameters:                                                #
#            buffer - (byte) buffer containing menu title to be defined#
#                                                                      #
#     Output Parameters:                                               #
#            None                                                      #
#                                                                      #
#     Routines Called:                                                 #
#            pmnitm - put a menu item to memory                        #
#            ktoi   - convert from character to integer                #
#                                                                      #
########################################################################
SHORTINT buffer(1)

SHORTINT c, svalue
integer value, i, j

# a menu title is defined as
#   "<row,column>string"
# the row,column location is defined to be in the range 1-80 inclusive,
# the string is terminated with a null byte (0) 

i= 2
call ktoi (buffer, i, value, j)
svalue = value
call pmnitm (svalue)
call ktoi (buffer, j+1, value, j)
svalue = value
call pmnitm (svalue)
i = j+1
repeat {
   c = buffer(i)
   call pmnitm (c)
   i = i+1
   } until (c == 0) 

return
end
E 1
