home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The CDPD Public Domain Collection for CDTV 3
/
CDPDIII.bin
/
pd
/
utilities
/
misc
/
scale
/
scale.doc
< prev
next >
Wrap
Text File
|
1993-04-06
|
5KB
|
137 lines
Scale by Erik Wistrand (Tuesday 28/09/92 19:32:10)
Scale is a small magnify program which supports scaling from 10 % to
1000 % in both horizontal and vertical directions. It will jump to any frontmost
screen (including non-public screens) and supports multiple options.
!!! Scale requires DOS 2.0 (and wants WB 2.1)!!!
1. How to start Scale:
Scale will open on the frontmost screen, so to start Scale on a custom
screen, move this screen to the front, then drag it down to allow you to see
Workbench and Scale's icon. Then start Scale by doubleclicking. Scale should
now open on the custom screen.
If you want Scale to open on Workbench, just keep Workbench frontmost.
IMPORTANT!
If Scale opens on a custom, non-public screen, remember to quit Scale
BEFORE you quit the program which opened the screen. Otherwise I can't
guarantee anything... (Most likely the screen will remain open and you
can't close it. A system crash is also possible.)
Do NOT except this brutal screen invasion to be totally problemfree with
respect to screen updates and so on.
2. How to use Scale's window
The window shows a magnified (or shrunk) view of the same screen as
Scale has opened on. It's has standard gadgets for resize, move, front/back
and close. Yes, the Close gadget exits Scale. Scale will magnify (shrink) the
portion of the screen around the mouse pointer, unless otherwise told.
3. The menus
The Scale window has some menus, namely:
<Preferences> - Opens a window with some options. See below
<Preset factors>
<100 %> - Sets both X and Y factors to 1
<200 %> - " " " " " " 2
...
<25 %> - " " " " " " 0.25
<Window>
<Freeze position> - Don't follow the mouse any more
<Snap to corner> - Magnify (shrink) to upper left corner of
window when possible.
<Open prefs on WB> - Open preferences window on Workbench.
<Quit> - quit Scale
4. The Keys.
Scale supports some keyboard commands, except for the menu shortcuts.
Arrow up: Y factor is incresed by 5 %.
Arrow down: Y factor is decresed by 5 %.
Arrow right: X factor is incresed by 5 %.
Arrow left: X factor is incresed by 5 %.
A: Scaling is activated/deactivated
Q: Quit
Help: The preferences window is opened
5. The preferences window.
This window opens on workbench by default and contains some gadgets:
Y factor - Slider which sets vertical scale factor
X factor - Slider which sets horizontal scale factor
WakeUp/sec - Slider which sets how often Scale will redraw it's window
when it's window is not selected. If 0, Scale will not
wake up at all.
WakeUp - Cycle between
always - Scale will redraw at every wakeup.
movement - Scale will only redraw when the mouse
is moved.
Recalc - Set if you want to the scale factors to change when
the window is resized, so that an equal amount always
is shown. Both X and Y factors must be free.
Rescale - If checked, the scale window will be rescaled when you
move the X and Y sliders.
Active - Must be set if Scale should update it's window.
X, Y free - The X and Y factors can be set indepently.
X free - The Y factor will always equal the X factor.
Y free - The X factor will always equal the Y factor.
OK - Exits preferences.
Show - Rescales window.
Cancel - Exits preferences, but restores X and Y factors.
6. Localization
Scale is fully localized under WB 2.1
Scale uses the scale.catalog file which should be in either
PROGDIR:Catalogs/languageName or
LOCALE:Catalogs/languageName
where languageName is the name of the language you're using.
Scale's builtin language is english, and I've created a .catalog file
for swedish.
The .ct and .cd files for catalog creation should follow this program
and can be used to create a new catalog for any language. If you do this,
please send me the new catalogs!
7. Bugs
If the X factor is set to 1.00 and the Y factor is not 1.00,
the scaling will be incorrect.
This could be a bug in graphics.library v37 (the BitMapScale() function)!!
On the other hand, it could just as well be some sloppy programming from me...
8. Distribution
This program and source is placed in the public domain in all respects,
as long as this document and the swedish scale.catalog file follows the
executable.
9. Contacts
If you want to ask me anything, thank me, send me some nice program or
just discuss something interesting, write to:
Erik Wistrand E-mail: manh-9@math.chalmers.se
Cedergatan 6
S-421 74 V. FRÖLUNDA
SWEDEN