From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,775 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
(2,763 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
(2,760 Views)
Solution
Accepted by topic author ADrexelDragon

See Attachment for example of my solution.

CLD Certified 2014
0 Kudos
Message 4 of 4
(2,754 Views)