home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / GFX / ADPro251-3.DMS / ADPro251-3.adf / FREDScripts.lha / FREDFunctions / GetModeID < prev    next >
Encoding:
Text File  |  1994-01-31  |  1.0 KB  |  55 lines

  1. /*
  2. ** GetModeID
  3. **
  4. ** $VER: GetModeID 1.0.0 (12.1.94)
  5. **
  6. ** This ARexx script contains a function which return with screen mode info
  7. ** for use  with ADPro REXX commands that require screen mode info (Like
  8. ** GET_SCREEN_MODE or SET_ADPRO_MODE.
  9. **
  10. ** The user will have to PARSE the ModeInfo variable to get the data.
  11. **
  12. ** RTG boards that provide color mapped modes that emulate the Workbench will
  13. ** be shown as using the Amiga render library.
  14. **
  15. ** INPUTS
  16. **    User selection of a listed screen mode.
  17. **
  18. ** RETURN
  19. **    ModeInfo or "" if aborted
  20. **
  21. ** This script should work with current versions of ARexx.
  22. **
  23. ** This script requires ADPro v2.5.0 (or higher).
  24. **
  25. ** Copyright © 1994 ASDG, Incorporated
  26. ** All Rights Reserved
  27. */
  28.  
  29.  
  30. ADDRESS "ADPro"
  31. OPTIONS RESULTS
  32.  
  33. NL = '0A'X
  34. SQ = '27'X
  35. DQ = '22'X
  36. TRUE  = 1
  37. FALSE = 0
  38.  
  39.  
  40. /*
  41. ** Get a screen mode requestor
  42. */
  43.  
  44. ADPRO_TO_FRONT
  45.  
  46. GET_SCREEN_MODE '"Select a screen mode."' Amiga "XXX" 640 200 4
  47. ModeInfo = ADPRO_RESULT
  48. IF (RC ~= 0) THEN DO
  49.     ADPRO_TO_FRONT
  50.     OKAY1 "Could not get screen modes."
  51.     EXIT 10
  52. END
  53.  
  54. RETURN ModeInfo
  55.