Line in GUI Figure NOT the PLOT
6 ビュー (過去 30 日間)
古いコメントを表示
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?
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 2 月 7 日
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.
参考
カテゴリ
Help Center および File Exchange で Migrate GUIDE Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!