Thanks for correcting that Scott,

Now if you really want to remove self you can provide your own feel

at its simplest is..

view layout [
   button "Click me to hide!" 120
    feel [engage: func [f a e][hide f ]]
]


a bit more elaborate 

view layout [
   button "Click me to hide!" 120 
feel [
        engage: func [face action event][
            switch action [
                down [face/state: on]
                alt-down [face/state: on]
                up [if face/state [hide face exit] face/state: off]
                alt-up [if face/state [hide face exit] face/state: off]
                over [face/state: on]
               away [face/state: off]
            ]
    cue face action
    show face
         ]
]
]


Cheers,

Allen K



----- Original Message ----- 
From: "GS Jones" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 07, 2001 7:48 PM
Subject: [REBOL] Re(2): Hiding self in Rebol/View - show?: false


> Anton wrote:
> > But this doesn't work:
> >  view layout [b: button 100x100 [b/show?: false show b]]
> > 
> > so I'm confused.
> > Is the face to hide within the button 'b somewhere?
> > 
> > Anton.
> > 
> > > Or you can set the 
> > > face/show?: false     ,to hide the face without having to resize it.
> > > 
> > > Cheers,
> > > 
> > > Allen K
> > 
> > -- 
> > To unsubscribe from this list, please send an email to
> > [EMAIL PROTECTED] with "unsubscribe" in the 
> > subject, without the quotes.
> 
> Hi, Anton,
> 
> I suspect that Allen meant something more like:
> 
> view l: layout [b: button [b/show?: false unview/all view l]]
> 
> Hope this does the trick.
> 
> --Scott
>  
> 
> -- 
> To unsubscribe from this list, please send an email to
> [EMAIL PROTECTED] with "unsubscribe" in the 
> subject, without the quotes.
> 
> 

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to