colour of text-list/picked
[1/5] from: hallvard:ystad:helpinhand at: 12-Feb-2002 20:58
Hi everyone
I'm too tired to probe through my text-list object or the documentation available here
and there. Can anyone tell me the path to the colour of the highlighting of picked elements
in a text-list, please?
Thanks in advance,
~H
[2/5] from: rotenca:telvia:it at: 13-Feb-2002 0:48
Hi, Hallvard,
>I'm too tired to probe through my text-list object or the documentation
available here and there. Can anyone tell me the path to the colour of the
highlighting of picked elements in a text-list, please?
It is hard-wired in the init field of the styles. It is not simple to change
it for many reasons (binding). Here it is an example:
high-col: 163.223.220
ly: layout [tl: text-list data ["a" "b"][]]
tl/iter/feel: make tl/iter/feel [
redraw: func[f a i] bind [
f/color: either find picked f/text [high-col] [slf/color]
] in tl 'self
]
view ly
Now you can also change the high-col var to change the color.
You could also change the init field of the style. But it is more complex.
---
Ciao
Romano
P.S. If you don't know it, try AnaMonitor to look in the vid objects.
[3/5] from: philb:upnaway at: 13-Feb-2002 17:23
Hi Romano,
This is nice .... I dont that yellow color ...
I suppose it is consitent with the focus color in fields & areas but it doesnt look great
next to white lines in a text-list.
Cheers Phil
=== Original Message ===
Hi, Hallvard,
>I'm too tired to probe through my text-list object or the documentation
available here and there. Can anyone tell me the path to the colour of the
highlighting of picked elements in a text-list, please?
It is hard-wired in the init field of the styles. It is not simple to change
it for many reasons (binding). Here it is an example:
high-col: 163.223.220
ly: layout [tl: text-list data ["a" "b"][]]
tl/iter/feel: make tl/iter/feel [
redraw: func[f a i] bind [
f/color: either find picked f/text [high-col] [slf/color]
] in tl 'self
]
view ly
Now you can also change the high-col var to change the color.
You could also change the init field of the style. But it is more complex.
---
Ciao
Romano
P.S. If you don't know it, try AnaMonitor to look in the vid objects.
[4/5] from: hallvard:ystad:helpinhand at: 13-Feb-2002 12:28
Dixit Romano Paolo Tenca (00.48 13.02.2002):
>Hi, Hallvard,
>It is hard-wired in the init field of the styles. It is not simple to change
<<quoted lines omitted: 7>>
>]
>view ly
Thanks. I will be changing the highlight colour several times in several text-lists,
so re-implementing the 'feel for each change seems a bit... unneccessary. But it'll do
for now.
>P.S. If you don't know it, try AnaMonitor to look in the vid objects.
Oh, I do know it. I use it a lot.
~H
[5/5] from: rotenca::telvia::it at: 13-Feb-2002 16:54
Hi Hallvard,
>Thanks. I will be changing the highlight colour several times in several
text-lists, so re-implementing the 'feel for each change seems a bit...
unneccessary. But it'll do for now.
For a more general change, try this patch:
context [
high-col: 130.130.130
if svv/vid-styles/text-list/init/75/4/6/1 = 240.240.50 [change
svv/vid-styles/text-list/init/75/4/6 'high-col]
]
the 'if is here for compatibility problems and future changes of the
text-list style.
In svv/vid-colors there are some colors used by Vid. You could use one of
them.
To make the color value relative to the single text-list you could define the
high-col in the text-list object:
view layout [
tl1: text-list data ["a" "b"] ;use the default value
tl2: text-list data ["c" "d"] with [high-col: 0.200.0]
]
'high-col will be automagically bound to the text-list object by Layout.
---
Ciao
Romano
>P.S. If you don't know it, try AnaMonitor to look in the vid objects.
Oh, I do know it. I use it a lot.
~H
Notes
- Quoted lines have been omitted from some messages.
View the message alone to see the lines that have been omitted