One way:

REBOL []

p1: layout [
        size 200x200
        button "Add" [show b1]
        b1: button "Here it is"
]

view/new p1
hide b1
do-events

Another way is to add and remove the button from the layout pane. Don't forget to 
reshow the pane.

p1: layout [
        size 200x200
        button "Add" [if not find p1/pane b1 [append p1/pane b1] show p1]
        b1: button "Here it is"
]

remove find p1/pane b1
view p1

-Carl


At 10/3/00 03:07 PM -0400, you wrote:
>I would like to add faces to a form conditionally.
>
>Specifically, I have an edit form that I create using layout.  I would like to
>add a "Delete" button to the form only if the user is in edit mode and suppress
>the "Delete" button if the user is in add mode.
>
>I can't figure out how to do this?
>
>Any help would be greatly appreciated!
>
>-- 
>Jamey Cribbs
>Sr. Technical Consultant

Reply via email to