In Guide, How to add border
5 ビュー (過去 30 日間)
古いコメントを表示
In static text, how to add border line
Like this
1 件のコメント
回答 (1 件)
Jan
2021 年 8 月 6 日
figure;
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.
参考
カテゴリ
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!