[REBOL] Re: A very basic question, I hope... Re:
From: carl:cybercraft at: 21-Aug-2000 21:09
On 21-Aug-00, [allen--rebolforces--com] wrote:
> ----- Original Message -----
> From: <[carl--cybercraft--co--nz]>
> To: <[list--rebol--com]>
> Sent: Saturday, August 19, 2000 10:25 AM
> Subject: [REBOL] A very basic question, I hope...
>> How do you start a second View script running (meaning from within
>> a View script) without the first one closing its window/s and
>> ending? I've spent a long time looking for info or an example on
>> this and failing to find anything...
>> Carl Read.
> Hi Carl,
> The attached demo illustrates a way to do this. This approach does
> not require any changes to the target script at all. (unlike the
> do-thru/args method I use on my rebsite).
> rather than doing this
> view do %script.r which gives the behaviour you describe.
> use my 'do-get-face function. It does the script and returns the
> face (prevents it from showing)
> so you can do things like this (just some ideas)
> view/new do-get-face %script.r
> append main-face/pane do-get-face %script.r
> show main-face
> script-face: do-get-face %script.r
> script-face/color: red
> view/new script-face
> I hope this helps.
Lovely Allen! It does just what I was wanting, and more. Many
Make sure you submit it to the REBOL library. It's an excellent
example for newbies, especially with the "Two Scripts in One" adding
that bit of REBOL flair. (:
Now I'll have some fun trying to work out how you prevent scripts
interfering with each-other's values when you start the same script