rebol

Problem with Variable Scoping in Rebol's Object

I have modified the rebodex app so that it can be called from rebol's console any time by typing rebodex. To show the title of the app, I need to store it in app-title: system/script/header/title so tha it could be used later in view/new/title dex reform [self/app-title version] That works but as you can see I have named the var na...

How to create subpanels and show up one below the other in Rebol ?

The official tutorial here http://www.rebol.com/how-to/subpanels.html does show how to create panels and shows one OR the other not how to show them ALL of them one BELOW an other. So any other article or how to do this ? ...

Where is rebol fill-pen documented (to get glow effect on a round rectangle) ?

There is some discussion here about fill-pen http://www.mail-archive.com/[email protected]/msg02019.html But I can't see documentation about cubic, diamond, etc... effect for fill-pen in rebol's official doc ? I'm trying to draw some round rectangle with glowing effect but don't really understand the parameters I'm playing with so...

A more elegant way to start a multithread alarm in Rebol VID ? (What's the equivalent of load event?)

I want to trigger an alarm when the GUI starts. I can't see what's the equivalent of load event of other language in Rebol VID, so I put it in the periodic handler which is quite circumvoluted. So how to do this more cleanly ? alarm-data: none set-alarm: func [ "Set alarm for future time." seconds "Seconds from now to ring alar...

Is it possible to get anti-alias for Font in Rebol Graphics VID ?

Anti-alias works for Draw but I can't see how to get anti-alias for font : is it possible anywhow (including hacking rebol vid ...) because font in the picture generated below is not nice: view layout [ box 278x185 effect [ ; default box face size is 100x100 draw [ anti-alias on ; information for the next dra...

How to replace all pixels of some color in a bitmap in Rebol ?

Let's say I have a picture, I want to create some variations by changing a color. How to do this ? I don't want to apply color filter to a picture, I want to change pixels color pixel by pixel by testing a color pixel if it is let's say red, i want to turn it to blue. ...

Rebol Plugin install procedure on IE and when will it be available for Firefox ?

I just installed Rebol Plugin on IE. What happens when a user connect to a rebol script demo without this plugin. Will he be asked to install it automatically ? When will Rebol Plugin available for Firefox ? ...

How to create dynamic panel layout for this logo creation wizard ?

I want to create a wizard for the logo badge below with 3 parameters. I can make the title dynamic but for image and gradient it's hardcoded because I can't see how to make them dynamic. Code follows after pictures: custom-styles: stylize [ lab: label 60x20 right bold middle font-size 11 btn: button 64x20 font-size 11 edge [siz...

How can I read this url in Rebol ?

when trying to read this kind of url URL: http://v4.lscache2.c.youtube.com/videoplayback?ip=0.0.0.0&sparams=id,expire,ip,ipbits,itag,algorithm,burst,factor,oc:U0dWSlhTVF9FSkNNNl9QTVhJ&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&expire=1275886800&key=yt1&signature=89195E808CB3FBBC7BDE729...

how to get get-env refresh in rebol ?

if i change hkey_current_user/environment/path in registry, get-env "PATH" doesn't reflect the new value unless I close rebol console and re_open it. ...

Reading large Binary files fails in Rebol

The following Rebol code fails due to an out of memory error: read/binary http://mirror.bytemark.co.uk/ubuntu-releases/lucid/ ubuntu-10.04-desktop-i386.iso How can I use Rebol to read large binary files over HTTP? ...

How to create newline in a rebol block ?

let's say I have a config.txt which contains: "param11" "param12" "param21" "param22" I'll load it in memory with config: load %config.txt I can save it back with save %config.txt config So far so good. Now the problem occurs for me when I want to add "param31" "param32" I have tried append config reduce [newline...

What is this syntax #[] in REBOL?

In another question, I saw the following syntax: #[unset!] What is that? If I say type? #[unset!] in R3, it tells me unset!, but it doesn't solve the mystery of what #[] is. So curious. ...

Why can't I bind things like EMAIL! in the global context on interpreter startup?

When I start up an R3 Alpha 99 session, and enter this as the first command, I get an error: >> is-email-addr: get bind to-word "email?" bind? 'system ** Script error: email? is not in the specified context ** Where: bind ** Near: bind to-word "email?" bind? 'system But if I quit, restart and instead execute a test to prove that the e...

Error with Test-async-http.r in rebol

I tried http://rebol.wik.is/Protocols/Test-async-http.r do %async-protocol.r do %async-http.r buffer: copy "" content-length: 0 handler: func [port [port!] event [error! word!] ] [ switch event [ connect [print "Connected." false] read [ if port/sub-port/state/inbuffer [ statustxt/tex...

Problem converting block of string to clipboard when there is ^ character in rebol

Let's say I have this block: Yuml-Output-List: [ {note: Wordpress Profiles{bg:beige} [Blogger]^[User] [Admin]^[Blogger] [Author]^[Blogger] [Subscriber]^[User] } {note: Blogger Role{bg:beige} [Blogger]-(Manage Posts) } {note: Admin Roles{bg:beige} [Admin]-(Manage Site) (Manage Site)>(Manage Users) (Manage Site)>(Manage Themes) (Mana...

How to send a http head request with Rebol ?

I Would like the get the filesize of a remote file using Rebol, in a similar way to how it is done with php, by send an HTTP HEAD request. I can't find any example of how to do this in Rebol, but using the Prot-http module may be the right place to start? i tried read/custom URL [ HEAD "" ] it returns "" and not header. ...

How to parse / colorize keyword/value pairs in url ?

I tried to colorize in rebol an url like this content: "http://domain.com/test.php?keyword=hdhdf&amp;hdhd=sdcfsv&amp;sbcfsv=sdncfd&amp;sncfsdv=dncsv&amp;cnsv=dshdkd&amp;scsv=12334&amp;DXV=D&amp;SWJDJJDFDJQKKKKKKKKKKKK&amp;DFG=V&amp;DJJF=DJVNVV&amp;DJFFFFFFFFFF=33333" rule-keyword-0: [to "?" thru "?" mark: (insert mark {<font color="red...

How to REALLY request a folder not a file in rebol ?

Request-file/path returns a folder and files in a block but still requires to select at least a file: it isn't possible to select a folder only. Update: request-dir exists but it's not the windows dialog, I prefer windows dialog like request-file, isn't it possible ? ...

How to find the source code for clipboard:// protocol on rebol ?

Usually to get the source code one can use source func_name but for a protocol like clipboard:// how to get it ? ...