Oops - my mail client doesn't handle tabs well:
view layout [
text "Title" FTitle: field
button "OK" [
either (FTitle/text =3D "") [
view/new layout=09[
text "Enter Title"
button "OK" [unview]
]
][
unview/all
]
]
]
Quoting Yvan <[EMAIL PROTECTED]>:
>
> Hello,
>
> I have a new problem with views. Please take a look at the following code:
>
> view layout
> [
> text "Titel" FTitel: field
> button "OK" [if/else [empty? FTitel/text]
> [
> view layout
> [
> text "Enter Title"
> button "OK" [unview/all]
> ]
> ]
> [unview/all]
> ]
>
>
> What I want to do is:
>
>
>
> 1. If something is entered in the Field and I click "OK" the view is close=
d.
> 2. If nothing is entered in the view and I click "OK" then
> -> a new view is opened with the text "Enter Title" -> without closing
> the old view <-
> -> when I click "OK" in the new view, the new view is closed and -> I'm
> still left with the old view <-
>
> 1. Works
> 2. doesn't work, as soon as I click OK the old view is closed and a new vi=
ew
> appears.
>
> How can I keep the old view?
>
>
> Cheers
> Yvan
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>
>
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.