Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5340

How to change the Callback function of a GUI button?

$
0
0

I would like to change the callback function associated with a GUI button dynamically in the programming way.

 

Here is the code piece I tried, but it does not seem to work:

 

const char* pstrLabelSaveJpeg = "SaveJpegCb";

SetCtrlAttribute(pahel_id, ctrl_id ,ATTR_LABEL_TEXT, pstrLabelSaveJpeg);

 

int CVICALLBACK SaveJpegCb(int panel, int control, int event, void *callbackData, int eventData1, int eventData2);


Viewing all articles
Browse latest Browse all 5340

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>