필터 지우기
필터 지우기

How to apply font name and size to dlgbox boxes

조회 수: 21 (최근 30일)
SRii
SRii 2022년 5월 24일
답변: Nipun 2022년 7월 6일
Hi everyone.
I'm trying dlgbox and I'v changed font name and size of prompt before:
prompt = ["\fontname{Times} \fontsize{12} Name","\fontname{Times} \fontsize{12} Organizer","\fontname{Times} \fontsize{12} Controller"];
dlgtitle = "Information";
dims = [1 50];
definput = ["","",""];
opts.Resize = 'on';
opts.WindowStyle = 'modal';
opts.Interpreter = 'tex';
ConferenceInfo=inputdlg(prompt,dlgtitle,dims,definput,opts);
and this is the result:
so is it possible to apply fontsize and fontname to input boxes texts? ("Test 1,Test 2 and Test 3" for example)

답변 (3개)

Abhishek Chakram
Abhishek Chakram 2022년 6월 27일
Hi SRii,
To my understanding, the inputdialog doesn't have any property that allows the formatting of editfield's text as of now. But It might be available in the future release.
You can also request the MathWorks support team for this enhancement.

Ayush Goyal
Ayush Goyal 2022년 6월 28일
편집: Ayush Goyal 2022년 6월 28일
Hi SRii,
I understand that you have made a input dlgbox and you want to apply fontsize property and fontname(defaultName) to the input text boxes.
For setting the font size, you may please refer to the below documentation link:
Default text (Fontname) may be provided in the input text box as mentioned in the documentation link . Please refer to documentation for more info on same:

Nipun
Nipun 2022년 7월 6일
Hi SRii,
Cheers!
Nipun Mahajan

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by