AppDesigner - Changing EditField font size
Mostrar comentarios más antiguos
Hi! I wanted to change the font size of an edit field while running the program by selecting the value from the drop down list. This is the event function:
function FontSizeDropDownValueChanged(app, event)
value = app.FontSizeDropDown.Value;
switch value
case 8
app.EditField.FontSize = 8;
case 10
app.EditField.FontSize = 10;
case 12
app.EditField.FontSize = 12;
case 14
app.EditField.FontSize = 14;
case 16
app.EditField.FontSize = 16;
end
app.EditField.Value = value;
end
and this is the idea:

However, when I select a value the font size doesn't change. The text does change, but not the font size. What mistake am I making?
1 comentario
Mario Malic
el 24 de Mayo de 2021
Try adding drawnow at the end of callback.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Update figure-Based Apps en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!