Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

change gui properties with codes not on inspector manually

1 vue (au cours des 30 derniers jours)
Feng Cheng
Feng Cheng le 15 Mai 2018
Clôturé : MATLAB Answer Bot le 20 Août 2021
I have an existing gui fig, but i want to change some properties like fontsize, fontname with command lines since they are too many panels or edit_text. I mean if it's possible to get the handle of an opening gui? like this:
handle_mygui = get(0,'mygui'); %it's definitely wrong
set(handle1_mygui.mytag.fontsize,10);
has anybody tried this? or give some hints?

Réponses (2)

Walter Roberson
Walter Roberson le 15 Mai 2018
If you are using GUIDE, then none of the Create* callbacks will have access to the handles structure, but the GUI OpenFcn callback will be passed the handles structure

tye huo
tye huo le 7 Juil 2019
The "property inspector" always pop up as i click on objects like 'fig'. I have not found a way to suppress it.

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by