MATLAB Answers

In Guide, How to add border

조회 수: 8(최근 30일)
dmfwlansejr 2021년 8월 6일
댓글: Rik 2021년 8월 6일
In static text, how to add border line
Like this
  댓글 수: 1
Rik 2021년 8월 6일
This doesn't seem to be related to GUIDE.
What kind of object did you create and what have you tried?
For general advice and examples for how to create a GUI (and avoid using GUIDE), have look at this thread.

댓글을 달려면 로그인하십시오.


Jan 2021년 8월 6일
uicontrol('Style', 'Text', 'String', '', 'BackgroundColor', 'k', ...
'Position', [20, 20, 64, 24]);
uicontrol('Style', 'Text', 'String', 'ABC', 'BackgroundColor', 'y', ...
'Position', [22, 22, 60, 20]);
Brrr. Ugly, but working.
  댓글 수: 1
Rik 2021년 8월 6일
I agree (both about the aestetics and functionality).
I would suggest setting Units to Normalized after creation to prevent issues when resizing the window.

댓글을 달려면 로그인하십시오.


Community Treasure Hunt

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

Start Hunting!

Translated by