Login Page - Create Account

Support Board


Date/Time: Fri, 29 Nov 2024 10:45:28 +0000



Post From: [ACSIL] newline character in control bar button text?

[2023-02-17 22:26:43]
User275839 - Posts: 61
I have some custom ACSIL studies that I can invoke using custom control bar buttons. I get the string for the button text using sc.Input[].GetString(). I set the button label text using sc.SetCustomStudyControlBarButtonText().

I have found that if I add a '\n' newline character to the string in the settings dialog, fetch it using sc.Input[].GetString() and set it using sc.SetCustomStudyControlBarButtonText(), the '\n' appears in the string and doesn't cause a line break.

However, setting a control bar button label using the standard "Control Bar Button Properties" dialog and entering the label text with a '\n' newline character in the "Caption:" field yields the desired result.

Is there a way to accomplish this using ACSIL calls?

Thank you!