How do I retain the old GUIDE slider control in AppDesigner?

8 visualizaciones (últimos 30 días)
Rakshit Kothari
Rakshit Kothari el 20 de Mayo de 2019
Respondida: Melissa Williams el 22 de Mayo de 2019
The old GUIDE slider (uicontrol) has the move forward or backward options as clicks. That's very handy for applications which require fine control over slider motion.
UIcontrol slider is in the bottom.
The AppDesigner slider is on the top.
I want UIControl slider functionalities (i.e the move forward or backward clicks) in the app designer. Ideally, the solution would require minimal code change but I'm open to extreme suggestions aswell.
  3 comentarios
Rakshit Kothari
Rakshit Kothari el 20 de Mayo de 2019
Ha! Love it. The only downside being the shift in boxes when the GUI window would be resized.
Adam
Adam el 20 de Mayo de 2019
I don't use appdesigner, but for my GUIs I have a variety of custom slider objects where I combine a slider (usually a java slider which looks like the appdesigner ones) with a spin control to give the extra fine control and abolity to type exact numbers in.

Iniciar sesión para comentar.

Respuestas (1)

Melissa Williams
Melissa Williams el 22 de Mayo de 2019
Would a spinner work for your use case? If you require both discrete ticks like the GUIDE slider and continuous slider ability you could add both controls and synchronize their values using the value changing callbacks.
sliderspinner.PNG
And the callbacks would look something like this (repeat for slider to spinner linking)
% Value changing function: Spinner
function SpinnerValueChanging(app, event)
changingValue = event.Value;
app.MyvalueSlider.Value = changingValue;
end

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by