Re: slider increments
- From: roberson@xxxxxxxxxxxxxxxxxx (Walter Roberson)
- Date: Thu, 30 Aug 2007 23:23:59 +0000 (UTC)
In article <fb7ijs$d42$1@xxxxxxxxxxxxxxxxxx>,
Tom <iamgoggs@xxxxxxxxxxx> wrote:
I can't figure out syntax needed to change the increments
in which I move the slider bar.
Ex. If I set a min and max of 0 and 100 respectively. I
would like to limit the user to only move in increments of
25 in between 0 and 100. As such, there would only be
five possible results in [0,25,50,75,100]. Does anyone
know how to do this?
If you wish to set the increment as 25 for both
clicking on the arrow and in the trough, presuming
h is the handle of the slider:
set(h, 'sliderstep', [25 25] ./ (get(h,'Max') - get(h,'Min')))
If you wish to set each increment to be 1/4 of the range
for both clicking on the arrow and in the trough:
set(h, 'sliderstep', [1/4 1/4])
--
Okay, buzzwords only. Two syllables, tops. -- Laurie Anderson
.
- References:
- slider increments
- From: Tom
- slider increments
- Prev by Date: Re: plotting takes too long time
- Next by Date: Re: slider increments
- Previous by thread: slider increments
- Next by thread: Re: slider increments
- Index(es):
Relevant Pages
|