[REBOL] button vs box changes
From: richard-boyd::worldnet::att::net at: 22-Dec-2001 11:50
Why does [test-box] below show text and color changes made to a "box" ....
but [test-button] does NOT show changes made to a "button"?
I do not understand how the two differ.
Thanx in advance.
-richard-
;-----------------------------
test-box: func
[]
[lay: layout
[bx: box 100x24 black
button "Red Box" [bx/color: red show bx]
button "Text Box" [bx/text: "not ok" show bx]
button "Print Box" [print join bx/text [" "bx/color]]]
view center-face lay]
;-----------------------------
test-button: func
[]
[lay: layout
[b: button "OK"
button "Red Button" [b/color: red show b]
button "Text Button" [b/text: "not ok" show b]
button "Print Button" [print join b/text [" "b/color]]]
view center-face lay]