Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #3150

Re: Nudge? (Coarse and Fine Manipulation)

From "Nasser M. Abbasi" <nma@12000.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Nudge? (Coarse and Fine Manipulation)
Date 2011-06-17 04:10 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <itek42$s77$1@smc.vnet.net> (permalink)
References <itcd9j$cvt$1@smc.vnet.net>

Show all headers | View raw


On 6/16/2011 1:01 AM, AES wrote:
> Suppose you want to have a slider control that does coarse adjustment of
> an input variable in a Manipulate (range 0 to 150, let's say), and then
> a much finer adjustment button or slider you can use to nudge that value
> up or down by a much smaller amount (steps of 0.001, let's say) near any
> critical transition points.
>
> If the input variable to be controlled is x, I suppose one could have a
> coarse slider to set the value of x0 in the range 0<= x0<=150  and a
> fine slider to set x1 in the range  -0.001<= x1<= +0.001; and then have
> x = x0+x1 as the first statement in the active part of the Manipulate.
>
> Other better ways to do this?
>

The typical solution to this is to have the standard slider, but
with clickable body. like this:


<-------||----------------->
<-------||----------------->

when moving the slider (by dragging the bar inside it or by clicking
on the end arrows) will cause the control variable value to change
by a fine amount, say 1%. This is how the Mathematica slider works
(but it does not have the side arrows, only the bar in the middle).

But the slider should support clicking on any side of the slider
bar, and then the bar will move by the granular amount, say 10%
to the left or to the right.

These 1% and 10% can be configurable ofcourse.

It would be nice if next version of Mathematica will have such
a control.  Holding ALT and sliding it, does not really give
the needed control as the above method. The above method
I think is a standard way to do it, at least on 2 other systems
I know of now.

--Nasser

Back to comp.soft-sys.math.mathematica | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Nudge?  (Coarse and Fine Manipulation) AES <siegman@stanford.edu> - 2011-06-16 08:01 +0000
  Re: Nudge?  (Coarse and Fine Manipulation) Yves Klett <yves.klett@googlemail.com> - 2011-06-16 10:24 +0000
  Re: Nudge?  (Coarse and Fine Manipulation) "Nasser M. Abbasi" <nma@12000.org> - 2011-06-17 04:10 +0000

csiph-web