home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fish 'n' More 1
/
FishNMoreVol1.bin
/
more
/
graphics
/
viewers
/
showiff
/
show.doc
< prev
next >
Wrap
Text File
|
1987-03-17
|
4KB
|
108 lines
SHOW x2.1
This program will show any standard IFF picture file: Lores-MedRes-HiRes-Hams.
Features:
Only 6600 bytes of code.
Faster loading time: it takes about 50% less than the old ShowAll. For Lores
uncompressed IFF picture from ram, it takes only a blink of the eye.
From a disk drive, it loads about 10K of data per second.
(Just wonder what would happen if this entirely written in assembly
rather than pure C).
Less memory used: is uses only one screen of memory when showing the picture,
rather than buffering one screen prior to showing it.
Accepts more than one picture as an argument.
NEW on x2.0:
Timer is NOW user controlable.
Runable from CLI or Workbench.
On x2.1:
Problem on failing to show certain picture is FIXED.
To close the picture window:
1. Happens automatically when the timer expires.
2. Click upper left corner of the picture (invisible close gadget).
3. Press SPACE bar or ESCAPE key.
(ESCAPE will abort the showing of any additional pictures).
Usage:
~~~~~
From CLI:
SHOW [timer] [filename] [timer] [filename] .... [timer] [filename]
[timer] is optional, default timer is forever. Well it is not actually
forever, you can wait to see how long it is :-).
Timer is specified by a minus '-' sign followed by a number.
Zero will also give you the default timer. If timer is not specified
for the next picture, the previous timer will be used.
example:
SHOW a b c -> will show a, b, and c until you close it.
SHOW a -5 b c -> will show a forever, b and c for 5 secs.
SHOW -10 a b c -> will show a, b, and c for 10 secs each.
SHOW -5 a -7 b -> will show a for 5 secs and b for 7 secs.
NOTE: Regardless of the value set for the timer, if the close gadget, SPACE
BAR, or the ESCAPE key is pressed, the picture will close immediately.
From Workbench:
There are 3 ways you can use SHOW from Workbench.
1. Give it a TOOL TYPE icon. Now you can click its icon and hold <SHIFT> key
down while clicking the icon(s) (of pictures you want to see) once, but
DOUBLE click the last one. <EXTENDED SELECTION>
This will work fine even if the picture has a TOOL TYPE icon. If the picture
has a PROJECT icon, be sure that its DEFAULT TOOL is empty or...
2. Give your picture a PROJECT TYPE icon, and set the DEFAULT TOOL to this
SHOW program wherever you put it. Now just DOUBLE click the picture
icon, and it will load the SHOW first then show will handle it.
3. COMBO of 1 and 2:
You can put SHOW wherever you want, as long as the FIRST icon you
selected is of part 2, you can hold <SHIFT> down and click more picture
icons (doesn't matter what type, my SHOW won't care), and double click
the last one.
Timer from the Workbench is passed on the TOOL TYPE BOX.
Format is "TIMER=#", where # is the number of secs you want.
To set it up:
1. Click the icon and select the "INFO" from WB menu.
2. Click the ADD gadget at the right most of the TOOL TYPE BOX.
3. Click inside the TOOL TYPE BOX and start typing "TIMER=5" for
example will set timer for 5 seconds.
4. Click the SAVE gadget at the bottom left. DONE.
Enjoy, if you like it I am happy. If you don't like it, oh well, you can
always write your own.
-------------------------------------------------------------------------------
SHOW x2.0 Copyright 1987 by Andry Rachmat
This PROGRAM is copyrighted and all RIGHTS reserved.
It is NOT a PUBLIC DOMAIN , however PERMISSION is granted to freely
copy, use and redistribute this program, for non-commercial uses, as long
as this program is not altered in any way and is accompanied with this
document.
It is FORBIDDEN to use or include this program on ANY COMMERCIAL
DISK or PRODUCT, without prior, written permission from the author.
If you interested in using this program please contact me at addresses
below.
I make no warranties, either expressed or implied, with respect to the
program described herein, its quality, performance, merchantability,
or fitness for any particular purpose. This program is provided "as is"
and the entire risk as to its quality and performance is with the user.
-------------------------------------------------------------------------------
10715 Roosevelt NE #7
Seattle, WA 98125
------------------------------------------------------------------------------
Spring 1987 - when flowers bloom and sun shines