adjustable sliders [message #13398] |
Thu, 05 November 1998 00:00 |
seanosea
Messages: 6 Registered: November 1998
|
Junior Member |
|
|
Dia daoibh!
I don't know if anyone has done this before, but here goes. I've used this
widget for quite a while, found it to be useful when the data varied over a
broad range of scales, and so thought I'd share it with you helpful folks.
Here's a tweaking of the beloved cw_fslider. <a
href="http://w3.pppl.gov/~sstrasbu/cw_fsl_adj.html">cw_fsl_adj.pro</a> allows
one to adjust the lower and upper ranges on-the-fly by two methods.
First, assuming (of course) that the EDIT keyword is set, one can type <3.34
in the numeric field, and the upper range will be set to 3.34; >2.14 works
similarly.
Second, typing *2.8, with 2.8 in the current range, will cause the slider
range to be centered around 2.8 and zoomed in by a factor of 4. **2.8 will
zoom in by 8; ***2.8 by 16; etc. Typing /2.8 zooms out; //2.8 similarly.
In addition, initializing the slider with a requested VALUE=3.2 above the
MAX=3.0 no longer causes an error; MAX is set to VALUE if this happens.
It was sometimes a pain to write MAX=var1>var2, VAL=var2 if one didn't know
before runtime whether var1 or 2 was going to be larger.
I've found these to be quite useful. But, then again, I have very strange
interests. It's not exactly an example of great programming; I welcome
comments and debuggings.
The location of the program is, again, from
http://w3.pppl.gov/~sstrasbu/cw_fsl_adj.html
The actual program is at cw_fsl_adj.pro.
Thanks to everyone!
Go raibh m�le maith agaibh as bhur gc�namh!
Sean O'Sea
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
|
|
|