Factory properties can only be queried, not set, error

2 visualizaciones (últimos 30 días)
sermet
sermet el 5 de En. de 2016
Comentada: Jacqueline el 19 de Nov. de 2018
for example I want to change factoryUicontrolFontSize with this command;
set(groot,'factoryUicontrolFontSize',10)
When I execute above command, I got;
Error using set Factory properties can only be queried, not set.
  1 comentario
Stephen23
Stephen23 el 5 de En. de 2016
The whole point of factory settings is that they cannot be changed: this allows a system to be rest to its initial (working) state. If any user could simply play around and change the factory settings, then a true reset would never be possible.
Try adjusting the default values instead of the factory values.

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord el 5 de En. de 2016
You can't change the factory settings -- they are set at the "factory" (here at MathWorks.)
You can set the DEFAULT settings instead -- change the 'factory' part of your command to 'default' instead. Note that this will only change future uicontrols; it will have no effect on uicontrols that already exist, even if you didn't give them a different FontSize (and so they were using the default from when they were created.)
  2 comentarios
Silvio Eberhardt
Silvio Eberhardt el 8 de Sept. de 2018
But msgbox() and other UI objects don't read the default values of properties, they read the factory value. On my computer, that results in very small print. And when the font size is modified (along with the box extent) after msgbox is called, on slower systems you then see the box changing - a rather ugly effect.
Jacqueline
Jacqueline el 19 de Nov. de 2018
I have the same problem. I end up just overwriting inputdlg, questdlg, etc but it would be nice if there was a way to just increase the FactoryUicontrolFontSize.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by