multicolor-text / scrolling
[1/8] from: m:koopmans2:chello:nl at: 1-Jun-2001 9:56
Hi,
I'd like to do multicolor text in a text VID element, is that possible? I
don't get how para and the likes work.
And I also like to be able to do scrolling myself, has anybody a good sample
or some docs?
Thanks,
Maarten
[2/8] from: carl:rebol at: 1-Jun-2001 2:36
> -----Original Message-----
> From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of
<<quoted lines omitted: 5>>
> I'd like to do multicolor text in a text VID element, is that possible? I
> don't get how para and the likes work.
Cannot be done within a single face. Requires multiple faces.
> And I also like to be able to do scrolling myself, has anybody a
> good sample
> or some docs?
Text scrolling or face scrolling?
Text scrolling is done by modifying face/para/scroll.
Face scrolling is done by modifying face/offset.
Each has its advantages.
If you search the library for "scroll" there should be a number
of examples there.
[3/8] from: m:koopmans2:chello:nl at: 1-Jun-2001 12:00
I meant both for scroling, but I'll check out the library.
As for multicolor text, I'll see what I can come up with. But there's so
much other code to write...
[SOAP fastcgi-standalone-lib (command) ...]
Thanks,
Maarten
[4/8] from: gjones05:mail:orion at: 1-Jun-2001 5:43
From: "Maarten Koopmans"
> ... But there's so
> much other code to write...
> [SOAP fastcgi-standalone-lib (command) ...]
There is no real rush, Maarten, you have until noon today!
;-)
--Scott Jones
[5/8] from: petr::krenzelok::trz::cz at: 1-Jun-2001 13:01
Maarten Koopmans wrote:
> I meant both for scroling, but I'll check out the library.
>
> As for multicolor text, I'll see what I can come up with. But there's so
> much other code to write...
> [SOAP fastcgi-standalone-lib (command) ...]
SOAP will be nice. The more XML based protocols/tool, the better.
btw: what is your fastcgi-standalone-lib going to be about? Some kind of
wrapper to existing fastcgi library? Or you own implementation?
Thanks,
-pekr-
[6/8] from: brett:codeconscious at: 1-Jun-2001 22:53
I'm not sure of the finer points of scroll-para but this has an effect:
some-text: {}
for i 1 10 1 [
append some-text reduce [form system/locale/months newline]
]
view layout [
across
msg-area: area 400x100 copy some-text silver as-is
sld: slider 16x100 [scroll-para msg-area sld]
]
As for the other scrolling:
---Overview
Put big-face inside small-face (in the sense of the Panel How-to). Small
face becomes a "window" onto big-face in that you can only now see a part of
big-face.
The part of big-face you see depends on how much big-face is offset from
small-face.
To see the bottom of big-face you would want to offset big-face higher in
relation to small face - and at maximum this would To see the top of
big-face you would the offset to be 0.
be the amount that big-face is taller than small-face.
The only other thing is the size of the dragger in the slider - it should
probably reflect the amount of data that you can see (1 = all, 0.25 = just a
quarter)
---Example
big-face: layout [
title "bay.jpg"
image load-thru/binary http://www.rebol.com/view/demos/bay.jpg
]
view layout [
across
small-face: box 200x50 green
sld: slider 16x50 [
; set the vertical offset to a proportion of the amount we
cannot see
big-face/offset/2: multiply sld/data (min 0 (small-face/size/2 -
big-face/size/2) )
show small-face
]
do [
; put big-face inside small-face
small-face/pane: big-face
; initialise the offset to 0x0
big-face/offset: 0x0
; make the dragger indicate how much we can see
sld/redrag min 1.0 divide 50 big-face/size/2
]
]
I haven't taken into account edges here - edges are included in the size of
a face.
Regards,
Brett
[7/8] from: m:koopmans2:chello:nl at: 1-Jun-2001 19:28
A wrapper to make life more bearable with standalone fastcgi in command 2.0
--Maarten
[8/8] from: petr:krenzelok:trz:cz at: 1-Jun-2001 23:48
----- Original Message -----
From: "Maarten Koopmans" <[m--koopmans2--chello--nl]>
To: <[rebol-list--rebol--com]>
Sent: Friday, June 01, 2001 7:28 PM
Subject: [REBOL] Re: multicolor-text / scrolling
> A wrapper to make life more bearable with standalone fastcgi in command
2.0
I have to be missing something :-( I thought Command contains FastCGI
internally, so there is no wrapper needed. If your wrapper will work with
/Pro versions, well, that would be something else :-)
-pekr-
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted