User`s guide

15 Examples of GUIs Created Programmatically
Program List Master
The List Master GUI code file contains 22 functions, organized into five
groups.
“List Master Main Program” on page 15-42
“List M aster Setup Functions” on page 15-44
“List Master Menu Callbacks” on page 15-45
“List Master Lis t Callbacks” on page 15-47
“List M aster Utility Functions” on page 15-48
List Master Main Program
The main function, listmaster, opens a figure in portrait format near the
center of the screen. It then calls subfunction
lm_make_file_menu to create
a File menu. The following table describes the menu items and lists their
callbacks. Click any function name in the Callback column to view it in the
MATLAB Editor. Click any callback to view it in the MATLAB Editor. These
links, as well as previous and subsequent links to List Master functions and
callbacks, display the original code fromthe Creating Graphical Interfaces
examples folder, even if you have already copied it to your working folder.
Menu
Item
How Used Callback
Open..
.
Opens a
n existing List Master figure
lmopen
New...
Create
s a List Master by adding
contr
ols to the initial GUI or to a
new fi
gure if the existing one already
conta
ins a list
lmnew
Import
list...
Load
s list data from a workspace cell
arra
y
lmws
import
Export
list...
Gen
erates a workspace cell array or
tex
t file containing the current list
lmw
sexport
,
lmf
ileexport
Sav
e
Sav
es current List Master and its
co
ntents as a FIG-file
lm
save
15-42