[comp.sys.amiga] Putting workbench on a custom screen with MWB.

dillon@CORY.BERKELEY.EDU.UUCP (03/21/87)

	In my release notes for MWB, I said you couldn't do a 'LoadWb' onto
a custom screen.  This is in error.  You actually *can* load the workbench
on a custom screen.  My error was trying to load it onto a custom screen of
a different size.

	The only parameter you can change is the depth parameter.  Therefore,
	the following sequence should work:

	mwb i
	mwb d1 n
	LoadWb

	The workbench works normally on the new custom screen.

REMOVING THE ORIGINAL WORKBENCH SCREEN (A HACK)

	-MWB must be installed.  'mwb i' to install
	-setup your custom screen
	-remove all windows from the original workbench screen
	-'closewb' (see below).. simply calls intuition CloseWorkBench();
	-LoadWb		(workbench placed on custom screen, but original
			workbench screen is reopenned anyway
	-'closewb'	removes original screen & current workbench icons
	-LoadWb		reloads workbench onto custom screen, and for some
			reason the original screen is not re-openned.


	This is a big hack and may not work 100%.

NOTES:
	It's difficult to crash the Amiga by fooling around with this...
	as long as the screen dimensions for the custom screen have the
	same width/height, LoadWb doesn't seem to care.



CLOSEWORKBENCH PROGRAM:






#! /bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #! /bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create:
#	closewb.c
#	closewb.uue
# This archive created: Sat Mar 21 12:18:41 1987
export PATH; PATH=/bin:/usr/bin:$PATH
echo shar: "extracting 'closewb.c'" '(392 characters)'
if test -f 'closewb.c'
then
	echo shar: "will not over-write existing file 'closewb.c'"
else
cat << \!Funky!Stuff! > 'closewb.c'

long IntuitionBase;

extern long OpenLibrary();

main()
{
    IntuitionBase = OpenLibrary("intuition.library", 0);
    if (IntuitionBase) {
        puts ("closing the workbench screen");
        if (CloseWorkBench() == 0)
            puts ("unable to close the workbench screen");
        CloseLibrary(IntuitionBase);
    } else {
        puts ("unable to open intuition.library");
    }
}

!Funky!Stuff!
fi  # end of overwriting check
echo shar: "extracting 'closewb.uue'" '(7196 characters)'
if test -f 'closewb.uue'
then
	echo shar: "will not over-write existing file 'closewb.uue'"
else
cat << \!Funky!Stuff! > 'closewb.uue'
begin 644 closewb
M```#\P`````````#``````````(```/-````@P````$```/I```#S4[Z`,A.
M50``0J=(>@!(3KH.JE!/*4""!DJL@@9G*$AZ`$9.N@3Z6$].N@\`2H!F"DAZ
M`%%.N@3H6$\O+((&3KH.'EA/8`I(>@!@3KH$TEA/3EU.=6EN='5I=&EO;BYL
M:6)R87)Y`&-L;W-I;F<@=&AE('=O<FMB96YC:"!S8W)E96X`=6YA8FQE('1O
M(&-L;W-E('1H92!W;W)K8F5N8V@@<V-R965N`'5N86)L92!T;R!O<&5N(&EN
M='5I=&EO;BYL:6)R87)Y``!A?$/Y```!O$7Y```!O+7)9@XR/``3:PAT`"+"
M4<G__"//```!P"QX``0CS@```<1(YX"`""X`!`$I9Q!+^@`(3J[_XF`&0J?S
M7TYS0_H`)$ZN_F@CP````<AF#"X\``.`!TZN_Y1@!DZY```!4%!/3G5D;W,N
M;&EB<F%R>0!)^0``?_Y.=4Y5``!(YS`@2'D``0``,#D```&XP?P`!B\`3KD`
M``YR4$\CP````<QF&$*G2'D``0``3KD```Y$4$\N>0```<!.=2!Y```!S$)H
M``0@>0```<PQ?``!`!`B>0```<PS?``!``H@>0```<`@.0```<"0J``$4(`C
MP````=`@>0```=`@O$U!3EA"ITZY```.@EA/)$!*J@"L9S@O+0`,+RT`""\*
M3KD```+<3^\`#"/\`````0```=0@>0```<P`:(````0@>0```<P`:(````I@
M6$AJ`%Q.N0``#O!83TAJ`%Q.N0``#JQ83R/````!V"!Y```!V$JH`"1G%"!Y
M```!V")H`"0O$4ZY```-W%A/+SD```'8+PI.N0``!6103R/Y```!V````=Q.
MN0``#?@@>0```<P@@$ZY```.*B!Y```!S"%```9G&DAX`^U(>@`Z3KD```X:
M4$\@>0```<PA0``,+SD```'<+SD```'@3KD````$4$]"ITZY```+^%A/3-\$
M#$Y=3G4J`$Y5``!(YSPP)&T`$"!M``@@*`"LY8`H`"!$("@`$.6`)D`0$TB`
M2,#0K0`,5(`CP````>1"IR\Y```!Y$ZY```.<E!/(\````'H9@A,WPP\3EU.
M=1`32(!(P"\`($M2B"\(+SD```'H3KD```3"3^\`#$AZ`7`0$TB`2,#0N0``
M`>@O`$ZY```%#E!/+RT`#"\*+SD```'H3KD```3J3^\`#$*Y```!X"9Y```!
MZ"1+$!-(@$C`*@"PO````"!G(+J\````"6<8NKP````,9Q"ZO`````UG"+J\
M````"F8$4HM@S`P3`"!M``".#!,`(F8R4HL@2U*+$!!(@$C`*@!G("!*4HH0
MA;J\````(F80#!,`(F8$4HM@!D(J__]@`F#28$0@2U*+$!!(@$C`*@!G,+J\
M````(&<HNKP````)9R"ZO`````QG&+J\````#6<0NKP````*9P@@2E**$(5@
MPB!*4HI"$$J%9@)3BU*Y```!X&``_SI"$D*G(#D```'@4H#E@"\`3KD```YR
M4$\CP````=QF"D*Y```!X&``_JQZ`"9Y```!Z&`>(`7E@"!Y```!W"&+"``O
M"TZY```&+EA/4H#7P%*%NKD```'@;=H@!>6`('D```'<0K`(`&``_FH@`$SO
M`P``!"`((B\`#&`"$-E7R?_\9P9206`"0AA1R?_\3G4P/'__8`0P+P`.(&\`
M!$H89OQ32")O``A30!#95\C__&<"0A`@+P`$3G4@;P`$(`@B;P`($-EF_$YU
M3E4``$CG,"`D;0`(2A)G*"!*4HH0$$B`2,`O`$ZY```&0%A/L+S_____9@IP
M_TS?!`Q.74YU8-1(>``*3KD```9`6$]@Z$Y5``!(YSXP)&T`"$*G2'H`I$ZY
M```.P%!/(\````((9@A,WPQ\3EU.=2!M``PB:``D+RD`!$ZY```/'%A/*`!G
M6DAZ`'T@1"\H`#9.N0``#OY03R9`2H!G.$AX`^TO"TZY```.&E!/+`!G)B`&
MY8`J`"!%)6@`"`"D)48`G$AX`^U(>@!$3KD```X:4$\E0`"@+P1.N0``#PY8
M3R\Y```""$ZY```.7EA/0KD```((8`#_<&EC;VXN;&EB<F%R>0!724Y$3U<`
M*@`@;P`$(`A*&&;\D<`@"%.`3G5.50``2.<P`$AY````%B\M``A.N0``!F)0
M3TS?``Q.74YU3E4``$CG.``H+0`(+RT`#"\$3KD```:P4$^XO`````IF*B!M
M``P0*``,2(!(P`@```=G&$AX__\O+0`,3KD```>V4$],WP`<3EU.=6#V3E4`
M`$CG,"`D;0`,(%*QZ@`$91P@+0`(P+P```#_+P`O"DZZ`.)03TS?!`Q.74YU
M(%)2DA`M``L0@$B`2,#`O````/]@XDY5``!(YS`@0?D`````)$@@2M7\````
M%B\(81183T'Y```!N+7(9>A,WP0,3EU.=4Y5``!(YS@@)&T`"'@`(`IF"G#_
M3-\$'$Y=3G5**@`,9UP(*@`"``QG#$AX__\O"F%>4$\H`!`J``U(@$C`+P!.
MN0``#4I83XB`""H``0`,9PPO*@`(3KD```GR6$\(*@`%``QG&"\J`!).N0``
M"KA83R\J`!).N0``"?)83T*20JH`!$*J``A"*@`,(`1@A$Y5__Y(YS@@)&T`
M"$'Z_S(CR````>P(*@`$``QG"G#_3-\$'$Y=3G4(*@`"``QG-"@2F*H`""\$
M+RH`"!`J``U(@$C`+P!.N0``"NI/[P`,L(1G$`CJ``0`#$*20JH`!'#_8+P,
MK?____\`#&80"*H``@`,0I)"J@`$<`!@HDJJ``AF"B\*3KD```CN6$\,:@`!
M`!!F,AMM``___TAX``%(;?__$"H`#4B`2,`O`$ZY```*ZD_O``RPO`````%F
ME"`M``Q@`/]:)*H`"#`J`!!(P-"J``@E0``$".H``@`,(%)2DA`M``\0@$B`
M2,#`O````/]@`/\J3E4``$CG,"!!^0`````D2$HJ``QG'-7\````%D'Y```!
MN+7(90IP`$S?!`Q.74YU8-Y"DD*J``1"J@`((`I@Z$Y5__Q(YS`@)&T`"$AX
M!`!.N0``"=I83RM`__QF&C5\``$`$"`*T+P````.)4``"$S?!`Q.74YU-7P$
M```0".H``0`,)6W__``($"H`#4B`2,`O`$ZY```*1%A/2H!G!@`J`(``#&#(
M3E4``$CG,#`D>0```;Q@%B92("H`!%"`+P`O"DZY```.FE!/)$L@"F;F0KD`
M``&\3-\,#$Y=3G5.50``2.<P($'Z_[XCR````?!"IR`M``A0@"\`3KD```YR
M4$\D0$J`9@IP`$S?!`Q.74YU)+D```&\)6T`"``$(\H```&\(`I0@&#@3E4`
M`$CG,``O+0`(8:983TS?``Q.74YU3E4``$CG,#"7RR1Y```!O&`.(&T`"%&(
ML<IG$B9*)%(@"F;N</],WPP,3EU.=2`+9P0FDF`&(](```&\("H`!%"`+P`O
M"DZY```.FE!/<`!@U$Y5``!(YS`@<@8@+0`(3KD```VJ)$#5^0```<Q*K0`(
M;10P.0```;A(P"(M``BR@&P$2I)F%"/\`````@```?1P_TS?!`Q.74YU<@8@
M+0`(3KD```VJ('D```',+S`(`$ZY```.#%A/2H!G!'`!8`)P`&#.3E4``$CG
M,``O+0`(3KD```WJ6$]*@&863KD```X"(\````'T</],WP`,3EU.=7``8/1.
M50``2.<\("@M``A.N0``"X!R!B`$3KD```VJ)$#5^0```<Q*A&T0,#D```&X
M2,"X@&P$2I)F%"/\`````@```?1P_TS?!#Q.74YU,"H`!,!\``-F#B/\````
M!0```?1P_V#@+RT`$"\M``PO$DZY```.-$_O``PJ`+"\_____V803KD```X"
M(\````'T</]@LB`%8*Y.5?_\2.<P`$AX$`!"ITZY```.X%!/*T#__`@```QG
M&DJY```!U&8,("W__$S?``Q.74YU3KD```N^<`!@[DY5``!(YS``2'@`!$AZ
M`"A.N0``#BHO`$ZY```.-$_O``Q(>``!3KD```OX6$],WP`,3EU.=5Y#"@!.
M50``2.<P`$JY```![&<(('D```'L3I`O+0`(3KD```PD6$],WP`,3EU.=4Y5
M__Q(YS@`*VT`"/_\2KD```',9S9X`&`,+P1.N0``#4I83U*$,#D```&X2,"X
M@&WH,#D```&XP?P`!B\`+SD```',3KD```Z:4$]*N0```?!G""!Y```!\$Z0
M2KD```'X9PXO.0```?A.N0``#F183TJY```!_&<.+SD```'\3KD```YD6$]*
MN0```@!G#B\Y```"`$ZY```.9%A/+'@`!`@N``0!*6<4+PU+^@`*3J[_XBI?
M8`9"I_-?3G-*N0```=AF.$JY```!Z&<N+SD```'D+SD```'H3KD```Z:4$\@
M.0```>!2@.6`+P`O.0```=Q.N0``#II03V`43KD```Z0+SD```'83KD```[2
M6$\@+?_\+GD```'`3G5,WP`<3EU.=4Y5``!(YSX@*"T`"'(&(`1.N0``#:HD
M0-7Y```!S$J$;1`P.0```;A(P+B`;`1*DF84(_P````"```!]'#_3-\$?$Y=
M3G4P*@`$P'R``&8*+Q).N0``#<Y83T*2<`!@WDCG<``T`<3`)@%(0\;`2$-"
M0]2#2$#`P4A`0D#0@DS?``Y.=2(O``0L>0```<A.[O_<(B\`!"QY```!R$[N
M_X(B+P`$+'D```'(3N[_N"QY```!R$[N_\HL>0```<A.[O]\(B\`!"QY```!
MR$[N_RA,[P`&``0L>0```<A.[O_B+'D```'(3N[_Q$SO``X`!"QY```!R$[N
M_]!(YP$$3.\@@``,+'D```'$3J[_E$S?((!.=4[Y```.9")O``0L>0```<1.
M[OYB3.\``P`$+'D```'$3N[_.B)O``0L>0```<1.[O[:+'D```'$3N[_?")O
M``0@+P`(+'D```'$3N[_+B!O``0L>0```<1.[OZ,3OD```[`+'D```'$(F\`
M!"`O``A.[OW8(F\`!"QY```!Q$[N_H9,[P`#``0L>0```<1.[O[.(&\`!"QY
M```!Q$[N_H!,[P,```0L>0```@A.[O^@(&\`!"QY```""$[N_Z8@;P`$+'D`
M``((3N[_LBQY```"!$[N_[(```/L````2`````````$T```!;````80```'<
M```!]@```B@```(T```"6@```FH```)\```"B@```J0```+"```"S````QH`
M``-&```#8@```W8```1F```$F@``!3P```5<```%>```!9P```6R```%Q@``
M!>P```7Z```&"```!E0```9V```&H```!V@```=^```'D@``!YX```?^```(
M/@``"&8```D````)1```"70```FL```*.@``"E0```J6```*I@``"L8```K2
M```*^```"P(```M:```+;@``"Y````NV```+T```"]@```OF```,%@``#$(`
M``QJ```,D```#*8```R\```-````#1H```TD```-,```#5P```V>```.8```
M#KP```!Z`````0```,X```#4````[````/8```$@```!2@```6````%T```!
MC````90```&>```!J@```;8```&\```!R````<X```($```""@```A8```(\
M```"0@```DX```)B```"<@```G8```*"```"D````JP```*V```"O````PP`
M``,4```#(@```T````-:```#<````X````.&```$3```!%H```1N```$=@``
M!((```2.```$J```!+0```6````&`@``!A````9*```'````!Q8```?(```(
MN```",P```E@```)@@``"9P```G$```)T```"?X```HJ```*7```"F@```J`
M```*G```"M@```L*```+%```"R@```M&```+=```"Z(```P"```,"@``##0`
M``Q,```,6```#&0```QR```,>@``#((```R*```,F```#*````RN```,M@``
M#.0```SL```,]```#/H```T(```-%```#2H```T\```-9```#6X```V"```-
MU```#>(```WP```-^@``#@0```X2```.(@``#BP```X\```.4```#FH```YZ
M```.B```#I(```ZD```.L@``#L(```[8```.Z```#O8```\&```/%```#R(`
M``\L`````````_(```/J````;P````````````````$``````0``````````
M```````````!`0````$``````````````````````0(````!````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
M````````````````````````````````````````````````````````````
=`````````````!0``````_(```/K`````0```_(`
`
end
!Funky!Stuff!
fi  # end of overwriting check
exit 0
#	End of shell archive