home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
kolekcje
/
stanislaw_weslawski
/
ulubione_share
/
obtainpens
/
obtainpens.readme
< prev
next >
Wrap
Text File
|
1996-11-23
|
3KB
|
83 lines
Short : A better MWB-Color-Daemon (e.g. for NewIcons / MUI)
Uploader : ALeX Kazik <akazik@TechFak.Uni-Bielefeld.DE>
Author : ALeX Kazik <akazik@TechFak.Uni-Bielefeld.DE>
Type : util/wb
Version : 1.0
Requires : OS3 (supports PatchControl)
Description:
¯¯¯¯¯¯¯¯¯¯¯¯
This patch allocates the Colors 4-7 from the WB with the MWB-Colors,
like other Daemons. But this patch has some advantages:
· The OpenScreenTagList-Function and not the OpenWorkBench-Function is
patched. This means that the Pens also allocated, if the WB wont be
opened by OpenWorkBench(), e.g. LoadWB / LockPubScreen() don't use
OpenWorkBench().
· The pens, which will allocated, are SHARED. That means that all
programms can use this pens. (ForcePens, my model, reserved the pens
EXCLUSIVE, the result is that the pens can only used by ForcePens)
· If PatchControl is running, you can remove the daemon by sending a
break (CTRL-C) to ObtainPens.
· The programm is really small. Exact 2304 Bytes.
Requiements:
¯¯¯¯¯¯¯¯¯¯¯¯
OS3
Installation:
¯¯¯¯¯¯¯¯¯¯¯¯¯
Simply, use the Install-Script, OR:
· Copy ObtainPens to C: (or where you want).
· Add a line, like the following, to the user-startup.
run <NIL: >NIL: C:ObtainPens
· The line should be at the beginning of the user-startup, because
it is possible, that ObtainsPens will be active, after LoadWB started,
that results in no colors, bad look.
Usage:
¯¯¯¯¯¯
Install it.
The programm will return immedatly with error code 20, if you
don't have OS3. The programm NEVER produces an output.
Colors:
¯¯¯¯¯¯¯
The colors, which will be allocated, are the Standard MWB-Colors.
If you want to use others, there a two ways:
1) Change the sourecode.
2) Take a hex editor, and change the programm.
In general: The colors are 32bit-left-alligned, for the color 123 (0x7B)
you have to write 0x7B7B7B7B. Beginning with line 20 in the source, and
Offset 2082 (0x822) in the programm, you'll find 4×4 longwords.
The first specifies the pen number, the next three the colors (red,
green blue). That will be repeated for the next 3 pens.
Shareware:
¯¯¯¯¯¯¯¯¯¯
This programm is CARD/MAILWARE. All rigths reserved.
Disclaimer:
¯¯¯¯¯¯¯¯¯¯¯¯
I gurantee for nothing.
Author:
¯¯¯¯¯¯¯
Alex Kazik
Stapenhorststr. 81
33615 Bielefeld
Germany
E-Mail: akazik@TechFak.Uni-Bielefeld.DE
###### ## #### ## ##
## ## ## ## ## ## ##
#### ## ## ###### ###
## #### ## ## ## ##
## ## ###### #### ## ##