LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

It's possible to call a menu callback ? (HOW)

Thanks.
0 Kudos
Message 1 of 2
(3,118 Views)
Yes. If you have the following menu callback prototype:

void CVICALLBACK ConfigTestCallback (int menubar, int menuItem, void *callbackData, int panel)

then you can call it directly as follows:

ConfigTestCallback (menubarHandle, ITEM_NAME, 0, panelHandle);

Provided you have the menu bar returned by GetMenuBar() and the panel handle returned by LoadPanel as well as the ITEM_NAME, the name you gave to the menu item in the UIR editor.
0 Kudos
Message 2 of 2
(3,118 Views)