LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

command button

I have  a few commad buttons which call the same callback function.How can I understand which command button is clicked.
Can anybody help me?
I was trying to use
GetCtrlAttribute (panel, control, ATTR_CTRL_VAL ,&(a->nestnumber));
I am always getting 0 as output.
 
 
0 Kudos
Message 1 of 2
(2,942 Views)

In the Callback function definition within your generated code:    int Func_Callback(int panel, int control, int event.........)

parameter#2 corresponds to the control defintion in the header file.

0 Kudos
Message 2 of 2
(2,939 Views)