GRQRY.DEF 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. (******************************************************************************)
  2. (* GRQRY.DEF *)
  3. (* *)
  4. (* Interface to MetWINDOW device selection routines. *)
  5. (* *)
  6. (* PSW 06/28/91 08:30am *)
  7. (******************************************************************************)
  8. DEFINITION MODULE GrQry;
  9. (*
  10. * Graphix
  11. * Release 3.7
  12. * (c) Copyright 1986-1992 PMI
  13. * Green Bay, Wisconsin
  14. * (414) 468-6040
  15. * All rights reserved
  16. *
  17. *)
  18. PROCEDURE GrQuery(VAR GrafixCard, CommPort: INTEGER);
  19. (****************************************************************************
  20. Description:
  21. GrQuery() provides a number of facilities for determining the graphics
  22. card and the mouse in use. Firstly GrafixCard and CommPort are
  23. initialised using GrInit(). Then the command line is parsed for any user
  24. specified options. Finally a menu of the options is presented to allow
  25. the user to override the selected defaults.
  26. ****************************************************************************)
  27. PROCEDURE GrInit(VAR GrafixCard, CommPort: INTEGER);
  28. (****************************************************************************
  29. Description:
  30. GrInit() provides a simple means of determining the graphics card and
  31. the mouse in use. GrafixCard and CommPort are initialised using
  32. QueryGrafix and QueryComm. If an error occurs GrInitErr() is invoked
  33. and the program halted.
  34. ****************************************************************************)
  35. PROCEDURE GrInitErr(GrafixCard, CommPort, val: INTEGER);
  36. (****************************************************************************
  37. Description:
  38. GrInitErr() provides a means of terminating a program with a diagnostic
  39. message if an initialisation error occurs.
  40. ****************************************************************************)
  41. PROCEDURE GrQuit(Msg: ARRAY OF CHAR; Val: SHORTCARD);
  42. (****************************************************************************
  43. Description:
  44. GrQuit() provides a means of safely halting a MetaWINDOW program. Msg
  45. can be empty to indicate a normal termination or an error message. Val
  46. is the program exit code. GrQuit() also determines the valu of the
  47. MetaWINDOW status register and prints the information in the form:
  48. procedure id / error code. The procedure id and codes are documented in
  49. Appendix D of the MetaWINDOW manual.
  50. ****************************************************************************)
  51. END GrQry.