LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a shortcut to locate menu callback code

From the .uir window I often want to view source code associated with a menu item. Is there an easy way to do this. With controls it is just a matter of right click and view callback. Panel code is accessed via "Code, View". The reverse pathway is there - If menu function is right clicked in source, I can use "Find UI Object" to locate the Menu item(s) (as for Controls,Panels). The fastest route I know of (when I don't remember the menu callback name) is to find it in the .h file and then copy/paste the name into search box to locate it in .c file.
0 Kudos
Message 1 of 5
(3,429 Views)
Actually, this is a great suggestion. I looked into this a little, and I haven't found anything that allows you to do this in the features. Like you have mentioned, you are able to look at the panel and controls callback easily by going to CODE >> VIEW >> PANEL/CONTROL CALLBACKS. I was hoping to find an option for that under the edit window for menus, but that isn't included. Do you agree that this is the best place to put this functionality? I will file this to R&D, and see if it is possible to put this functionality in. Thank you for the input on CVI.

Daniel McChane
Application Engineer
National Instruments
0 Kudos
Message 2 of 5
(3,429 Views)
How about right clicking on the menu bar displayed on the UIR?
It is a good idea, I would have found it useful quite often .


"DanielMcchane" wrote in message
news:5065000000050000006C8A0000-1023576873000@exchange.ni.com...
> Actually, this is a great suggestion. I looked into this a little,
> and I haven't found anything that allows you to do this in the
> features. Like you have mentioned, you are able to look at the panel
> and controls callback easily by going to CODE >> VIEW >> PANEL/CONTROL
> CALLBACKS. I was hoping to find an option for that under the edit
> window for menus, but that isn't included. Do you agree that this is
> the best place to put this functionality? I will file this to R&D,
> and see if it is possible to put this fu
nctionality in. Thank you for
> the input on CVI.
>
> Daniel McChane
> Application Engineer
> National Instruments
0 Kudos
Message 3 of 5
(3,429 Views)
Right clicking on an individual menu item on UIR should allow access both to the associated callback code and ideally also to the menu editor
ie. Similar to right click on control I would like
Generate Menu Callback
View Menu Callback
Edit Menu Item
Probably no advantage in also having CODE>>VIEW>>MENU CALLBACK as you would need to select a particular menu item to apply it to.
Ewen Fraser
ArchEng Designs Ltd
0 Kudos
Message 4 of 5
(3,429 Views)
Right clicking on an individual menu item on UIR should allow access both to the associated callback code and ideally also to the menu editor
ie. Similar to right click on control I would like
Generate Menu Callback
View Menu Callback
Edit Menu Item
Probably no advantage in also having CODE>>VIEW>>MENU CALLBACK as you would need to select a particular menu item to apply it to.
Ewen Fraser
ArchEng Designs Ltd
0 Kudos
Message 5 of 5
(3,429 Views)