06-15-2012 02:25 PM
I am trying to programmatically customize a UI form by either moving string controls on to the canvas or making them visible. However, the label doesn't react the same as the control when programmically changing opacity, top, or left properties even when the label is locked. Is there a way to do this? Thank you.
Solved! Go to Solution.
06-15-2012 02:35 PM - edited 06-15-2012 02:35 PM
I don't think there's a way to do this, besides hiding the label. (If you hide the labels and still want matching text to go along with your controls, you could drop a plain Text element and programmatically move / fade it when you change the other controls.)
06-15-2012 03:31 PM
Is there a way to move / fade plain text elements? I could use a string indicator but I can't get rid of the border. There is still a gradient shadow. I have set background, and border color to white and border width to 0 but still a shadow. Any suggestions?
06-15-2012 03:38 PM
You probably want "Text", not "String Indicator". There's no gradients or styling on this besides the text color / font and font thickness / etc.
And, you should be able to move and fade a plain text element. After you drop one from the palette on the front panel, switch to the block diagram.
Then, drop an appropriate terminal item for what you want to bind to and hook it up: For Left, Top, or Opacity, drop a Numeric > Numeric Terminal. Then in the ribbon (Terminal Tools / Configuration tab), Link To "TextBlock" and the appropriate property.