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

'feel docs

 [1/5] from: hallvard::ystad::helpinhand::com at: 5-Nov-2001 21:44


Hello I'm experimenting with 'feel, but have some trouble understanding it all. I've looked around in the script library, found 'detect, 'over, 'engage _used_, but not _explained_. Where will I find comprehensive docs? (Can't wait for that french book!) Here's something that yields a "too-late"-value: view layout [ across box1: text-list 200x200 data [a b c] feel [ detect: func [face event] [ if event/8 [print mold face/picked] ] ] return button "Quit" [quit] ] I'm sure you'll understand what I'm after if you run the script. How will I make it return the up-to-date value? And if I didn't go for a double click, but a single, how would I get the right value then? (Hopefully in the same way!) ~H

 [2/5] from: media:quazart at: 5-Nov-2001 16:32


Hi Hallvard, in the how-to section of rebol's web site there is a file named: "How to Handle User Interface Events" Everything you need is there.... well as usual, almost everything (95% of it ;-) -Max ----- Original Message ----- From: "Hallvard Ystad" <[hallvard--ystad--helpinhand--com]> To: <[rebol-list--rebol--com]> Sent: Monday, November 05, 2001 3:44 PM Subject: [REBOL] 'feel docs
> Hello > > I'm experimenting with 'feel, but have some trouble understanding it all.
I've looked around in the script library, found 'detect, 'over, 'engage _used_, but not _explained_. Where will I find comprehensive docs? (Can't wait for that french book!)
> Here's something that yields a "too-late"-value: > view layout [
<<quoted lines omitted: 8>>
> ] > I'm sure you'll understand what I'm after if you run the script. How will
I make it return the up-to-date value? And if I didn't go for a double click, but a single, how would I get the right value then? (Hopefully in the same way!)

 [3/5] from: nomoreshoes:btopenworld at: 6-Nov-2001 14:11


hi i just got to grips with feel myself. so here is my first simple little program that actually works. for some reason if u make the `password` box hidden then it doesnt work so i had to leave it in plan view. if this helps and u want me to explain how this script works mail me directly and i will tell u. i found the docs a bit hard to understand too by the way, this little thing took me ages - and its not perfect because if the list is bigger than what u can see if won`t scroll - but that is my next adventure in learning view. REBOL [ Title: "url dir viewer v 0.1" Date: cvs-date "$Date: 2001/04/29 16:00:17 $" Rights: "as if this is worth money he he" Purpose "quickly view contents of a url" ] view layout [ style lab label 80 left across lab vh2 "view website contents" gold text "v 0.1" return lab "url" url: field return lab "user name:" user: field return lab "password:" pass: field return lab "Files:" t: text-list return return lab button 96 "connect" feel [ engage: func [face action event] [if action = 'down [cats: probe join ftp:// [user/text : pass/text "@" url/text] t/lines: load cats show t]] ] button 96 "exit" feel [ engage: func [face action event] [if action = 'down [quit] ] ] ]

 [4/5] from: hallvard:ystad:helpinhand at: 6-Nov-2001 15:38


Thanks. I'm getting it now. Slowly. I recon you had a reason to use 'feel in your example... Else, you could simply do: button 96 "connect" [ cats: probe join ftp:// [ user/text ":" pass/text "@" url/text ] t/lines: load cats show t ] button 96 "exit" [quit] ~H

 [5/5] from: nomoreshoes:btopenworld at: 6-Nov-2001 15:07


i had failed to do it without feel, then got the impression i had to use feel to do it from the docs and eventually it did work. i will try it without feel as u said and only use it if i have to - everything i do is simply to learn - i dont know enough to use rebol for the network ideas i have in my head yet.

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