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

Newbie VIEW question

 [1/8] from: kpeters-vu:ware at: 19-Nov-2005 12:10


Hi all ~ when a VIEW script (having one or more windows on the screen) dies and leaves a window on the screen and I restart the same script, I am left with an unresponsive window even though the script appears to be running fine. How do I "reset" whatever needs to be reset here? I am slowly getting sick and tired of killing that REBOL instance and starting a fresh one just to be able to re-run my script... Thanks as always, Kai

 [2/8] from: petr:krenzelok:trz:cz at: 19-Nov-2005 21:16


yes, scripts can crash, so you can end-up in console. Once there are windows still being shown, rebol does not enter event loop automatically, as it does during first invocation of view. So you would have to manually call 'do-events from console. Try this, could help. However, for such trial and error coding, better clear View displayed windows by calling 'unview or 'univew/all from concole, then your new 'view invocations should run as expected, without having to call 'do-events ... well, I am not guru here, and I just thinks it is something like that, so sorry if it does not help in your case :-) Cheers, =A8-pekr-

 [3/8] from: SunandaDH:aol at: 19-Nov-2005 15:21


Kai:
> How do I "reset" whatever needs to be reset here?
unview/all should work. Sunanda.

 [4/8] from: kpeters-vu::ware::com at: 19-Nov-2005 18:22


Hi all ~ I'd like to group a bunch of faces so I can treat them a one for show and other purposes. I am studying Carl's REBODEX script and see how he's doing that. Since I clearly don't understand all aspects of his script, the way I understand it seems too complex: 1. create layouts like PANE1 etc. 2. place a BOX on the main layout in the size of PANE1 3. create main layout 4. assign PANE1's pane to the box/pane from step 2 Questions: Is my assessment (steps 1 - 4 ) above correct? Is there a simpler way? TIA, Kai

 [5/8] from: Izkata:Comcast at: 19-Nov-2005 23:12


> Hi all ~ > I'd like to group a bunch of faces so I can treat them a one for show
<<quoted lines omitted: 4>>
> 1. create layouts like PANE1 etc. > 2. place a BOX on the main layout in the size of PANE1
To place the box on the main layout, it would need to be created first =^.^
> 3. create main layout > 4. assign PANE1's pane to the box/pane from step 2
Not exactly, assign PANE1 to BOX1/pane (or whatever you wanted to call it)
> Questions: Is my assessment (steps 1 - 4 ) above correct? > Is there a simpler way?
PANE1: layout [backdrop orange text blue bold {Hi}] view layout [ backdrop black BOX1: box green 100x100 with [pane: PANE1] ] The colors are so it's easier to see where each part is displayed. And PANE1's offset is the offset inside the box - so 0x0 is the upper corner of BOX1, not of the main face.

 [6/8] from: greggirwin:mindspring at: 21-Nov-2005 8:38


Hi Kai, KP> I'd like to group a bunch of faces so I can treat them a one for show KP> and other purposes. Have you tried using a PANEL? A panel is basically a sub layout. -- Gregg

 [7/8] from: kpeters-vu:ware at: 21-Nov-2005 8:31


Thanks Gregg ~ I saw them mentioned in two of the 'official' docs, but rather concisely and without any suggestions as to how to use them. Do you (or someone else who knows) have a snippet for me? TIA, Kai

 [8/8] from: kpeters-vu::ware::com at: 21-Nov-2005 10:56

Newbie VIEW questions


Re: sub layouts Hi all ~ No more need for an example - Google just found the subpanels.html for me! Kai

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