CLIM mail archive
[Prev][Next][Index][Thread]
DW->CLIM question
Date: Tue, 25 Aug 1992 12:25 EDT
From: sims@starbase.MITRE.ORG (Jim Sims)
Thanks for the speedy (after you returned; how was the trip?) reply...
I was wondering if you can easily tell a bit more about the 'new, native'
sliders for 2.0. THe sliders I have a re very general, and have a coupla
features that I kinda doubt the CLIM sliders will have. So, I'm wondering
if I should fix mine or try to use the CLIM 2.0 ones:
Each slider has:
an associated global variable name that gets set by manipulating the slider
Sliders have callbacks, which are responsible for hacking the value of
any global state.
an associated equations, that may link it to other variables and/or sliders
See above.
upper and lower limits (that are dynamic)
Yes.
potential to have a finitie set of discrete values (which need not be numbers)
No.
arbitrary setup fn to be called when it's created
Specialize the slider class, use INITIALIZE-INSTANCE
Changing a slider value:
updates the global variable
propagates changes to other sliders via any mention of the (first)
slider's associated variable in the equations of the other sliders
See above.
rescales the axes if the min and max for the slider weren't already the
min and max associated with it's drawn representation
No.
redraws the value underneath the slider
Yes.
and there's probably a coupla things I left out...
You can certainly use your own implementation of sliders, but the "son
of Silica" substrate provides a more natural way to implement them than
presentation actions, which are really at too high a level.
References:
Main Index |
Thread Index