Created:
Feb 18, 2022 02:31 PM
| Last Modified: Jun 9, 2023 11:11 AM(587 views)
Hi. I'm wondering if there's a way to center justify the values in a NumberColBox. I have a GUI and it would help make things more readable to the user if all my columns were center justified. I can center justify strings in a StringColBox using << Set Justify(center), but I see no corresponding option for a NumberColBox. I'm aware I could convert all my numeric values to text and use a StringColBox instead, but I was hoping a more elegant solution might exist.
Re: Is there a way to Center Justify a NumberColBox?
This widget could not be displayed.
Created:
Feb 18, 2022 02:44 PM
| Last Modified: Feb 18, 2022 11:44 AM(583 views)
| Posted in reply to message from nikles 02-18-2022
The Script Editor is the definitive documentation for the messages and options available to the NumberColBox and I do not see a message or option that will set the justification. I have used your stated work around, converting to a string, many times, and find that it works well.
Re: Is there a way to Center Justify a NumberColBox?
This widget could not be displayed.
Created:
Feb 18, 2022 04:48 PM
| Last Modified: Feb 18, 2022 1:48 PM(566 views)
| Posted in reply to message from txnelson 02-18-2022
Thanks Jim. I was curious though, how do you convert a vector of numbers to a list of strings? E.g. [1, 2, 3] --> {"1", "2", "3"}. Is there a way to do this without using a for loop?