[REBOL] Re: i have some questions on vid!!
From: pwawood:gm:ail at: 1-May-2006 10:33
> the first one is how to set the button position?please give me a
> example!
> (maybe i want it be located in the center of the window )
Take a look at Nick Antonaccio's tutorial, it may help:
http://www.rebol.org/cgi-bin/cgiwrap/rebol/art-display-
article.r?article=pfx654q
> the second is how to play a mp3 in the program ??
> i want my program has a backgroud audio!
Rebol does not have a built-in MP3 player. You could try to use the
call function to start an external MP3 player see
http://www.rebol.com/docs/shell.html (call is now available in
REBOL/View).
> the third one is not on vid ,it is about "request"
> this function has a refinement called type ,we can see it by using
> "help
> request"
> help request
> request argument /type icon
>
> icon--can be info ,help (default),alert
>
> but why the code can not work:
> request/type "your age?" info
>
> the rebol told me that type need a "word!" argument !
The argument for the /type refinement must be a REBOL word! datatype:
request/type "your age?" 'info
or request/type "your age?" to-word "info"
When you {enter request/type "your age" info} REBOL evaluates the word
info - it is not set, hence the error. It may seem strange but if you
first set info to the "lit-word" 'info your original statement would
work:
info: 'info
request/type "your age?" info
Victor Pavlu's tutorial has a good explanation of word, get-words,
set-words and lit-words at http://www.rebol.net/article/0201.html
Peter