Prev: Matlab 2010a dir cmd
Next: 'ghost' path?
From: Philip on 12 May 2010 18:05 So I have a couple of sliders in my gui. I have them set in the openingfcn and then reset when I press a reset button. In the resetfcn I have tried two things; handle.slider=20 and set(handles.slider,'value',20); while they both work and reset the value, neither resets the actual position of the slider dial on the scale. How do I return it to where 20 is? Thanks, Phil
From: ImageAnalyst on 12 May 2010 19:20 Phil I don't know what you're doing wrong, but on mine, when I set the value, the thumb bar on the slider control moves to where it's supposed to be.
From: Philip on 13 May 2010 15:34 ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <603096bc-7a5b-42b3-9ff5-8a2fa95fea5c(a)h39g2000yqn.googlegroups.com>... > Phil > I don't know what you're doing wrong, but on mine, when I set the > value, the thumb bar on the slider control moves to where it's > supposed to be. Thanks for the reply. I actually got it. I was using the same handle for the slider and the value I pull from the slider. Thus, when I reset that handle, it was defaulting to updating the handle's value and not the actual slider.
|
Pages: 1 Prev: Matlab 2010a dir cmd Next: 'ghost' path? |