Hi Yvan,
You could also do this:
view layout [
my-panel: panel [
text "title" title-field: field
text "format" format-field: field
button "OK" [unview]
]
]
get-face my-panel
;== [title-field: "hello" format-field: "there"]
I personally have never used this way, but if you have lots
of fields the result could be used as an object spec block, eg:
obj: make object! get-face my-panel
Anton.
> Hello,
>
> this has to be a very very basic newbie question, at least I hope so.
>
> Okay, consider the following piece of code:
>
> view layout
> [
> text "title" field
> text "format" field
> button "OK"
> ]
>
> All I want to achieve is:
>
> when clicking the OK button,
> - the values entered in the two fields should be saved in two different
> variables
> - the layour should be closed
>
> How can I achieve that?
>
> Cheers
> Yvan
--
To unsubscribe from the list, just send an email to
lists at rebol.com with unsubscribe as the subject.