In Guide, How to add border

7 visualizzazioni (ultimi 30 giorni)
dmfwlansejr
dmfwlansejr il 6 Ago 2021
Commentato: Rik il 6 Ago 2021
In static text, how to add border line
Like this
  1 Commento
Rik
Rik il 6 Ago 2021
Modificato: Rik il 6 Ago 2021
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.

Accedi per commentare.

Risposte (1)

Jan
Jan il 6 Ago 2021
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 Commento
Rik
Rik il 6 Ago 2021
I agree (both about the aestetics and functionality).
I would suggest setting Units to Normalized after creation to prevent issues when resizing the window.

Accedi per commentare.

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by