03-13-2007 08:45 AM
03-13-2007 08:52 AM - edited 03-13-2007 08:52 AM
Hello Subrata,
all this information you can find in the callback function parameters.
Example of a callback funtion:
int CVICALLBACK CallbackFunction (int panel, int control, int event,
void *callbackData, int eventData1, int eventData2) {
char message_str[250];
char control_str[100];
GetCtrlAttribute (panel, control, ATTR_CONSTANT_NAME, control_str);
switch (event) {
case EVENT_LEFT_CLICK:
Fmt (message_str, "Left Clicked the %s control", control_str);
MessagePopup ("Action", message_str);
break;
case EVENT_RIGHT_CLICK:
Fmt (message_str, "Right Clicked the %s control", control_str);
MessagePopup ("Action", message_str);
break;
}
return 0;
}
Try out the example in the attachment
Message Edited by Wim S on 03-13-2007 04:00 PM
03-13-2007 09:16 AM