Arbortext Command Language > Callbacks > doc_add_callback > print_panel Callback Type
  
print_panel Callback Type
Function prototype:
function funcname (doc, prtcmd, op)
print_panel is called when the user dismisses the Print Editor View dialog box.
Arguments
doc is the identifier of the document associated with this function.
prtcmd is a string giving the actual print command used to execute the print request.
op is the function callback operation. Callbacks are called twice in succession with op specifying the stage of callback operation.
1. op == 1 first call — The returned argument specifies whether the execution should continue or be stopped:
0 — Continue callback processing.
-1 — Stop further callback processing.
2. op == 2 second call — Occurs unless the processing was stopped during the first call. The returned argument allows or prevents basic Arbortext Editor processing after all callbacks have been called:
0 — Basic Arbortext Editor processing allowed.
-1 — Basic Arbortext Editor processing prevented.
Notes
prtcmd is the null string if the panel was dismissed without the user pressing the OK button.
Related Topics
print command