How to apply font name and size to dlgbox boxes
22 次查看(过去 30 天)
显示 更早的评论
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1009365/image.png)
so is it possible to apply fontsize and fontname to input boxes texts? ("Test 1,Test 2 and Test 3" for example)
0 个评论
回答(3 个)
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.
0 个评论
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:
0 个评论
Nipun
2022-7-6
Hi SRii,
Here is a link that might help: https://in.mathworks.com/matlabcentral/answers/162395-change-message-box-font
Cheers!
Nipun Mahajan
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!