home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ARM Club 3
/
TheARMClub_PDCD3.iso
/
hensa
/
colour
/
modesel_1
/
!ModeSel
/
!Help
< prev
next >
Wrap
Text File
|
1994-06-20
|
7KB
|
168 lines
!ModeSel v2.00
————————
©A Campbell 1994.
DESCRIPTION.
————————————
!ModeSel provides a more versatile way of selecting screen modes from
the RISC OS Desktop. !ModeSel gets all the modes that are suitable for
the type monitor your machine is set up for, it then groups the modes by
the number of colours they support, allowing only modes supporting a given
number of colours to be shown. !ModeSel displays the modes in a window by
the number of supported colours, giving the text and graphics resolution of
the modes and their size. Clicking on the mode will change the desktop to
that screen mode.
Modes can also be selected using a RiscOs 3.5 style mode selector.
HOW TO USE IT.
——————————————
When the application is first run it gets all the information on the
available modes. This is done in the background, so the application
can be put in your !boot file, and not halt the machine for ~15s while
it gets the info. The !Modesel icon is a monitor, with the current mode
number displayed in it. This mode number is updated whenever you change mode.
The screen of the monitor is blue of you are in rectangular pixel mode, and
green in square pixel modes.
Clicking select on the icon brings up a window showing details of modes available
grouped by the number of colours they support (if mode information is still
being read then an hourglass is displayed until it is finished). The details
shown are, the mode number, dimensions in pixels, and the amount of memory
required for the mode. Moving the pointer over the window highlights a line
containing mode details. Clicking on the line will change the desktop to the
highlighted mode. If Select was used the window will be closed, if Adjust
was used the window will remain open.
The mode currently selected is shown in red (16 and 256 colour
modes). Modes that have square pixels, and therefore use the higher
resolution sprite are shown in green.
If the ModeSel Icon is clicked on with Adjust button a RISC OS 3.5 mode
selector is given. This not give as much information as the above mode
selection window but may be preferred. There are two menus a colour menu
(top menu icon) and a resolution menu (bottom menu icon). By selecting
the correct colour/resolution combination then clicking on the change
icon a new mode can be selected.
The resolution menu only shows the pixel resolutions available for the
colour selected. Options set up still stand with this method of mode
selection. So removed modes are not available for selection, and the
method of sorting applies the the list of resolutions. This is important,
if you change the number of colours to be supported the resolution is
changed automatically to a valid one. The resolution chosen is always
the bottom option of the resolution menu, ie. the biggest value of the sort.
When this mode selection window is opened the details of the current mode
are always displayed.
OPTIONS MENU
The options menu is available in two ways by pressing the menu button
over the ModeSel Window, or as a submenu from the icon on the iconbar.
Colours This submenu allows you to change the groups of modes
that are displayed in the main window. So if you never
change to 2 colour modes then you can choose not to
display them.
Sort This submenu allows you to choose the order in which
modes are shown within each group. The choices are in
increasing order of mode number, graphical X resolution,
graphical y resolution, amount of memory required to
use the mode, and area. Area needs a bit of explanation,
it is how total area of screen appears available. So
with rectangular pixel modes the Y resolution is doubled.
Remove Mode This submenu allows you to remove details of a mode so it
is never available for selection. This option allows you
to remove modes that you never select or custom modes that
may be unuseable with your monitor.
Reinit Mode This submenu displays all the modes that have been
removed, if one of these is chosen from the menu the mode
is again selectable and is no longer
removed.
Kill Palette If this option is selected then ModeSel will be put a line in
!Boot file (when saved from the Task/Switcher menu) to kill the
palette module. ModeSel effectively replaces it.
ICONBAR MENU
Info Information about ModeSel.
Options This submenu is the options menu as described above.
Refresh Modes This option updates the mode details that are read
when ModeSel is initially run, this needs to be done
if a custom modes module is run (such as CC’s
!NewModes) after ModeSel is run.
Save Options Save the options that have been selected, these are
removed modes, sort order, and colour groups displayed.
Reset Palette This option runs the palette file !ModeSel.Palette thus
resetting the palette to the default. If your palette
is different from the standard RISC OS one save it here.
This option allows you to reset the palette if the palette
module has been killed.
QUIT Guess!!!
REASON FOR WRITING !MODESEL
———————————————————————————
After getting RISCOS 3.11 and a multisync monitor the number of
available modes became so large it became awkward to know which mode
was best at certain times so this application was written.
KNOWN BUGS
——————————
• Not serious but can remove modes that are not valid eg. 7 which means
any following removed modes are ignored.
• Interaction between changing options and updates of the RISC OS 3.5 mode
selector not quite right. Will not crash app though.
Tell me if you find anymore
HISTORY
———————
1.0 • Original Version
1.1 • Bug fixed that stops it running on some machines
• Now displays mode no in icon on icon bar
• RiscOs 3.1 3D icons used and colour groups now bordered
• Gets mode information in background
... • Rewrite using DeskLib to get access the RISC OS 3 features.
• Receive mode change message instead of checking on Null event - slowed
down ARM 2 machines.
• Reset palette option added
• Other changes that were forgotten about.
2.0 • Rewrite using OSLib as managed to loose the incomplete source code due
to a bug with the Zap editor (now fixed).
• Now puts line in desktop boot file correctly.
• Uses hiRes sprite on icon bar in HiRes Modes.
• Reinit menu now stays open if clicked with adjust.
• Sort on screen area added.
• Added RISC OS 3.5 style mode selector. Nearly got app to run in 32K
but couldn’t quite squeeze it enough so decided might as well add
extra functionality. Clicking with Adjust is not exactly style guide
conformant but easiest way for user to have access to both. Different
from RISC OS 3.5 as only resolutions for colours chosen are in the
resolution menu.
TO DO
—————
Fix Bugs
Tidy up code, its a bit of a mess but I have not got time to tidy it up before I
release it as I finish university in a couple of days and I want to put it on Hensa.