LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

programmatically make a picture control transparent

Solved!
Go to solution

I can make a picture control transparent before run time and it works fine.

I just can seem to be able to do it programmatically 

0 Kudos
Message 1 of 22
(5,036 Views)

If you want to swiitch the entire control between visible and invisible, use a property node with the "visible" property.

 

If you have something more complicated in mind, please clarify. 🙂

0 Kudos
Message 2 of 22
(5,021 Views)

I programatically make controls appear and disappear using the "Visable" property node feature.

I want to place a picture control on the front panel that is visible but the content is transparent.

It is very easy to do pre-runtime.  I want to effect this feature while the vi is running.

0 Kudos
Message 3 of 22
(5,003 Views)

"Ben_01880" <x@no.email> wrote in message
news:1224205806122-793708@exchange.ni.com...
> I programatically make controls appear and disappear using the
&quot;Visable&quot; property node feature.I want to place a picture control
on the front panel that is visible but the content is transparent.It is very
easy to do pre-runtime. &nbsp;I want to effect this feature while the vi is
running.

Make the picture control transparent in edit time, and during run time, draw
a white rectangle in it if you don't want to see through it.

Or, make a second picture control that isn't reansparent. Make it the same
size as the first (transparent) picture control. Place the new one behind
the first, and the same position. Show or hide the new one, to make the
first look transparent or white.

Regards,


Wiebe.



0 Kudos
Message 4 of 22
(4,989 Views)

Hi, Ben,

 I'm sorry for stupid question, but how can you make picture control transparent in Edit Mode ("before run time" in your terms)? Can you explain it, please?

Thank you,

Andrey.

 

0 Kudos
Message 5 of 22
(4,984 Views)

"Andrey Dmitriev" <x@no.email> wrote in message
news:1224241805655-793944@exchange.ni.com...
> Hi, Ben,&nbsp;I'm sorry for stupid question, but how can you make picture
control transparent in Edit Mode (&quot;before run time&quot; in your
terms)? Can you explain it, please?Thank you,Andrey.&nbsp;

Not Ben, but anyway....

Right click with shift pressed. Then you'll get the tools dialog. Select the
little brush tool. Click in the picture control, and select the little box
with a "T" in it.

Regards,

Wiebe.


0 Kudos
Message 6 of 22
(4,965 Views)

> Right click with shift pressed. Then you'll get the tools dialog. Select
the
> little brush tool.

>Click in the picture control, and select the little box
> with a "T" in it.

Sorry, right click in the picture control to select a color.

Click in it will set the color to the previous selected color, handy when
you have to change several colors.


0 Kudos
Message 7 of 22
(4,965 Views)

Place a picture control on the front panel, select the paint tool, select "Transparent" which is a small "T" in the upper right corner then fill

the interior of the control. What I want to do is to do this when the vi is running, making the control go from from having content to being transparent.

 

You can create a color box and use the "Transparent" property node.

You can set the color box to transparent using the paint tool.

you can wire this to the draw rect's fill input. It WILL work

for any color but transparent. if you create a transparent control, it will

retain this property after the vi runs. You can then add content to the control, but

I can't set it back to transparent.

 

 

0 Kudos
Message 8 of 22
(4,965 Views)

Ben_01880 wrote:

...

. You can then add content to the control, but

I can't set it back to transparent.

 

 


Have you tried the "erase" proprty with a value that says erase once now?

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 9 of 22
(4,961 Views)

The erase first property will work as long as you start with a transparent control,

if it has a fill it won't . I would like to be able to apply transparently during runtime.

Here is what I got so far. 

0 Kudos
Message 10 of 22
(4,949 Views)