Support Board
Date/Time: Fri, 29 Nov 2024 10:42:29 +0000
Post From: [ACSIL] newline character in control bar button text?
[2023-02-18 22:26:12] |
User275839 - Posts: 61 |
Hi bradh - Thank you for your response. I'm effectively doing what you suggested, except that I'm pulling the user-provided string from the Input_ item in the study settings dialog. sc.SetCustomStudyControlBarButtonText(ACS_Button_ID, Input_ACSButtonLabel.GetString()); I tried putting a \n newline in the settings dialog but it just shows up as backslash-n in the button label. Then I tried some voodoo, but same results: SCString inputString; inputString.Format("%s", Input_ACSButtonLabel.GetString()); sc.SetCustomStudyControlBarButtonText(ACS_Button_ID, inputString); I wonder if Sierra is doing something clever with the string to make it work in the button label when it is entered via the Control Bar Button Properties dialog in the UI? |