From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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
(2,651 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
(2,651 Views)