GUIDE: Is it possible to write part of a string in a uicontrol objetc in bold?
5 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Bruno Marengo
am 13 Jul. 2016
Kommentiert: Walter Roberson
am 19 Dez. 2018
Hi there! I was wondering if it's possible in a GUI to have, for example, a pushbutton or a static text with a string that has some of its words in bold. For instance: "this is an example". The FontWeight property set to bold sets all the string in bold, but I just need a part o it. Any comments? Thank you in advance!
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 13 Jul. 2016
Bearbeitet: Walter Roberson
am 13 Jul. 2016
This is not possible for uicontrol style text or edit, but it is possible for uicontrol style pushbutton, listbox, radiobutton, or popup . For those, the first thing in the String property must be '<HTML>' . After that, put in appropriate HTML3 codes as needed. For example,
'<HTML>Hello, are you having <B>fun</B>?'
You do not need to </HTML>
2 Kommentare
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!