Need a slider help with text-list!
[1/3] from: jon_saltzman::pitzer::edu at: 18-Nov-2001 15:55
Hi - I've seen a few conversations going around already on this, but I don't quite get
the gist of it -
I have a text-list - I want to add a slider (I don't care if it's fat, ugly or pink;
just as long as it works) to this text-list. Can anyone suggest a simple solution?
Something like the slider in edit would be VERY useful.
If I can get that small additional item taken care of, I'll have a big announcement to
make in the next few days.. so any suggestions?
-Jon
[2/3] from: greggirwin:mindspring at: 18-Nov-2001 20:29
Hi Jon,
<< I have a text-list - I want to add a slider (I don't care if it's fat,
ugly or pink; just as long as it works) to this text-list. Can anyone
suggest a simple solution? Something like the slider in edit would be VERY
useful. >>
text-list should already have the slider attached to it. If you're dealing
with a text area control, here's some code Ammon Johnson sent me a while
back that links sliders to a text area. It adds the area and sliders to a
layout block dynamically, as that fit my need.
append main-layout [return h1: space 0 text-1: area 630x200 with [
color: 240.240.240
font: [name: font-fixed]
feel: make feel [redraw: none]
] para [origin: 4x4]
s1: slider 16x200 [
size: size-text text-1
text-1/para/origin/y: s1/data - 1 * (negate size/y) - size/y + 2
show text-1
]
at (h1 + 0x200) s2: slider 630x16 [
size: size-text text-1
text-1/para/origin/x: s2/data - 1 * (negate size/x) - size/x + 2
text-1/line-list: none show text-1
]]
HTH!
--Gregg
[3/3] from: arolls:idatam:au at: 19-Nov-2001 16:28
Yes, but it doesn't connect the slider to
the text-list. When you add data to the
text-list, the slider is not automatically
updated.
See this message on escribe for an example:
http://www.escribe.com/internet/rebol/m16823.html
Here is the start page for escribe as well
(I searched for "slider"):
http://www.escribe.com/internet/rebol/search.html
Anton.