I am trying to use add a menu item called "ADD TO WATCH" when I right click on a Table Cell.
I cannot figure out how to "pass' the CtrlMenuCallbackPtr eventFunction parameter!
Here is the fuction prototype:
int NewCtrlMenuItem (int panelHandle, int controlID, char itemLabel[], int beforeMenuItemID, CtrlMenuCallbackPtr eventFunction, void *eventCallbackData);
Here is my call:
NewCtrlMenuItem (run_table_panel, RUNDATA_TABLE, "Add To Watch", -1, ***?****,0);
Here is the callback fuction:
int CVICALLBACK Add_Run_To_Watch (int panelHandle, int controlID, int MenuItemID, void *callbackData);
{
switch (event)
{
case EVENT_COMMIT:
break;
}
return 0;
}