Effacer les filtres
Effacer les filtres

Adding text to label sliders in a uifigure.

6 vues (au cours des 30 derniers jours)
John Havenar
John Havenar le 6 Juin 2024
Réponse apportée : Voss le 6 Juin 2024
I am trying to add labels to sliders in an app I'm creating programmatically. It's just a few sliders in a uigridlayout inside of a uifigure. I see in the AppDesigner that there's a quick and easy label component, but I cannot find a way to do such a thing programmatically.
I would use a uicontrol set to 'text', but I cannot place that inside a grid layout. I want it to be placed in a way that it stays with the slider if the window is resized.

Réponse acceptée

Voss
Voss le 6 Juin 2024
uilabel is the function to create a label component programmatically.

Plus de réponses (0)

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by