how can i change the color of the text in the dialog box of errordlg ?

조회 수: 25 (최근 30일)
how can i change the color of the text in the dialog box of errordlg ?

채택된 답변

dpb
dpb 2021년 2월 16일
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! :)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by