Adding to a layout.
[1/2] from: cribbsj::oakwood::org at: 3-Oct-2000 15:07
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
[2/2] from: carl:rebol at: 3-Oct-2000 13:57
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: