LabVIEW Web UI Builder and Data Dashboard

cancel
Showing results for 
Search instead for 
Did you mean: 

Label problem when programmically changing control properties

Solved!
Go to solution

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.

0 Kudos
Message 1 of 5
(8,349 Views)

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.)

0 Kudos
Message 2 of 5
(8,345 Views)

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?

0 Kudos
Message 3 of 5
(8,340 Views)
Solution
Accepted by topic author Ken_Jones

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.

Message 4 of 5
(8,336 Views)

Awesome!  That well work.  Thanks.

0 Kudos
Message 5 of 5
(8,333 Views)