TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Coder on October 22, 2018, 12:49:22 PM
-
Hello everyone,
I wonder why there is a long space at the end of the alert message!
Can the width of the dialog be almost at the end of the last word of the message?
"testme : dialog { label = \"Test\"; fixed_width = true;
: text { label = \"This is just an example to show an alert message to users.\";}
ok_only;}"
Thank you.
-
I'm no expert, but since you aren't setting an actual width, perhaps you're invoking a default one. So try removing
fixed_width = true;
-
Use
alignment=centered;
-
Sorry, none of them worked as expected. :no:
-
testme : dialog { label = "Test";
: text { label = "This is just an example to show an alert message to users."; alignment = centered;}
ok_only;}
This worked for me, albeit not exactly what i think you wanted.
-
testme : dialog { label = "Test";
: text { label = "This is just an example to show an alert message to users."; alignment = centered;}
ok_only;}
This worked for me, albeit not exactly what i think you wanted.
That divides the distance on the two sides which is not quite right as long as I have another line of text and they won't look good.
-
Use the following:
test : dialog
{
label = "Test";
: text
{
width = 45.5;
value = "This is just an example to show an alert message to users.";
}
ok_only;
}
-
Wow that works great Lee.
Thank you so much.