[REBOL] Re: choice to update a pane
From: arolls::bigpond::net::au at: 25-Jun-2001 5:04
Ok, well, I have not really used choose before,
it is a surprise! But you can do this:
choose ["one" "two" "three"] func [a b][probe a/text]
== "one" ; I pressed first item
To put it into a layout:
view center-face layout [
button "choose" [
choose ["one" "two" "three"] func [a b][probe a/text]
]
]
I am not sure what the arguments 'a and 'b are in
the function supplied to 'choose.
Anyway, instead of [probe a/text], you could
change your pane.
I am not sure what exactly you mean by "pane".
In rebol, pane is taken to mean the sub-faces
of a face. You probably are talking in non-rebol
terminology, if so, I think you should call it
panel
in rebol.
To change panels, see documentation:
http://www.rebol.com/how-to.html
Click on "How to Create Subpanels"
or go straight to:
http://www.rebol.com/how-to/subpanels.html
This is my go at it:
do http://users.bigpond.net.au/datababies/anton/rebol/start.r
(I am working on it right now, so there might
be some bugs)
If you need more help, you know who to
call. :)
Anton.