How can I change the appearance (font, title, etc) of my figure window in MATLAB (R2013b)?

4 vues (au cours des 30 derniers jours)
I am building a UI and realized that the manu bar as well as the figure title bar, fontsize, fontname, appearance... cannot be changed. It depends on the user's default setting of the Window Appearance. I was wondering if there's a work around method to configure only MATLAB UI into specific appearance, but not change the user's setting on other window appearance ?
Thank you.

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 14 Déc 2019
Modifié(e) : MathWorks Support Team le 13 Déc 2019
There is no documented way to change the figure window appearance such as the font size, family, etc. The only documented way one can access the figure window properties is through the property 'Name' and 'NumberTitle'. Here is an example that illustrates that:
>> figure(NumberTitle,off,Name,My Custom Figure)
On a side note, one can access the hidden handles of the figure and customize the menus. Say, I want to set the color of the 'Desktop' toolbar menu to blue, then I would do the following:
>> set(0,'showhiddenhandles','on')
>> h = figure('Name','My Customized Figure');
>> fHandles = findall(h);
>> tags = get(fHandles,'tag');
>> set(fHandles(4),'foregroundColor',[0 0 1])

Plus de réponses (0)

Catégories

En savoir plus sur Formatting and Annotation dans Help Center et File Exchange

Produits


Version

R2013b

Community Treasure Hunt

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

Start Hunting!

Translated by