Effacer les filtres
Effacer les filtres

Line in GUI Figure NOT the PLOT

4 vues (au cours des 30 derniers jours)
msand65
msand65 le 6 Fév 2017
Commenté : msand65 le 7 Fév 2017
I want to show the connections between buttons in a GUI figure (NOT A PLOT). Is there are way to add lines to visibly connect two objects (say buttons or panels) in a GUI?

Réponses (1)

Walter Roberson
Walter Roberson le 7 Fév 2017
Yes. You can create a number of very very narrow (or very very short) uipanel() with frame turned on (as is the default), and arrange them touching each other so that you can get whatever corners you want.
-----B
|
|
A-----|
this would use 3 uipanel, one very short one right beside A, one very short one left beside B, and one very thin one running horizontally.
However, it is not possible to draw a line or an annotation outside of an axes. Outside of axes, uipanel() and uitab() and uicontrol() and the hidden uitree() are all that you have. Unless, that is, you are willing to work at the Java level.
  1 commentaire
msand65
msand65 le 7 Fév 2017
Thank you Walter. I thought of this as well (and using an axes of an inactive plot, you can make a longer "line"). Sounds like Mathworks did not think of asthetics when they put in the GUI option. Don't get me wrong, the GUI's are great.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Migrate GUIDE Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by