Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ames!ucbcad!ucbvax!CORY.BERKELEY.EDU!dillon From: dillon@CORY.BERKELEY.EDU.UUCP Newsgroups: comp.sys.amiga Subject: Putting workbench on a custom screen with MWB. Message-ID: <8703212022.AA13285@cory.Berkeley.EDU> Date: Sat, 21-Mar-87 15:22:15 EST Article-I.D.: cory.8703212022.AA13285 Posted: Sat Mar 21 15:22:15 1987 Date-Received: Mon, 23-Mar-87 00:21:07 EST Sender: daemon@ucbvax.BERKELEY.EDU Lines: 208 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('=O0```0```0```0```<`@.0```<"0J``$4(`C MP````=`@>0```=`@O$U!3EA"ITZY```.@EA/)$!*J@"L9S@O+0`,+RT`""\* M3KD```+<3^\`#"/\`````0```=0@>0```0```0```@`Z3KD```X: M4$\@>0```1"IR\Y```!Y$ZY```.@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````(&(`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;&EB0!724Y$3U<` M*@`@;P`$(`A*&&;\D<`@"%.`3G5.50``2.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.``!3KD```OX6$],WP`,3EU.=5Y#"@!. M50``2.!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``#0```0```0```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````@``#((```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