Specifications

iii
3
GUIDE Layout Tools
GUI Layout Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2
Laying Out GUIs – The Layout Editor . . . . . . . . . . . . . . . . . . . 3-4
Placing an Object In the Layout Area . . . . . . . . . . . . . . . . . . . . . 3-4
Activating the Figure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-5
Saving the Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Displaying Your GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Layout Editor Preferences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Layout Editor Context Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-7
Aligning Components in the Layout Editor . . . . . . . . . . . . . 3-10
Aligning Groups of Components – The Alignment Tool . . . . . 3-10
Grids and Rulers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-12
Aligning Components to Guide Lines . . . . . . . . . . . . . . . . . . . . 3-13
Front to Back Positioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-14
Setting Component Properties – The Property Inspector 3-16
Viewing the Object Hierarchy – The Object Browser . . . . 3-18
Creating Menus – The Menu Editor . . . . . . . . . . . . . . . . . . . . 3-19
Defining Menus for the Menubar . . . . . . . . . . . . . . . . . . . . . . . 3-19
Menu Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-24
Defining Context Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-25
Saving the GUI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
FIG-Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-29
4
Programming GUIs
GUI Programming Topics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2
Understanding the Application M-File . . . . . . . . . . . . . . . . . . 4-3