[ALLY] Multicolored text fields
[1/4] from: reboldes::bigfoot::com at: 18-Apr-2001 13:49
Hi,, because i'm still missing the possibility to view colors in Rebol console (at
least under the WIN os) and there is no native support for multicolored text fields and
I need colors for my Rebol/view-mud client, i'm trying to do it with lots of faces...the
result is this script:http://oldes.multimedia.cz/download/rmud-view.rwhich is able to
display the text colored by special ascii/ansi (i never know what's correct name for
it) characters ... the testing text file is here:http://oldes.multimedia.cz/download/log-ansi.txtNow
what's the problem? For the first look it's OK, I have colors but on the second look
I've found, that some of the text faces are not visible! (try to reopen the text file)......i
was not able to fix it... it seems that the faces are in pane block and all settings
are correct... is it a bug or limitation in view? Is there any better way how to display
multicolored text files?Thank you for reply,Oldes
[2/4] from: oldes:bigfoot at: 18-Apr-2001 16:16
>Hi Oldes,
>First I'd like to say it looks very impressive!
<<quoted lines omitted: 5>>
>Cheers,
>Allen K
Yes... it fixed the problem with Badface, but it's not the main problem... the clear
function was only to see that sometimes some faces are not visible (especially in the
logo)... (at least the text because if you uncomment the random color of face backgrounds
in d-print the backgrounds are visible but the text is not visible...)
Oldes
PS: I'll improve the script not to display new face for each line but only if the color
is changed...
PPS: sorry, there was no line breaks in my last message:-(
[3/4] from: cyphre:volny:cz at: 18-Apr-2001 17:08
Hello Oldes,
I'm glad you are back to /View my old friend :))
here is the solution(except the bug in clearing the face as mentioned
Allen):
just rewrite edge parameter to 'none in tf object
----snip----
tf: make face [
offset: 0x0
color: none ; 150.150.150 + random 50 ;current-text-style/bcolor ;
255.255.255
text: copy str
font: make font [align: 'left valign: 'top offset: 0x0 size: 12 style:
current-text-style/style color: fc name: font-fixed]
edge: none ;***********instead of make object! [size: 0x0]************
para: make object! [origin: 0x0 margin: 0x0 indent: 0x-2 edit?: on ]
]
-----snip----
I hope it will work good enough :)))
I also hope you will visit me soon again (there is a lot of vine at my
home:)))
Regards,
Cyphre
[4/4] from: allenk:powerup:au at: 19-Apr-2001 23:48
----- Original Message -----
From: <[reboldes--bigfoot--com]>
To: <[ally-list--rebol--com]>
Sent: Wednesday, April 18, 2001 9:57 PM
Subject: [ALLY] Multicolored text fields
> Hi,, because i'm still missing the possibility to view colors in Rebol
console (at least under the WIN os) and there is no native support for
multicolored text fields and I need colors for my Rebol/view-mud client, i'm
trying to do it with lots of faces...the result is this
script:http://oldes.multimedia.cz/download/rmud-view.rwhich is able to
display the text colored by special ascii/ansi (i never know what's correct
name for it) characters ... the testing text file is
here:http://oldes.multimedia.cz/download/log-ansi.txtNow what's the problem?
For the first look it's OK, I have colors but on the second look I've found,
that some of the text faces are not visible! (try to reopen the text
file).....i was not able to fix it... it seems that the faces are in pane
block and all settings are correct... is it a bug or limitation in view? Is
there any better way how to display multicolored text files?Thank you for
reply,Oldes
Hi Oldes,
First I'd like to say it looks very impressive!
.
Regarding your error.
I notice you are getting a Badface error when reloading the text file, this
seems to be caused by setting d-text/size/y to 0 in the d-clear func. Try it
with a value of 1, does that fix the problem?
Cheers,
Allen K
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted