copies(_c) DEPRECATED
copies(function_code.i2.r, row.i2.r, left_column.i2.r)
copies_c(function_code.i4.v, row.i4.v, left_column.i4.v)
The following steps should be taken to support a fixed copies field.
At program initialization, "row" and "left_column" should point to an
8 character field on the color TV which will be used to activate
the copy pull-down window. There must be at least 4 more rows beneath
this activation field on the color TV. COPIES will initialize this
field to *Copies*. When COPIES detects on interrupt in the copy
activation field, various copy options will be displayed (dependent
on the current slot running the application) on the color
TV in a window. (The background window is resized if necessary.)
A second window containing information on the current printer queue
will be displayed in another window (Only if the destination
is a printer). COPIES will will wait for any interrupt and will take
the appropiate action, or if the interrupt occurs outside the
window(s), will return to the calling program. The color TV will
be restored to its normal state. A second option is to create a
popup copies window by passing a function code value of
COPY_CREATE_WINDOW. In this case, the row and column arguments
will define the upper left hand corner of the copies window.
function_code function code
(COPY_INITIALIZE -> initialize fixed copies field,
COPY_INITIALIZE_CALLBACK -> initialize fixed copies
field to be serviced
by a callback
(requires the use of
window_intype),
COPY_TERMINATE -> terminate fixed copies field,
("row" = COPY_SAVE_POSITION -> save copy row
and column,
"row" = COPY_RESTORE_POSITION -> restore copy
row and column),
COPY_SERVICE -> call during keyboard interrupts to
open the copies window,
COPY_CREATE_WINDOW -> create copies window
(no initialization necessary))
row current cursor row (If a value of WMNGR_CENTER is
passed for this argument and "function_code" has
a value of COPY_CREATE_WINDOW, the copies window will
be centered vertically in the background window.)
left_column current cursor column (If a value of WMNGR_CENTER is
passed for this argument and "function_code" has
a value of COPY_CREATE_WINDOW, the copies window will
be centered horizontally in the background window.)
This function requires the following include files:
clib_h
Related functions:
utility_window_init_c, utility_window_c, hdcopy,
window_field_create_c, window_intype
C/C++ usage:
int function_code = COPY_INITIALIZE;
int row = 1;
int left_column = 61;
copies_c(function_code,row,left_column);