スライダーを動かして​、マウスを押したまま​の状態でグラフ位置を​調整するなどの処理を​入れることは可能でし​ょうか?

マウスを押したままスライダーを動かす場合に、グラフ位置を調整するなどの処理を入れることは可能であれば、教えてください。

 Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 25 de Oct. de 2013

0 votos

スライダーを動かす際、マウスを押したままで位置の調整などの処理を入れることは可能です。上記の処理は WindowButtonMotionFcn 関数とスライドの範囲を取るコマンド get(handles.slider,'Position') を連携させれば実現可能です。サンプルプログラムを下記のリンクからダウンロードすることができます。

Más respuestas (0)

Productos

Versión

R2010b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!