01-21-2013 10:04 AM
I developing CVI test software to production test keypads. I would like to take a picture of the actual keypad and superimpose command buttons for keys and a textbox for the keypad display. This will make an interactive display for the operator. Can this be done? When I move the buttons on top of the picture they are visible but do not operate. Any suggestions?
01-21-2013 10:33 AM
Are you sure the button are on top of the picture? Can you see them? If they were on top they should be operable.
To set the picture below the command buttons you must select it and press F7 key: with this the picture is moved to the background and the buttons should be operable -and visible.
The problem at this moment will be to "hide" the buttons so that they have no visual effect but they remain operable. You can achieve this by painting them with transparent colour (note: this will not be possible if you have set Use Windows Visual Style for Controls attribute in panel advanced attributes: try disabling this option to test the operation).
01-21-2013 10:51 AM
I tried moving the existing buttons on top of the image-no success. I had to create new ones on put them on the image. I am using a picture toggle button. I can set the image of a key. When the user presses the key I would like the image to turn green. Is there a way to overlay a green color over the image so you can tell the button has been pressed but still see the image? Or will I have to manually create another image of the key, photo shop it green, then load the new image when the key is pressed?
01-21-2013 04:14 PM
A possible solution could be to use a picture ring with two images, standard and green; on the control you need to handle EVENT_LEFT_CLICK event and:
I don't know a way to have semi-transparent images in CVI, that could give the colour effect while keeping the underlying image visible.