Azzera filtri
Azzera filtri

how to show title msgbox complete

4 visualizzazioni (ultimi 30 giorni)
alfred
alfred il 12 Lug 2017
Risposto: Star Strider il 12 Lug 2017
I put a title to a msgbox but... iit doesn't show complete.
How Can I do for increment the msgbox size for show complete title?
Thanks!

Risposte (2)

Star Strider
Star Strider il 12 Lug 2017
You can use the 'Position' property to lengthen the size of the message box:
h = msgbox('Test Long Title','This is a very, very, very long title');
posn = get(h, 'Position');
set(h, 'Position', posn+[0 0 150 0])
You have to experiment to get the result you want.

Jan
Jan il 12 Lug 2017
Either use a shorter title. The title bar of the figure is not a good location for storing meaningful information.
Or increase the size of the window. This works with msgbox only if you display a larger text. But you can create a copy of the msgbox.m file and modify it such that the created figure has the wanted size. But how do you determine the wanted size? It is not easy to measure how much space is required in the title. Therefore the better solution is the first suggestion.

Categorie

Scopri di più su Data Type Identification 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