LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help changing the picture of a command button during a run

Hey,

I'm trying to make a command button change its image during EVENT_LEFT_CLICK

and change back to original at EVENT_LEFT_CLICK_UP

is there a way of doing so?

0 Kudos
Message 1 of 2
(2,404 Views)

You can use

a) SetCtrlAttribute with the ATTR_IMAGE_FILE attribute or SetCtrlBitmap

b) a picture toggle button and call SetCtrlVal on EVENT_LEFT_CLICK_UP to make it spring back.

 

See Programming with Picture Button Controls.

-----------------------
/* Nothing past this point should fail if the code is working as intended */
Message 2 of 2
(2,348 Views)