Code»View
Use the Code»View command to look at code for a given callback function.
View the code for a function from the .uir file by selecting a panel or control and selecting View»Panel Callback or View»Control Callback. The source file that contains the callback function appears with the function name highlighted. You also can view the function code in the following ways:
- Right-click a control name or panel name in the User Interface Browser and select View Panel Callback or View Control Callback
- Right-click a control on the .uir and select View Control Callback.
When you choose the View command for a callback function, LabWindows/CVI searches for that function in all open files and in all files in the project.
The View command is useful because the callback functions for one user interface can be in several different files, and scrolling the source code is not efficient. With the View command, you can move instantly from the user interface file to an object callback function, whether the source file is open or closed.
When you finish reviewing the code, you can return instantly to the .uir file from the source file. To return to the .uir file, place the cursor on the callback function name or constant name of the user interface object you want to go to and select View»Find UI Object in the Source window.
![]() |
Note You cannot use the View command for menu callback functions. |