uicontrol(​'style','s​lider') in new App Design (uifigure)

31 visualizaciones (últimos 30 días)
Andre Zeug
Andre Zeug el 13 de Nov. de 2025 a las 16:01
Comentada: Taylor el 19 de Nov. de 2025 a las 22:14
Dear Community,
I want to migrate an old-style GUI containing many uicontrols to the new app design based on uifigure.
How can I replace scrollbar-like 'uicontrol('style', 'slider')' with an object that has similar properties and may consist of a uislider and two single step buttons? Has anyone already developed a class object that uses all the properties of uislider, such as the overall position of the object and the single step button feature at both ends of the uislider?
Are alternatives available?

Respuestas (1)

Taylor
Taylor el 13 de Nov. de 2025 a las 20:25
Have you tried the GUIDE to App Designer Migration Tool? There is also a slider/spinner component in the Widgets Toolbox Add-On that is pretty close to what you're describing.
  4 comentarios
Andre Zeug
Andre Zeug el 15 de Nov. de 2025 a las 9:11
Editada: Andre Zeug el 16 de Nov. de 2025 a las 13:35
Thanks for clarifying.
I found out documentation can also be explored in "MATLAB online". So no local installation is required.
What I would love to have is an "Combo Object" like this
which mimics the ScollBar. And
which would extend the ScrollBar to provide ranges.
Unfortunately, I don't have much experience in developing object classes that automatically link combined object properties.
Has anyone done this before, or could they help me develop such a combined object?
Alternatively, could such elements be considered for the next version of the 'Widgets Toolbox' add-on?
General question: when using 'Widgets Toolbox' elements for my 'matVis' application, is the 'Widgets Toolbox' add-on required to be installed in the recipient environment when sharing 'matVis' with others?
Taylor
Taylor el 19 de Nov. de 2025 a las 22:14
You should look into creating your own custom component. You can combine one uislider and two uispinner components in your own custom component that does exactly what you want.
When you compile your "matVis" application, if you include the files for any components used in the Widgets Toolbox, your end user will not need to install the Widgets Toolbox.

Iniciar sesión para comentar.

Categorías

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

Etiquetas

Productos


Versión

R2025b

Community Treasure Hunt

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

Start Hunting!

Translated by