change the dialog's size

Typically: "How do I... ", "How can I... " questions
Post Reply
lwang87
Posts: 41
Joined: 24 May 2021, 16:47

change the dialog's size

Post by lwang87 »

Hello,
I want to know how to change the size of the dialog's box(or dialog display). The words of dialog and the size of that text box I set are too small. Please tell me, thanks!

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: change the dialog's size

Post by coppelia »

Hello,

for instance:

Code: Select all

<label id="1" text="Hello world!" style="* {font-size: 20px; font-weight: bold; margin-left: 20px; margin-right: 20px;}"/
There are many more formattings you could apply.

Cheers

lwang87
Posts: 41
Joined: 24 May 2021, 16:47

Re: change the dialog's size

Post by lwang87 »

Thanks for your reply. But I've use sim.displayDialog to show the information, The code is following:

Code: Select all

dialog_H=sim.displayDialog('Attention','Delay Level:no delay',sim.dlgstyle_ok,true)
, and not only the text it showed but the text window, is too small. Is there any way to make this window and the text bigger?

Post Reply