home *** CD-ROM | disk | FTP | other *** search
- /*
- ** GetModeID.adpro
- **
- ** $VER: GetModeID.adpro 1.0.0 (11.01.94)
- **
- ** This REXX program is used to get the ModeID of a particular screen mode.
- ** This is particularly useful when used with the ADPro Get & Set screen mode
- ** rexx commands which require a screen mode ID. This will also get mode IDs
- ** for third party graphics cards supported through ADPro's render libraries.
- **
- ** This the screen mode requestor will only show currently available screen modes.
- **
- ** This script requires ADPro v2.5.0 (or higher).
- **
- ** Copyright © 1990-1993 ASDG, Incorporated
- ** All Rights Reserved
- */
-
- ADDRESS "ADPro"
- OPTIONS RESULTS
-
- NL = '0A'X
- SQ = '27'X
- DQ = '22'X
- TRUE = 1
- FALSE = 0
-
- /*
- ** Get a screen mode requestor
- */
-
- continue = TRUE
- DO WHILE (continue = TRUE)
-
- ADPRO_TO_FRONT
-
- GET_SCREEN_MODE '"Select a screen mode"' Amiga "XXX" 320 200 4
- ScreenMode = ADPRO_RESULT
- IF (RC ~= 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Could not get screen modes."
- EXIT 10
- END
-
- PARSE VAR ScreenMode RenderLib ModeID Width Height Depth
-
- text = "Selected screen mode information:" || NL || NL||,
- "Render Library = " || RenderLib || NL ||,
- "Mode ID = " || ModeID || NL ||,
- "Width = " || Width || NL ||,
- "Height = " || Height || NL ||,
- "Depth = " || Depth || NL || NL ||,
- "Check another screen mode ?"
-
- OKAYN '"GetScreenModeID.adpro"' '"'text'"' '"Yes|No"'
- IF (RC = 0) THEN DO
- ADPRO_TO_FRONT
- OKAY1 "Exiting..."
- EXIT 0
- END
-
- ELSE IF (RC = 1) THEN
- continue = TRUE
-
- END