02-22-2017 06:13 PM
I'm trying to change the font size when a caption has been updated inside a label box.
The properties image allows me to change the font size to 39.75 as shown; however, it seems that when I do a post to the caption, the size gets set to a default value.
I checked to make sure that the font source is still set to 0 (FontSource_UseFontProperty).
Now, interestingly enough, I'm able to set the fore color of the caption, but any other attributes doesn't work. For example: TSUI_LABELSETENABLE.
Does anyone ever have the same situation? I've looked through the forumn and online and it doesn't seem to have information.
Side note: It seems that NI doesn't support Vertical Align properties yet either 😞
Solved! Go to Solution.
02-22-2017 06:18 PM
To avoid having a long initial post, I did the following:
tsErrChk( TSUI_LabelSetCaption (gSocketWindow.statusLabel[(int)currentPanel], NULL, statusMessage.StatusMsg));
tsErrChk( TSUI_LabelSetBackColor (gSocketWindow.statusLabel[(int)currentPanel], NULL, 0xFF));
tsErrChk( TSUI_LabelSetForeColor (gSocketWindow.statusLabel[(int)currentPanel], NULL, 0x00F));
tsErrChk( TSUI_LabelSetFontSource (gSocketWindow.statusLabel[(int)currentPanel], NULL, 0));
The first 3 steps would work, but the 4th one doesn't.
02-23-2017 08:23 AM
Hey B1ack1otus,
I think you are using TestStand UI Controls. Instead of posting it here, try posting it at on the TestStand Forum instead.
02-23-2017 11:58 AM
Oh ok, thank you
05-03-2017 08:08 AM
error was caused due to the different ViewManager ...
Issue is resolved.
Only edited, Application View Manager, not the Execution View Manager.