[REBOL] Re: VID begniner
From: carl:s:rebol at: 14-Sep-2002 15:43
Hi Brahim,
Since I happen to be right here, and it sounds like you need a bit of information, and
I do know a couple things about the subject... maybe I can help.
When you write VIEW LAYOUT [...] you are telling REBOL to build a layout from a dialect
of REBOL (called VID), not REBOL itself. A dialect is a variation of REBOL that is a
lot more powerful at expressing ideas, but within a specific domain (graphics in this
case).
So, the block that you pass to LAYOUT is not regular REBOL. If you want to use regular
REBOL within it, you'll can put it in parens ( ) to be safe. (It's not always required,
but that's the safest way.)
view layout [text bold (reform ["The time is now: " now/time])]
If you want to use a repeat, let's say for repeating a bunch of buttons, it would be
better to do that first as a block, then pass that block to LAYOUT. Here's an example:
block: [H2 "My Example!"]
repeat i 10 [append block [button form i]]
probe block
view layout block
Now, you've created a window that has ten numbered buttons.
Hope that helps. Have fun!
-Carl
At 9/14/02 09:28 PM +0200, you wrote: