Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] More on Do's and Views

 [1/4] from: tbrownell:yaho:o at: 26-Apr-2001 0:21


Hi. The main snag I hit is after ive "viewed" another pane, the parent script ceases to function... until the viewed window is closed. For exampe, a script that continuosly reads a .txt file and pops up any text it finds. (below) Now you would think that this script would launch one window every second with the contents of the .txt file displayed, but it doesn't... not until you close the viewed window. How would you get this script to just keep opening windows with any new .txt data??? REBOL [] forever [ wait 1 a: read %file.txt if not empty? a [ view layout [ text a button "Clear file" [write %file.txt ""] ]]] Thanks TBrownell

 [2/4] from: rgombert::essentiel::net at: 26-Apr-2001 10:07


just use view/new REBOL [] i: 0 forever [ wait 1 i: i + 1 a: read %file.txt if not empty? a [ view/new/offset layout [ text a button "QUIT" [quit] ] (10x20 + (i * 15x15)) ] ] ----- Original Message ----- From: "Terry Brownell" <[tbrownell--yahoo--com]> To: <[ally-list--rebol--com]> Sent: Thursday, April 26, 2001 9:21 AM Subject: [ALLY] More on Do's and Views
> Hi. > > The main snag I hit is after ive "viewed" another pane, the parent script
ceases to function... until the viewed window is closed.
> For exampe, a script that continuosly reads a .txt file and pops up any
text it finds. (below) Now you would think that this script would launch one window every second with the contents of the .txt file displayed, but it doesn't... not until you close the viewed window. How would you get this script to just keep opening windows with any new .txt data???

 [3/4] from: pa:russo:perd at: 26-Apr-2001 10:18


>Hi. >The main snag I hit is after ive "viewed" another pane, the parent
<<quoted lines omitted: 16>>
>Thanks >TBrownell
To generate a new window you have to use a refinement. I don't have my reference here, so I'm not sure, but it seems to me that the right syntax is VIEW/NEW. You can easily verify with HELP VIEW from your console. Anyway it seems to me there is a limit of 8 independent windows. Again, I'm not sure. Hope it helps. -- Paolo Russo [pa--russo--perd--com] _________________ PERD s.r.l. Virtual Technologies for Real Solutions http://www.perd.com

 [4/4] from: carl:cybercraft at: 26-Apr-2001 21:36


On 26-Apr-01, Paolo Russo wrote:
>> Hi. >> The main snag I hit is after ive "viewed" another pane, the parent
<<quoted lines omitted: 23>>
> not sure. > Hope it helps.
It seems to me the 8 window limit's now gone... for n 1 16 1 [view/new layout [text join "window " n]] -- Carl Read [carl--cybercraft--co--nz]

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted