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.
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
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
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< - - - - -
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
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
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.
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
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 ; <--
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
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.
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.
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.
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,
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
--
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.
--
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
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
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
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
___
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
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
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
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
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
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
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
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
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
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
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]
=
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
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.
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
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
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
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
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
38 matches
Mail list logo