Why do graphics applications appear different when executing standalone as compared to their appearance inside MATLAB as MATLAB files?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
MathWorks Support Team
il 27 Giu 2009
Modificato: MathWorks Support Team
il 17 Feb 2021
Graphics applications appear different when executing standalone as compared to their appearance inside MATLAB as MATLAB files.
For example, the Figure Window Menu Bar is different.
Risposta accettata
MathWorks Support Team
il 26 Ott 2016
Stand-alone versions of graphics applications typically look and operate the same as their MATLAB file counterparts. However, because standalone applications run outside the MATLAB environment, there are some differences. These differences are mentioned below:
1. Changes to Figure Window Menu Bar Options
Stand-alone graphics applications use a special version of the Figure window menu bar that contains only the File menu option. The graphics library excludes the other standard menu bar items, such as Edit, Tools, and Help, from the menu bar because stand-alone graphics applications cannot support many of the options available through these menus.
Changes to the Figure Window File Menu Options
The graphics library excludes options from the File menu that are not supported by stand-alone applications, such as the Page Setup option.
The graphics library includes the Print option in the File menu of stand-alone graphics applications. However, the Print option in stand-alone applications does not display the Print dialog box, as it does for MATLAB file applications.
2. Accessing Help in Standalone Applications
Some MATLAB file applications include GUI components that provide access to MATLAB help. If you click on the Info button, you get an error message such as the following:
An error occurred in the callback : lorenz('info')
The error message caught was: ERROR: Function "helpwin" is not supported in standalone applications
3. Ctrl+C Handling
When you run a graphics application within MATLAB, you can press Ctrl+C to break infinite loops. For example, you can press Ctrl+C to stop an animation. When you run a C or C++ stand-alone application, Ctrl+C handling is not supported.
1 Commento
Walter Roberson
il 20 Apr 2016
Modificato: MathWorks Support Team
il 17 Feb 2021
James, are you deploying in R2015b ? If so then see https://www.mathworks.com/support/bugreports/1293244
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Objects in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!