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

[REBOL] context question

From: kpeters::otaksoft::com at: 31-Aug-2007 15:21

Why does Rebol not complain about 'f2text not having a value in 'show-form2???? It forces me to use the context to talk to the layout and the 'change-text function which makes good sense to me. How come it "sees" the "sub-part" 'f2text when it cannot "see" its parent? Would one of the gurus please shed some light on this for me? As always, thanks a lot! Kai rebol[] ;------------------------------------------- show-form2: does [ unview view/new ctx/form2 ; makes good sense ctx/change-text ; makes good sense set-face f2text "GREEN" ; ?????? ] ;------------------------------------------- form1: center-face layout [ btn "Show form 2" [ show-form2 ] ] ;------------------------------------------- ctx: context [ change-text: does [ set-face f2text "BLUE" ] ; form2: center-face layout [ f2text: text "RED" ] ] ;------------------------------------------- view form1 ;---------------- E o S --------------------