MATLAB C/C++ Graphics Library | ![]() ![]() |
File Menu Does Not Appear in Application
If you create a stand-alone application and the File menu does not appear in the menu bar, it may indicate that the menu bar and toolbar figure files in your application's \bin
directory (/bin
on UNIX systems) are not correct. The first time you create a graphics application, the Compiler creates this directory and populates it with two figure files, FigureMenuBar.fig
and FigureToolBar.fig
. After that, whenever you create graphics applications, the Compiler checks for the existence of these files and, if they exist, it does not replace them. Your application's bin
directory may contain figure files from a previous release of the graphics library.
Workaround
Replace the menu bar and toolbar figure files in your application bin
directory with the versions of these figure files in the MATLAB installation directory (<MATLAB>\extern\include
on PCs or <MATLAB>/extern/include
on UNIX systems). When you restart your stand-alone graphics application, it will use the new figure files.
Another way to replace your existing figure files with new figure files is to delete your application bin
directory and run the Compiler. If this directory does not exist, the Compiler creates it and populates it with copies of the figure files stored in the MATLAB installation directory. There is no need to recompile your graphics M-file application, especially if this is a time-consuming task. Compiling a trivial M-file graphics application is enough to cause the creation of a new application bin
directory.
![]() | Fixing Callback Problems: Missing Functions | Depending on Graphics Settings in Start-Up Files | ![]() |