Home » Archimedes archive » Acorn User » AU 1994-12.adf » !StarInfo_StarInfo » Francis/!ResCol/!Help
Francis/!ResCol/!Help
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Archimedes archive » Acorn User » AU 1994-12.adf » !StarInfo_StarInfo |
Filename: | Francis/!ResCol/!Help |
Read OK: | ✔ |
File size: | 0B2D bytes |
Load address: | 0000 |
Exec address: | 0000 |
File contents
!ResCol Written by DMFrancis, June 1994 ===================================================== PURPOSE ------- This utility can be used to select screen resolutions and colours directly, instead of using the display mode numbers required by the icon bar Palette. SCOPE ----- Only those pixel/colour combinations detailed in the Acorn documentation (User Guide p. 220, PRM p. 4-554) are available. Although the routine was developed using an A3010, i.e. RISC OS 3, provision has been made to permit use on machines running RISC OS 2. INSTALLATION ------------ Double click on the icon in the directory display. USE --- RISC OS 2: Operation is the same as for RISC OS 3 machines, but with one small difference. RISC OS 2 cannot detect the monitor connected, so a dialogue box is provided listing the six monitor types possible. ResCol cannot be used until one is chosen. The type selected will be stored automatically for future reference. RISC OS 3: Clicking select over the icon bar icon will open the selector window. The title of this window will show the monitor type detected by the operating system. The display-only fields show the current screen resolution and colours. The four buttons work as follows: Cancel - closes the window without making any changes Change - changes mode based on the values currently showing in the two display fields Colour menu - lists all colour options Pixel menu - lists all screen resolutions available for use by the current monitor Messages are displayed in the event that there is insufficient memory to implement the change requested, and if the chosen combination of pixels/colours is not recogised by RISC OS. UNUSUAL FEATURES ---------------- If a window is not at the front, clicking anywhere on the window background will bring the window to the front. KNOWN BUGS ---------- 1) Upon changing mode the selector window does not stay near the icon on the icon bar, but 'floats' from left to right depending on the relative sizes of the old and new screens. 2) More than one copy of ResCol can be resident in memory at the same time. TECHNICAL NOTE -------------- 1) All files that comprise this application are locked to prevent accidental erasure. 2) Three application sprites are provided, one for 2x4 pixel modes, one for square pixel modes, and a third for monochrome. Amend the names in !Sprites as appropriate for the monitor in use. 3) PROCbring_to_front causes the window to lose the input focus. This is not a problem in this application because the only input is via menus. CORRESPONDENCE -------------- Comments, suggestions, gripes, praise, whatever, send to 43, Hawthorne Close, Congleton, Cheshire, CW12 4UF (Send a RISC PC too, if you have a spare one just lying around!)
00000000 21 52 65 73 43 6f 6c 0a 0a 57 72 69 74 74 65 6e |!ResCol..Written| 00000010 20 62 79 20 44 4d 46 72 61 6e 63 69 73 2c 20 4a | by DMFrancis, J| 00000020 75 6e 65 20 31 39 39 34 0a 3d 3d 3d 3d 3d 3d 3d |une 1994.=======| 00000030 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d |================| * 00000050 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 3d 0a 0a |==============..| 00000060 0a 50 55 52 50 4f 53 45 20 20 20 20 20 20 20 20 |.PURPOSE | 00000070 20 20 20 20 20 20 20 20 20 20 20 20 20 20 0a 2d | .-| 00000080 2d 2d 2d 2d 2d 2d 0a 0a 54 68 69 73 20 75 74 69 |------..This uti| 00000090 6c 69 74 79 20 63 61 6e 20 62 65 20 75 73 65 64 |lity can be used| 000000a0 20 74 6f 20 73 65 6c 65 63 74 20 73 63 72 65 65 | to select scree| 000000b0 6e 20 72 65 73 6f 6c 75 74 69 6f 6e 73 0a 61 6e |n resolutions.an| 000000c0 64 20 63 6f 6c 6f 75 72 73 20 64 69 72 65 63 74 |d colours direct| 000000d0 6c 79 2c 20 69 6e 73 74 65 61 64 20 6f 66 20 75 |ly, instead of u| 000000e0 73 69 6e 67 20 74 68 65 20 64 69 73 70 6c 61 79 |sing the display| 000000f0 0a 6d 6f 64 65 20 6e 75 6d 62 65 72 73 20 72 65 |.mode numbers re| 00000100 71 75 69 72 65 64 20 62 79 20 74 68 65 20 69 63 |quired by the ic| 00000110 6f 6e 20 62 61 72 20 50 61 6c 65 74 74 65 2e 0a |on bar Palette..| 00000120 20 20 20 20 20 0a 0a 53 43 4f 50 45 20 20 0a 2d | ..SCOPE .-| 00000130 2d 2d 2d 2d 0a 0a 4f 6e 6c 79 20 74 68 6f 73 65 |----..Only those| 00000140 20 70 69 78 65 6c 2f 63 6f 6c 6f 75 72 20 63 6f | pixel/colour co| 00000150 6d 62 69 6e 61 74 69 6f 6e 73 20 64 65 74 61 69 |mbinations detai| 00000160 6c 65 64 20 69 6e 20 74 68 65 0a 41 63 6f 72 6e |led in the.Acorn| 00000170 20 64 6f 63 75 6d 65 6e 74 61 74 69 6f 6e 20 28 | documentation (| 00000180 55 73 65 72 20 47 75 69 64 65 20 70 2e 20 32 32 |User Guide p. 22| 00000190 30 2c 20 50 52 4d 20 70 2e 20 34 2d 35 35 34 29 |0, PRM p. 4-554)| 000001a0 0a 61 72 65 20 61 76 61 69 6c 61 62 6c 65 2e 0a |.are available..| 000001b0 0a 41 6c 74 68 6f 75 67 68 20 74 68 65 20 72 6f |.Although the ro| 000001c0 75 74 69 6e 65 20 77 61 73 20 64 65 76 65 6c 6f |utine was develo| 000001d0 70 65 64 20 75 73 69 6e 67 20 61 6e 20 41 33 30 |ped using an A30| 000001e0 31 30 2c 0a 69 2e 65 2e 20 52 49 53 43 20 4f 53 |10,.i.e. RISC OS| 000001f0 20 33 2c 20 70 72 6f 76 69 73 69 6f 6e 20 68 61 | 3, provision ha| 00000200 73 20 62 65 65 6e 20 6d 61 64 65 20 74 6f 20 70 |s been made to p| 00000210 65 72 6d 69 74 20 75 73 65 0a 6f 6e 20 6d 61 63 |ermit use.on mac| 00000220 68 69 6e 65 73 20 72 75 6e 6e 69 6e 67 20 52 49 |hines running RI| 00000230 53 43 20 4f 53 20 32 2e 0a 0a 0a 49 4e 53 54 41 |SC OS 2....INSTA| 00000240 4c 4c 41 54 49 4f 4e 0a 2d 2d 2d 2d 2d 2d 2d 2d |LLATION.--------| 00000250 2d 2d 2d 2d 0a 0a 44 6f 75 62 6c 65 20 63 6c 69 |----..Double cli| 00000260 63 6b 20 6f 6e 20 74 68 65 20 69 63 6f 6e 20 69 |ck on the icon i| 00000270 6e 20 74 68 65 20 64 69 72 65 63 74 6f 72 79 20 |n the directory | 00000280 64 69 73 70 6c 61 79 2e 0a 0a 0a 55 53 45 0a 2d |display....USE.-| 00000290 2d 2d 0a 0a 52 49 53 43 20 4f 53 20 32 3a 0a 0a |--..RISC OS 2:..| 000002a0 4f 70 65 72 61 74 69 6f 6e 20 69 73 20 74 68 65 |Operation is the| 000002b0 20 73 61 6d 65 20 61 73 20 66 6f 72 20 52 49 53 | same as for RIS| 000002c0 43 20 4f 53 20 33 20 6d 61 63 68 69 6e 65 73 2c |C OS 3 machines,| 000002d0 20 62 75 74 0a 77 69 74 68 20 6f 6e 65 20 73 6d | but.with one sm| 000002e0 61 6c 6c 20 64 69 66 66 65 72 65 6e 63 65 2e 0a |all difference..| 000002f0 0a 52 49 53 43 20 4f 53 20 32 20 63 61 6e 6e 6f |.RISC OS 2 canno| 00000300 74 20 64 65 74 65 63 74 20 74 68 65 20 6d 6f 6e |t detect the mon| 00000310 69 74 6f 72 20 63 6f 6e 6e 65 63 74 65 64 2c 20 |itor connected, | 00000320 73 6f 20 61 0a 64 69 61 6c 6f 67 75 65 20 62 6f |so a.dialogue bo| 00000330 78 20 69 73 20 70 72 6f 76 69 64 65 64 20 6c 69 |x is provided li| 00000340 73 74 69 6e 67 20 74 68 65 20 73 69 78 20 6d 6f |sting the six mo| 00000350 6e 69 74 6f 72 20 74 79 70 65 73 0a 70 6f 73 73 |nitor types.poss| 00000360 69 62 6c 65 2e 20 52 65 73 43 6f 6c 20 63 61 6e |ible. ResCol can| 00000370 6e 6f 74 20 62 65 20 75 73 65 64 20 75 6e 74 69 |not be used unti| 00000380 6c 20 6f 6e 65 20 69 73 20 63 68 6f 73 65 6e 2e |l one is chosen.| 00000390 0a 0a 54 68 65 20 74 79 70 65 20 73 65 6c 65 63 |..The type selec| 000003a0 74 65 64 20 77 69 6c 6c 20 62 65 20 73 74 6f 72 |ted will be stor| 000003b0 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 |ed automatically| 000003c0 20 66 6f 72 0a 66 75 74 75 72 65 20 72 65 66 65 | for.future refe| 000003d0 72 65 6e 63 65 2e 0a 0a 52 49 53 43 20 4f 53 20 |rence...RISC OS | 000003e0 33 3a 0a 0a 43 6c 69 63 6b 69 6e 67 20 73 65 6c |3:..Clicking sel| 000003f0 65 63 74 20 6f 76 65 72 20 74 68 65 20 69 63 6f |ect over the ico| 00000400 6e 20 62 61 72 20 69 63 6f 6e 20 77 69 6c 6c 20 |n bar icon will | 00000410 6f 70 65 6e 20 74 68 65 0a 73 65 6c 65 63 74 6f |open the.selecto| 00000420 72 20 77 69 6e 64 6f 77 2e 20 54 68 65 20 74 69 |r window. The ti| 00000430 74 6c 65 20 6f 66 20 74 68 69 73 20 77 69 6e 64 |tle of this wind| 00000440 6f 77 20 77 69 6c 6c 20 73 68 6f 77 0a 74 68 65 |ow will show.the| 00000450 20 6d 6f 6e 69 74 6f 72 20 74 79 70 65 20 64 65 | monitor type de| 00000460 74 65 63 74 65 64 20 62 79 20 74 68 65 20 6f 70 |tected by the op| 00000470 65 72 61 74 69 6e 67 20 73 79 73 74 65 6d 2e 0a |erating system..| 00000480 54 68 65 20 64 69 73 70 6c 61 79 2d 6f 6e 6c 79 |The display-only| 00000490 20 66 69 65 6c 64 73 20 73 68 6f 77 20 74 68 65 | fields show the| 000004a0 20 63 75 72 72 65 6e 74 20 73 63 72 65 65 6e 0a | current screen.| 000004b0 72 65 73 6f 6c 75 74 69 6f 6e 20 61 6e 64 20 63 |resolution and c| 000004c0 6f 6c 6f 75 72 73 2e 0a 0a 54 68 65 20 66 6f 75 |olours...The fou| 000004d0 72 20 62 75 74 74 6f 6e 73 20 77 6f 72 6b 20 61 |r buttons work a| 000004e0 73 20 66 6f 6c 6c 6f 77 73 3a 0a 0a 43 61 6e 63 |s follows:..Canc| 000004f0 65 6c 20 2d 20 63 6c 6f 73 65 73 20 74 68 65 20 |el - closes the | 00000500 77 69 6e 64 6f 77 20 77 69 74 68 6f 75 74 20 6d |window without m| 00000510 61 6b 69 6e 67 20 61 6e 79 20 63 68 61 6e 67 65 |aking any change| 00000520 73 0a 43 68 61 6e 67 65 20 2d 20 63 68 61 6e 67 |s.Change - chang| 00000530 65 73 20 6d 6f 64 65 20 62 61 73 65 64 20 6f 6e |es mode based on| 00000540 20 74 68 65 20 76 61 6c 75 65 73 20 63 75 72 72 | the values curr| 00000550 65 6e 74 6c 79 0a 20 20 20 20 20 20 20 20 20 73 |ently. s| 00000560 68 6f 77 69 6e 67 20 69 6e 20 74 68 65 20 74 77 |howing in the tw| 00000570 6f 20 64 69 73 70 6c 61 79 20 66 69 65 6c 64 73 |o display fields| 00000580 0a 43 6f 6c 6f 75 72 20 6d 65 6e 75 20 2d 20 6c |.Colour menu - l| 00000590 69 73 74 73 20 61 6c 6c 20 63 6f 6c 6f 75 72 20 |ists all colour | 000005a0 6f 70 74 69 6f 6e 73 0a 50 69 78 65 6c 20 6d 65 |options.Pixel me| 000005b0 6e 75 20 20 2d 20 6c 69 73 74 73 20 61 6c 6c 20 |nu - lists all | 000005c0 73 63 72 65 65 6e 20 72 65 73 6f 6c 75 74 69 6f |screen resolutio| 000005d0 6e 73 20 61 76 61 69 6c 61 62 6c 65 0a 20 20 20 |ns available. | 000005e0 20 20 20 20 20 20 20 20 20 20 20 66 6f 72 20 75 | for u| 000005f0 73 65 20 62 79 20 74 68 65 20 63 75 72 72 65 6e |se by the curren| 00000600 74 20 6d 6f 6e 69 74 6f 72 0a 0a 4d 65 73 73 61 |t monitor..Messa| 00000610 67 65 73 20 61 72 65 20 64 69 73 70 6c 61 79 65 |ges are displaye| 00000620 64 20 69 6e 20 74 68 65 20 65 76 65 6e 74 20 74 |d in the event t| 00000630 68 61 74 20 74 68 65 72 65 20 69 73 0a 69 6e 73 |hat there is.ins| 00000640 75 66 66 69 63 69 65 6e 74 20 6d 65 6d 6f 72 79 |ufficient memory| 00000650 20 74 6f 20 69 6d 70 6c 65 6d 65 6e 74 20 74 68 | to implement th| 00000660 65 20 63 68 61 6e 67 65 20 72 65 71 75 65 73 74 |e change request| 00000670 65 64 2c 0a 61 6e 64 20 69 66 20 74 68 65 20 63 |ed,.and if the c| 00000680 68 6f 73 65 6e 20 63 6f 6d 62 69 6e 61 74 69 6f |hosen combinatio| 00000690 6e 20 6f 66 20 70 69 78 65 6c 73 2f 63 6f 6c 6f |n of pixels/colo| 000006a0 75 72 73 20 69 73 0a 6e 6f 74 20 72 65 63 6f 67 |urs is.not recog| 000006b0 69 73 65 64 20 62 79 20 52 49 53 43 20 4f 53 2e |ised by RISC OS.| 000006c0 0a 0a 20 20 20 20 20 20 20 20 20 20 20 0a 55 4e |.. .UN| 000006d0 55 53 55 41 4c 20 46 45 41 54 55 52 45 53 0a 2d |USUAL FEATURES.-| 000006e0 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a |---------------.| 000006f0 0a 49 66 20 61 20 77 69 6e 64 6f 77 20 69 73 20 |.If a window is | 00000700 6e 6f 74 20 61 74 20 74 68 65 20 66 72 6f 6e 74 |not at the front| 00000710 2c 20 63 6c 69 63 6b 69 6e 67 20 61 6e 79 77 68 |, clicking anywh| 00000720 65 72 65 20 6f 6e 0a 74 68 65 20 77 69 6e 64 6f |ere on.the windo| 00000730 77 20 62 61 63 6b 67 72 6f 75 6e 64 20 77 69 6c |w background wil| 00000740 6c 20 62 72 69 6e 67 20 74 68 65 20 77 69 6e 64 |l bring the wind| 00000750 6f 77 20 74 6f 20 74 68 65 0a 66 72 6f 6e 74 2e |ow to the.front.| 00000760 0a 0a 0a 4b 4e 4f 57 4e 20 42 55 47 53 0a 2d 2d |...KNOWN BUGS.--| 00000770 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 31 29 20 55 70 6f |--------..1) Upo| 00000780 6e 20 63 68 61 6e 67 69 6e 67 20 6d 6f 64 65 20 |n changing mode | 00000790 74 68 65 20 73 65 6c 65 63 74 6f 72 20 77 69 6e |the selector win| 000007a0 64 6f 77 20 64 6f 65 73 20 6e 6f 74 20 73 74 61 |dow does not sta| 000007b0 79 0a 20 20 20 6e 65 61 72 20 74 68 65 20 69 63 |y. near the ic| 000007c0 6f 6e 20 6f 6e 20 74 68 65 20 69 63 6f 6e 20 62 |on on the icon b| 000007d0 61 72 2c 20 62 75 74 20 27 66 6c 6f 61 74 73 27 |ar, but 'floats'| 000007e0 20 66 72 6f 6d 20 6c 65 66 74 0a 20 20 20 74 6f | from left. to| 000007f0 20 72 69 67 68 74 20 64 65 70 65 6e 64 69 6e 67 | right depending| 00000800 20 6f 6e 20 74 68 65 20 72 65 6c 61 74 69 76 65 | on the relative| 00000810 20 73 69 7a 65 73 20 6f 66 20 74 68 65 20 6f 6c | sizes of the ol| 00000820 64 0a 20 20 20 61 6e 64 20 6e 65 77 20 73 63 72 |d. and new scr| 00000830 65 65 6e 73 2e 0a 32 29 20 4d 6f 72 65 20 74 68 |eens..2) More th| 00000840 61 6e 20 6f 6e 65 20 63 6f 70 79 20 6f 66 20 52 |an one copy of R| 00000850 65 73 43 6f 6c 20 63 61 6e 20 62 65 20 72 65 73 |esCol can be res| 00000860 69 64 65 6e 74 20 69 6e 20 6d 65 6d 6f 72 79 0a |ident in memory.| 00000870 20 20 20 61 74 20 74 68 65 20 73 61 6d 65 20 74 | at the same t| 00000880 69 6d 65 2e 0a 0a 0a 54 45 43 48 4e 49 43 41 4c |ime....TECHNICAL| 00000890 20 4e 4f 54 45 0a 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d | NOTE.----------| 000008a0 2d 2d 2d 2d 0a 0a 31 29 20 41 6c 6c 20 66 69 6c |----..1) All fil| 000008b0 65 73 20 74 68 61 74 20 63 6f 6d 70 72 69 73 65 |es that comprise| 000008c0 20 74 68 69 73 20 61 70 70 6c 69 63 61 74 69 6f | this applicatio| 000008d0 6e 20 61 72 65 20 6c 6f 63 6b 65 64 0a 20 20 20 |n are locked. | 000008e0 74 6f 20 70 72 65 76 65 6e 74 20 61 63 63 69 64 |to prevent accid| 000008f0 65 6e 74 61 6c 20 65 72 61 73 75 72 65 2e 0a 32 |ental erasure..2| 00000900 29 20 54 68 72 65 65 20 61 70 70 6c 69 63 61 74 |) Three applicat| 00000910 69 6f 6e 20 73 70 72 69 74 65 73 20 61 72 65 20 |ion sprites are | 00000920 70 72 6f 76 69 64 65 64 2c 20 6f 6e 65 20 66 6f |provided, one fo| 00000930 72 20 32 78 34 0a 20 20 20 70 69 78 65 6c 20 6d |r 2x4. pixel m| 00000940 6f 64 65 73 2c 20 6f 6e 65 20 66 6f 72 20 73 71 |odes, one for sq| 00000950 75 61 72 65 20 70 69 78 65 6c 20 6d 6f 64 65 73 |uare pixel modes| 00000960 2c 20 61 6e 64 20 61 20 74 68 69 72 64 0a 20 20 |, and a third. | 00000970 20 66 6f 72 20 6d 6f 6e 6f 63 68 72 6f 6d 65 2e | for monochrome.| 00000980 20 41 6d 65 6e 64 20 74 68 65 20 6e 61 6d 65 73 | Amend the names| 00000990 20 69 6e 20 21 53 70 72 69 74 65 73 20 61 73 0a | in !Sprites as.| 000009a0 20 20 20 61 70 70 72 6f 70 72 69 61 74 65 20 66 | appropriate f| 000009b0 6f 72 20 74 68 65 20 6d 6f 6e 69 74 6f 72 20 69 |or the monitor i| 000009c0 6e 20 75 73 65 2e 0a 33 29 20 50 52 4f 43 62 72 |n use..3) PROCbr| 000009d0 69 6e 67 5f 74 6f 5f 66 72 6f 6e 74 20 63 61 75 |ing_to_front cau| 000009e0 73 65 73 20 74 68 65 20 77 69 6e 64 6f 77 20 74 |ses the window t| 000009f0 6f 20 6c 6f 73 65 20 74 68 65 0a 20 20 20 69 6e |o lose the. in| 00000a00 70 75 74 20 66 6f 63 75 73 2e 20 54 68 69 73 20 |put focus. This | 00000a10 69 73 20 6e 6f 74 20 61 20 70 72 6f 62 6c 65 6d |is not a problem| 00000a20 20 69 6e 20 74 68 69 73 20 61 70 70 6c 69 63 61 | in this applica| 00000a30 74 69 6f 6e 0a 20 20 20 62 65 63 61 75 73 65 20 |tion. because | 00000a40 74 68 65 20 6f 6e 6c 79 20 69 6e 70 75 74 20 69 |the only input i| 00000a50 73 20 76 69 61 20 6d 65 6e 75 73 2e 0a 0a 0a 43 |s via menus....C| 00000a60 4f 52 52 45 53 50 4f 4e 44 45 4e 43 45 0a 2d 2d |ORRESPONDENCE.--| 00000a70 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 0a 0a 43 6f |------------..Co| 00000a80 6d 6d 65 6e 74 73 2c 20 73 75 67 67 65 73 74 69 |mments, suggesti| 00000a90 6f 6e 73 2c 20 67 72 69 70 65 73 2c 20 70 72 61 |ons, gripes, pra| 00000aa0 69 73 65 2c 20 77 68 61 74 65 76 65 72 2c 20 73 |ise, whatever, s| 00000ab0 65 6e 64 20 74 6f 0a 0a 34 33 2c 20 48 61 77 74 |end to..43, Hawt| 00000ac0 68 6f 72 6e 65 20 43 6c 6f 73 65 2c 20 43 6f 6e |horne Close, Con| 00000ad0 67 6c 65 74 6f 6e 2c 20 43 68 65 73 68 69 72 65 |gleton, Cheshire| 00000ae0 2c 20 43 57 31 32 20 34 55 46 0a 0a 28 53 65 6e |, CW12 4UF..(Sen| 00000af0 64 20 61 20 52 49 53 43 20 50 43 20 74 6f 6f 2c |d a RISC PC too,| 00000b00 20 69 66 20 79 6f 75 20 68 61 76 65 20 61 20 73 | if you have a s| 00000b10 70 61 72 65 20 6f 6e 65 20 6a 75 73 74 20 6c 79 |pare one just ly| 00000b20 69 6e 67 0a 61 72 6f 75 6e 64 21 29 0a |ing.around!).| 00000b2d