Screen Manager
by Lee Calcraft

This utility was first published in RISC User Volume 1 Issue 5. It is in the form of a procedure, PROCscreenman, and it allows the user to set up a palette interactively from within a program. The procedure is included here in a demonstration program. The procedure should be copied into your program and called when required (e.g. when a certain key is pressed). Note that palette files saved from the procedure are not compatible with the Wimp Palette Application.

The procedure operates in mode 12 and has six options. Save and Load allow palette files to be saved and loaded. Border allows the border colour to be set. Display lists the current palette as RGB values. Move allows the control box to be moved around the screen. Finally Quit terminates the procedure.

Clicking Select on any part of the screen allows that colour to be edited. Holding down Menu while the pointer is over one of the three RGB bars allows the bar to be dragged to the required level. Clicking Adjust sets the colour, while clicking Select cancels.
