[REBOL] Re: Gradient and Transparency

2004-06-01 Thread Patrick Philipot
Hello Cyphre, Thank you! I honestly do not understand how it works, but it works. -- Regards, Patrick -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Gradient and Transparency

2004-06-01 Thread Patrick Philipot
Hello Rebol-List, Is it possible to apply a gradient to a text, not the the text background? This code changes the text background: view center-face layout [ title "Pat665" yellow effect [gradient 1x1 red blue] ] Also, is it possible to use transparency (alpha channel) on text? -- Best re

[REBOL] Re: full screen

2004-01-01 Thread Patrick . Philipot
Hello Gregg, Wednesday, December 31, 2003, you wrote: GI> view/options/offset layout [ GI> size system/view/screen-face/size button "Unview" [unview] GI> ] 'no-title 0x0 As often, when I see a valuable code, I have made a little program to kept it in a folder that I have named "Good to know

[REBOL] how to export a function from a context?

2003-12-30 Thread Patrick . Philipot
Hi List As I was reading "Make-doc.r" from Carl Sassenrath, I came upon a construction I had not noticed before. Or perhaps, I had not noticed how important it was before. Nothing new for a lot of you, but ... I think it's cool to see some Rebol code once and a while on this list. 8< - - - - -

[REBOL] parse problem

2003-11-16 Thread Patrick . Philipot
Hi List I have being struggling all day with a parse problem: extracting all strings from a Rebol script. It may seem trivial at the first look. However as you know strings are delimited by a pair of (") or by ({) and (}) and inclusions are allowed. {Hello "vous"} and "Salut {you}" are valid st

[REBOL] Re: Another coffee break problem?

2003-11-11 Thread Patrick . Philipot
Hello Joel, Tuesday, November 11, 2003, 1:01:52 AM, you wrote: JN> If Sunanda will allow me to steal his subject line... ;-) JN> The following 3-by-3 display is a simple magic square: JN> 0 8 4 JN> 5 1 6 JN> 7 3 2 JN> because each row and each column sums to

[REBOL] Re: Curiosity

2003-11-11 Thread Patrick . Philipot
Hello Carlos, View under Windows at home. -- Best regards, Patrick -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Why I don't need get-word here!

2003-11-02 Thread Patrick . Philipot
Hi List, Warning, this is a long post! As often while coding some practical actions, I am faced with fundamentals questions. I have some workarounds available, and it is not a matter of doing things. What matters is understanding fully what I am doing and there is no better place to ask... The

[REBOL] Re: Block or Object

