LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Operating button under transparent image

Solved!
Go to solution

Hi NI LabVIEW Community,

 

I am trying to have a 2D array of buttons/LEDs and overlay a trasparent image. If the image is in front, I cannot press any of the buttons. If the image is behind the buttons, I cannot see the image.

 

Has anyone tried this before? A possible work around is to see where the user clicked and relate that to a button.

 

Thank you,

Nick

CLD Certified 2014
0 Kudos
Message 1 of 4
(3,195 Views)

Hi Nick,

 

Yes, a transparent image over a control will still take the mouse click and thereby prevent the underlying buttons from being selected.

 

One option is to determine where the mouse button click took place and use that to simulate selection of the button.

Thoric (CLA, CLED, CTD and LabVIEW Champion)


0 Kudos
Message 2 of 4
(3,183 Views)

Hi Thoric,

 

I ended up just making the outline of the buttons black and the center transparent. The image will just be behind the buttons.. Not exactly what I was hoping for, yet an easy solution.

CLD Certified 2014
0 Kudos
Message 3 of 4
(3,180 Views)
Solution
Accepted by topic author ADrexelDragon

See Attachment for example of my solution.

CLD Certified 2014
0 Kudos
Message 4 of 4
(3,174 Views)