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

[REBOL] Re: When to define words

From: agem:crosswinds at: 9-Jul-2001 23:12

RE: [REBOL] Re: When to define words [moeller_thorsten--GMX--De] wrote:
> > Hi Brett, > > the code is something like the following: > > layout2: layout [ H2 "second layout" > button "Sub" coal [sublayout/pane: sublayout-input show sublayout] > sublayout: box 300x300 coal > ] > > login: layout [ H2 "first layout" > label "Input: " myfield: field > button "go" [unview/all view layout2] > ] > > sublayout-input: layout [ H2 "Sublayout" > backcolor red > txt join "Input:" myfield/text > ] > > view login > > In this sample i didn't get the error, but the sublayout didn't show the input as well. > > Hope it comes clear what i was asking for. >
yes. the point: the values are burned by layout and ignore later changes. so do the layout after you know the value, not before. or copy the values by hand (subfield/text: copy myfield/text). : [rebol [] layout2: [ H2 "second layout" button "Sub" coal [sublayout/pane: LAYOUT sublayout-input show sublayout] sublayout: box 300x300 coal ] login: [ H2 "first layout" label "Input: " myfield: field button "go" [unview/all view layout layout2] ] sublayout-input: [ H2 "Sublayout" backcolor red txt join "Input:" myfield/text ] view layout login ]> Thorsten