[REBOL] R: Dynamic Layout creation
From: riusa:email:it at: 16-Mar-2002 0:15
furthermore, about my previous question, I "discovered" another thing:
if I type, from console:
>> A: "b1: button {prova}"
== "b1: button {prova}"
then:
>> la: to-block a
== [b1: button "prova"]
now if I try to make a layout:
>> view layout la
** Script Error: b1 is not defined in this context
** Where: forever
** Near: set :var new new/var: to-word
but if I directly type the block (not write in string then convert):
>> lb: [b1: button "prova"]
== [b1: button "prova"]
>> view layout lb
It works! WHY?! "la" and "lb" seem the same! where is the difference?
where is my mistake?
thanks a lot!
bye!
-----Messaggio originale-----
Da: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Per conto di
[riusa--email--it]
Inviato: Friday, March 15, 2002 5:25 PM
A: [rebol-list--rebol--com]
Oggetto: [REBOL] Dynamic Layout creation
After some tests, I discovered I could create a block (dinamically, at
runtime) and use this to create a layout.
For example: if I want to create some radio buttons at runtime (I'm
reading some records in a database, and every record generates a radio
button), I can create a block and...
==================================
myBlock: [backcolor gray across]
append myBlock [radio label "test"]
view layout myBlock
==================================
the previous code functions. But how can I do to assign a different
variable to every radio-button (see the hypotetical result below):
var1: radio label "test 1" return
var2: radio label "test 2" return
var3: radio label "test 3" return
I cannot create var...
Can someone help me?
Thanks! bye!
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Il simbolo della rete ha compiuto da poco i 450 anni;
Ordina il tuo portafortuna su Airbook.it!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=347&d=15-3
--
To unsubscribe from this list, please send an email to
[rebol-request--rebol--com] with "unsubscribe" in the
subject, without the quotes.
--
Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f
Sponsor:
Puglia Pocket: le ultime notizie, gratis, sul tuo sito; devi solo prenderlo
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=314&d=16-3