Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!bbn!ginosko!uunet!microsoft!bradch From: bradch@microsoft.UUCP (Bradford Christian ms1) Newsgroups: comp.sys.amiga Subject: Re: CLI window on new screen... Message-ID: <7192@microsoft.UUCP> Date: 1 Aug 89 00:34:07 GMT References: <[917]un.amiga@tronsbox.UUCP> Reply-To: bradch@microsoft.UUCP (Bradford Christian ms1) Organization: Microsoft Corp., Redmond WA Lines: 27 In article <[917]un.amiga@tronsbox.UUCP> tron1@tronsbox.UUCP (HIM) writes: >I have been working on this one for a while also ... > >Can I , by hook or by crook, open or "tansplant) a CLI window onto another >screen?????? > >How would I , Why havent I seen it done???? > >ddsw1!tronsbox!tron1 I pull a (sleazy?) trick in many of my own programs. When I create a screen, I specify WORKBENCHSCREEN (sp?) instead of CUSTOMSCREEN. This has several desirable effects and no (as yet) undesirable ones. First off, any new CLIs or shells you create will appear on the top-most workbench screen, so just a simple Execute("NewShell", 0L, 0L) should give you a new shell in your own screen (provided it is up front). Requestors wil also automaticaly appear in your own screen instead of the real Workbench. Another feature is that Amiga-N and Amiga-M will treat your screen as it does the real Workbench, so you can easily toggle between your screen and other open screens. If anyone knows why this should not be done, please post! Otherwise, enjoy! BTW, if you do this, make sure you check for open windows (such as cli's) when you go to close the screen. If you don't, you can end up with a cli lost in space.... BradCh