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

[REBOL] Re: Curious results

From: cyphre:volny:cz at: 30-Jul-2001 10:13

Hello Doug, /View puts automaticaly 'title variable from REBOL script header into the 'text variable of first face(most upper in the hierarchy) of layout(so the 'title is shown in the titlebar of the /view window) You are trying to show only rad and green 'box faces first so 'view command add to 'text variable of this boxes string "Problem!". Don't show single faces like that! The face passed to View function is always the Window face!You should always make first face for window(screen) use and the insert subfaces into it: REBOL [Title: "No problem!"] lay: layout [origin 0x0 b: box green] view make face [offset: 50x50 pane: b size: b/size] view lay For better understanding see how your script works in more detail: REBOL [Title: "Problem!"] lay: layout [ across b: box red c: box green] probe b/text ;'text of boxes is empty(none)... probe c/text view b ; 'view puts 'title into 'text of both boxes view c probe b/text ;'text of boxes contains "Problem!" probe c/text view lay Have fun! Cyphre