[REBOL] Re: Fwd: Colors and image in a text-list
From: dockimbel:free at: 6-Jul-2001 12:27
It's not an easy task and it won't work as you expected (it was not designed to work
Firstly, you have to go deeper in the text-list structure to access the slider properties.
You can access the
slider object through the 'sld facet and the drag bar object with 'sld/dragger. Also,
reading text-list source
code can help you understand how it works :
save %text-list.r get-style 'text-list
save %slider.r get-style 'slider
Secondly, the facets you're setting in the 'with block can be modified, at run-time,
by the execution of the
'init block. There's 2 solutions :
* Modify your facets after the view objects have been builded with the 'do keyword in
your VID code.
* Use the 'init-last facet from my modified 'layout (in the Win95-skin package) to keep
your code at
the stylesheet level.
Here's a solution using 'do keyword :
view layout [
tl: my-text-list 200x80 data ["one" "two" "three" "four" "five" "six" "seven"]
tl/sld/dragger/effect: [grid 1200x4 230.230.230]
Etienne ALAURENT wrote: