dpeva
January 14, 2022, 9:17pm
1
Is there any way to control the text layout within a popup window?
I query the operator for several dimensions, and would then like to display them so the operator can double-check her entry.
It would be nice to be able to present them in a chart format:
value 1 = 1.5
value 2 = 2.3
etc.
Instead, it just puts them all together, and even strips out leading or following spaces, making it harder to read.
See this post:
How can create a new line with string variables?
For example, in other languages like python, “first line\n second line” produces this:
first line
second line
How can I do this with urscript? I’m wanting to use a multi-line string with a yes/no pop. For example:
change_params = request_boolean_from_primary_client(“Width: 20 inches\n Height: 10 inches\ Would you like to continue with these settings?”)
Width: 20 inches
Height: 10 inches
Would you like to continue with these settings?
It gives an example of using HTML inside the popup string for formatting the text.
mbush
January 15, 2022, 8:00pm
3
Check out this post as well for more info.
dpeva
January 18, 2022, 2:45pm
4
Thanks. Was able to insert html breaks and spaces to get this looking like I want.
Also was able to add a header line, as the title line in regular popups isn’t really all that noticeable.