Factory properties can only be queried, not set, error

1 ビュー (過去 30 日間)
sermet
sermet 2016 年 1 月 5 日
コメント済み: Jacqueline 2018 年 11 月 19 日
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 件のコメント
Stephen
Stephen 2016 年 1 月 5 日
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.

サインインしてコメントする。

採用された回答

Steven Lord
Steven Lord 2016 年 1 月 5 日
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 件のコメント
Jacqueline
Jacqueline 2018 年 11 月 19 日
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.

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by