Difference between revisions of "Programming a GUI"

From biophysics
Jump to navigation Jump to search
Line 7: Line 7:
  
 
==Getting started==
 
==Getting started==
The opening page of the app designer shows a blank app, two templates and a series of examples. When opening the
+
The opening page of the app designer shows a blank app, two templates and a series of examples. When opening the a blank app you will enter the app in 'Design View'. You can switch to 'Code View' in order to review and edit the underlying code.
 +
 
 +
==Launching the GUI==
 +
When you save the GUI and save a file by the name 'myGUIname.mlapp' it will change the classname to 'myGUIname'.
 +
When you want to lauch the GUI you can now use:
 +
<pre>
 +
  myGUIname;
 +
</pre>

Revision as of 10:24, 18 September 2024

Introduction

In Matlab a Graphical User Interface (GUI) can be build with the GUI editor, which called 'Design App' and is located in the first position on the APPS tab. The old GUI building tool was the GUIDE environment, which was used frequently for experimental interfaces.

WARNING: The GUIDE environment will be removed in future releases of Matlab. Do not use this for new programs!

Getting started

The opening page of the app designer shows a blank app, two templates and a series of examples. When opening the a blank app you will enter the app in 'Design View'. You can switch to 'Code View' in order to review and edit the underlying code.

Launching the GUI

When you save the GUI and save a file by the name 'myGUIname.mlapp' it will change the classname to 'myGUIname'. When you want to lauch the GUI you can now use:

   myGUIname;