Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

i have some questions on vid!!

 [1/4] from: gaofeng860918:g:mail at: 1-May-2006 9:45


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 ) the second is how to play a mp3 in the program ?? i want my program has a backgroud audio! 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 !

 [2/4] from: Izkata::Comcast::net at: 30-Apr-2006 21:06


> 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 )
This one can sometimes get a little confusing, so I'm sure someone else can give a better explanation than me ^.-
> the second is how to play a mp3 in the program ?? > i want my program has a backgroud audio!
Rebol (as far as I know) only supports certain types of WAV files right now
> 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
<<quoted lines omitted: 5>>
> request/type "your age?" info > the rebol told me that type need a "word!" argument !
request/type "You age?" 'info The single apostrohpe ' in front of the info designates it as a word.

 [3/4] from: compkarori:g:mail at: 1-May-2006 14:11


Hi Gao, Try this: view layout [ size 200x200 at 50x50 button "Request" [ request/type "Your info?" 'info ]] MP3s are not supported currently natively in Rebol. On 5/1/06, FENG GAO <gaofeng860918-gmail.com> wrote:
> 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 )
<<quoted lines omitted: 9>>
> request/type "your age?" info > the rebol told me that type need a "word!" argument !
-- Graham Chiu http://www.compkarori.com/emr/

 [4/4] from: pwawood:g:mail 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
<<quoted lines omitted: 6>>
> 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

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted