正在加载图片...
Creating Menus- The Menu edito 4-17 Defining Menus for the Menu Bar 4-17 Defining Context Menus 4-23 Setting the Tab Order- The Tab Order Editor 4-2 Programming GUis Understanding the guI M-File 52 Sharing Data with the Handles Structure 52 Functions and callbacks in the m-file Output function 5 Callbacks Input and Output Arguments Managing GUI Data with the Handles Structure 5-8 Example: Passing Data Between Callbacks 5-8 Application Data .. 511 Designing for Cross-Platform Compatibility Using the Default System Font 5-12 Using Standard Background Color Cross-Platform Compatible Figure Units ..5-14 Types of Callbacks 515 Callback Properties for All graphics Objects 5-15 Callback Properties for Figures 515 Which Callback executes Adding A Callback 516 Interrupting Executing Callbacks 5-17 Controlling Interruptibility 5-17 The Event queue Event Processing During Callback Execution ..5-18iv Contents Creating Menus — The Menu Editor . . . . . . . . . . . . . . . . . . . 4-17 Defining Menus for the Menu Bar . . . . . . . . . . . . . . . . . . . . . . 4-17 Menu Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-22 Defining Context Menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-23 Setting the Tab Order — The Tab Order Editor . . . . . . . . . 4-27 5 Programming GUIs Understanding the GUI M-File . . . . . . . . . . . . . . . . . . . . . . . . . 5-2 Sharing Data with the Handles Structure . . . . . . . . . . . . . . . . . 5-2 Functions and Callbacks in the M-File . . . . . . . . . . . . . . . . . . . . 5-3 Opening Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-4 Output Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5 Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 Input and Output Arguments . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-6 Managing GUI Data with the Handles Structure . . . . . . . . . 5-8 Example: Passing Data Between Callbacks . . . . . . . . . . . . . . . . 5-8 Application Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-11 Designing for Cross-Platform Compatibility . . . . . . . . . . . . 5-12 Using the Default System Font . . . . . . . . . . . . . . . . . . . . . . . . . 5-12 Using Standard Background Color . . . . . . . . . . . . . . . . . . . . . . 5-13 Cross-Platform Compatible Figure Units . . . . . . . . . . . . . . . . . 5-14 Types of Callbacks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-15 Callback Properties for All Graphics Objects . . . . . . . . . . . . . . 5-15 Callback Properties for Figures . . . . . . . . . . . . . . . . . . . . . . . . 5-15 Which Callback Executes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 Adding A Callback . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-16 Interrupting Executing Callbacks . . . . . . . . . . . . . . . . . . . . . 5-17 Controlling Interruptibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 The Event Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-17 Event Processing During Callback Execution . . . . . . . . . . . . . 5-18
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有