how can i change the color of the text in the dialog box of errordlg ?
21 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
walid albugami
el 16 de Feb. de 2021
Comentada: walid albugami
el 16 de Feb. de 2021
how can i change the color of the text in the dialog box of errordlg ?
0 comentarios
Respuesta aceptada
dpb
el 16 de Feb. de 2021
Use the \color{specifier} modifier for the text string passed. Will have to create an options struct to set interpreter to 'Tex'
opts.WindowStyle='modal';
opts.Interpreter='tex';
msg='DEFAULT TEXT\color{magenta} MAGENTA TEXT';
titl='Error Dialog Title';
errordlg(msg,titl,opts)
will display the error dialog with black and magenta text as requested.
See
doc errordlg
for all the details...it's old-timey, for sure, no new objects around here! :)
Más respuestas (0)
Ver también
Categorías
Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!