2003-10-26 Thread Patrick . Philipot
Thanks Brett and Romano, You have answered my question and far beyond. This is the actual case I was "working" on. favorite: layout [ style fv text 200 "?" style bt-fv btn-enter "change" [ ; look for the previous face value: back find face/parent-face/pane face ; <--

[REBOL] Block or Object

2003-10-26 Thread Patrick . Philipot
Hi List, How can the same thing be an object or a block ? See an example: ; a simple layout lay: layout [ text "Hello" button "Test" [mytest face] ] ; explore lay/pane mytest: func [ f [object!] /local f2 ][ ; here an object foreach face lay/pane

[REBOL] Re: pdf-maker

2003-10-24 Thread Patrick . Philipot
Hi Gabriele, >GSimage x y w h img So simple as usual. Thank you! The french doc about pdf-maker (Will Arp post)is also quite good! Best regards, Patrick -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] pdf-maker

2003-10-24 Thread Patrick . Philipot
Hi List, I am looking for the syntax or an example to use an image with pdf-maker. I did not find it in the doc available. -- Best regards, Patrick -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Re: Bad accent causes problem

2003-10-11 Thread Patrick Philipot
Thank you Sunanda, I will use your function. -- Best regards, Patrick -- To unsubscribe from this list, just send an email to [EMAIL PROTECTED] with unsubscribe as the subject.

[REBOL] Bad accent causes problem

2003-10-11 Thread Patrick Philipot
Hi List, Publishing photos on Internet, I got problems with filename with accent. For example, a photo named "Ebouriffée.jpg" displays well under Windows, but give me an "HTTP error 404" under Linux. I thought I could rename the file using lowercase or uppercase or even a combinaison of the two,

[REBOL] How to copy file ?

2003-10-11 Thread Patrick Philipot
Hi List, Wanting to copy a file from one folder to another I found only this : ; copy rebol logo write/binary to-file rejoin [image-dir %pwr-reb-tech100.gif] read/binary %pwr-reb-tech100.gif I am surprised not to find a "file copying" command, or have I not search enough? Regards Patrick --

[REBOL] Re: Blind resizing

2003-10-10 Thread Patrick Philipot
Hello Anton, Friday, October 10, 2003, 6:27:47 AM, you wrote: AR> img: load %my-image.png AR> img2: to-image layout [origin 0 image 50x50 img] AR> save/png %my-image2.png img2 AR> Anton. Thank you Anton, exactly what I was looking for. The trick is to use 'layout to perform the resizing. --

[REBOL] Blind resizing

2003-10-09 Thread patrick . philipot
Hi List, To create image thumbnails, I am using View and a box with the desired size (for example the picture is 1024x780 and the box is 128x96). mybox/image: load mypicture The resizing is implicit. To actually create the thumbnail, I use save/png %small-pic.png to-image mybox This w

[REBOL] Blind resizing

2003-10-09 Thread Patrick Philipot
Hi List To create image thumbnails, I am using View and a box with the desired size (for example the picture is 1024x780 and the box is 128x96). mybox/image: load mypicture The resizing is implicit. To actually create the thumbnail, I use save/png %small-pic.png to-image mybox This wo

[REBOL] Re: Parse limitation ?

2003-10-08 Thread Patrick Philipot
Hello Ingo, Wednesday, October 8, 2003, 12:50:20 PM, you wrote: IH> Hi Patrick, IH> patrick à la poste wrote: >> Hi List, >> >> I'd like to parse a string searching for two things at the same time. >> it seems to me that this is impossible. IH> One trick is, to find something that is equal b

[REBOL] Missing CGI doc

2002-04-12 Thread Patrick Philipot
Hi rebollers, In RT FAQ it is mentioned that a CGI howto should be available in the howto section. It is not. At Rebol Forces, there is also a broken link to a cgi-basics.html. Is there a place where one can find these ? Patrick ___

[REBOL] [rugby-core release]

2002-02-09 Thread Patrick Philipot
Hi Maarten, I have started testing rugby-core (as I call it). 1. Get-rugby-service needs the :8002 port explicitely, otherwise connection fails. >> do get-rugby-service http://192.168.1.51 ** Access Error: Cannot connect to 192.168.1.51 ** Where: open-proto ** Near: return to-result read/custom

[REBOL] [rugby XPi beta1 - name conflict]

2002-02-02 Thread Patrick Philipot
Hi Maarten Here is a problem and the related suggestion regarding rugby XPi. The problem === To experiment with rugby, I was trying to split the tic-tac-toe program in two part : a server and a client. Foolishly I started my server with the following line : serve [compute-move get-res

[REBOL] rugby XPi beta1/add-functions

2002-01-29 Thread Patrick Philipot
Hi Maarten, When add-functions is used repeatedly with the same function. This fonction appears several times in the function list. Here is my code. >> rx: context get-rugby-service tcp://192.168.1.53:8001 >> psw: "pat665" >> rx/remove-functions "pat665" [double] == none Once removed the f

[REBOL] [Rugby XPi beta1]

2002-01-27 Thread Patrick Philipot
Hi Maarten, Testing the /nostubs refinement, I got an error on the client side. ===The server code was rebol [] print "Test de rugby" do %/D/rebview/public/rugby/rugby.r triple: func [n][3 * n] double: func [n][2 * n] serve/nostubs [triple double] ===The client code was do get-rugby-service

[REBOL] [view] how to update text-list?

2002-01-17 Thread Patrick Philipot
Hi, Rebollers How can one update a text-list? Surely a simple thing but ... I've tried this and it did not work: the change button changed nothing. Rebol [] b-one: ["one" "two" "three"] b-two: ["red" "green" "blue"] win: layout [ tl: text-list data b-one button "change" [tl/data: copy b-two

[REBOL] How to change a file extension ?

2002-01-13 Thread Patrick Philipot
How to change a file extension ? Example: Changing from %program.r to %program.bak Pitfall: It cannot be done with a simple find and replace. Find and replace will fail in some case like the following: /d/rebol/prog.r/program.r -> /d/rebol/prog.bak/program.r /d/rebol/prog.r/program.r -> /d/rebo

[REBOL] Is Rebol suited for Object Oriented programming ?

2002-01-08 Thread Patrick Philipot
Hi, all My 0.02 Euro question (european joke, isn'it Sunanda) is "Is Rebol suited for Object Oriented programming ?" I know Carl Sassenrath is a former OOP addict, but has he left enough OO in Rebol to allow good Object Oriented designed program. Patrick

[REBOL] Object Oriented design

2002-01-06 Thread Patrick Philipot
Hi all, I don't know how to program anymore (did I before ?) because I'm very confused about Object Oriented design. When I started with computer, my reference book was "Algorithms + Data structures = Programs" by Niklaus Wirth. I was satisfied with this equation at the time, I am not anymore. I

[REBOL] how to display multi-line text

2001-12-30 Thread Patrick Philipot
Hi all rebol-lister Happy New Year to all, and a new FAQ. Patrick at Euro - 2 How to display multi-line text? Short answer: Using as-is and a negative height such as 400x-1 Problem illustration: = rebol [] ;--- ; This program shows a one line

[REBOL] source fails for object function

2001-12-12 Thread Patrick Philipot
Hi all, I have used 'source to verify that two functions were identical. However this technic fails for object function. This small script shows this. Rebol [] a: func [n [integer!]] [ 2 * n ] b: :a obj: make object! [ myfunc: none ] c: func [n [integer!]] [ 3 * n ] obj/myfunc: :c print o

[REBOL] How to append a block to a serie or array of blocks ?

2001-12-12 Thread Patrick Philipot
Hi, all Is it OK if I post some short Q&A about Rebol to the list for validation ? Here is an other example. I will continue depending on the feed back I will get. How to append a block to a serie or array of blocks ? Short answer: Using append/only Problem illustration: >> a: array [2 2] =

[REBOL] FAQ: How to return a block with evaluated value ?

2001-12-12 Thread Patrick Philipot
Hi, all Is it OK if I post some short Q&A about Rebol to the list for validation ? Here is an example. I have one more to come. I will continue depending on the feed back I will get. How to return a block with evaluated value ? Short answer: Using compose. Problem illustration : >> b: fu

[REBOL] Elegant way to reference a function?

2001-12-03 Thread Patrick Philipot
Hi all, What is the elegant way to reference a function? Let me explain a little bit my context : I am working on a program that selects items using criterion (may be the plural criteria is required here, but I'm french you know). Theses items are photos, for example, or texts such as FAQ.

[REBOL] How can one get rid of an alias?

2001-12-03 Thread Patrick Philipot
Hi, all How can one get rid of an alias? For example, I type this at the console (it was an error) >> alias 'print affiche And I receive a well deserved error ** Script Error: affiche has no value ** Where: halt-view ** Near: alias 'print affiche However, when I enter what I think is the co

[REBOL] another gotcha

2001-12-02 Thread Patrick Philipot
Hi all, Here is another gotcha from rebol I found as I was cleaning up some of my code. This cleaning job was motivated by the following section of the "view user's guide". [... 13.3. Avoiding Variable Collisions For large scripts that have a lot of position and face variables, it may become

[REBOL] why 2 error?

2001-11-22 Thread Patrick Philipot
Hi, Reading Ladislav "Words, Aliases, Contexts, Visualizations, Bindings and Scope in Rebol.html" I found the following function. undefined?: func [ {determines, if a word is undefined} word [any-word!] ] [ error? try [error? get/any :word] ] I can't figure o

[REBOL] view indirection

2001-11-20 Thread Patrick Philipot
Hi, I am stuck in a should-not-be-so-difficult problem with view. I have a lot of checkboxes in a layout, named c1, c2, ... c16. At one time, given a number X, I would like to do something on the cX checkbox. For now, I have this sort of code : set-check: func [n [integer!] /local code ][ c

[REBOL] [view] object indirection

2001-11-18 Thread Patrick Philipot
Hi, I am stuck in a should-not-be-so-difficult problem with view. I have a lot of checkboxes in a layout, named c1, c2, ... c16. At one time, given a number X, I would like to do something on the cX checkbox. For now, I have this sort of code : set-check: func [n [integer!] /local code ][ c