adjusting dialog box input font size

chars={'X0', 'Y0', 'Z0'};
start='coordinates?';
num_lines=1;
value={'0','0','0'};
coordinates=inputdlg(chars,start,num_lines,value);
How can I increase the font size (and make bold if it is available) of the user's input into this dialog box in Matlab 2015a?

 Respuesta aceptada

Walter Roberson
Walter Roberson el 5 de En. de 2016

0 votos

I do not know about R2014b and later. For versions before that, the font size is set according to the 'FactoryUicontrolFontSize' root property, which is dangerous to change (if it can be changed.)
The font weight (bold or not) is set according to the DefaultTextFontWeight for the text and DefaultUicontrolFontWeight for the input. Those are safer to set.

3 comentarios

sermet
sermet el 5 de En. de 2016
Dear Walter could you give me example over how I can change these properties in matlab? I searched FactoryUicontrolFontSize but couldn't find it?
Walter when I run this;
set(groot,'factoryUicontrolFontSize',10)
I got;
Error using matlab.ui.Root/set
Factory properties can only be queried, not set.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Preguntada:

el 5 de En. de 2016

Comentada:

el 5 de En. de 2016

Community Treasure Hunt

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

Start Hunting!

Translated by