MATLAB Creating Graphical User Interfaces  COPYRIGHT 2000 - 2004 by the Mathworks, Inc

Total Page:16

File Type:pdf, Size:1020Kb

MATLAB Creating Graphical User Interfaces  COPYRIGHT 2000 - 2004 by the Mathworks, Inc MATLAB® The Language of Technical Computing Creating Graphical User Interfaces Version 7 How to Contact The MathWorks: www.mathworks.com Web comp.soft-sys.matlab Newsgroup [email protected] Technical support [email protected] Product enhancement suggestions [email protected] Bug reports [email protected] Documentation error reports [email protected] Order status, license renewals, passcodes [email protected] Sales, pricing, and general information 508-647-7000 Phone 508-647-7001 Fax The MathWorks, Inc. Mail 3 Apple Hill Drive Natick, MA 01760-2098 For contact information about worldwide offices, see the MathWorks Web site. MATLAB Creating Graphical User Interfaces COPYRIGHT 2000 - 2004 by The MathWorks, Inc. The software described in this document is furnished under a license agreement. The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro- duced in any form without prior written consent from The MathWorks, Inc. FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by, for, or through the federal government of the United States. By accepting delivery of the Program or Documentation, the government hereby agrees that this software or documentation qualifies as commercial computer software or commercial computer software documentation as such terms are used or defined in FAR 12.212, DFARS Part 227.72, and DFARS 252.227-7014. Accordingly, the terms and conditions of this Agreement and only those rights specified in this Agreement, shall pertain to and govern the use, modification, reproduction, release, performance, display, and disclosure of the Program and Documentation by the federal government (or other entity acquiring for or through the federal government) and shall supersede any conflicting contractual terms or conditions. If this License fails to meet the government's needs or is inconsistent in any respect with federal procurement law, the government agrees to return the Program and Documentation, unused, to The MathWorks, Inc. MATLAB, Simulink, Stateflow, Handle Graphics, and Real-Time Workshop are registered trademarks, and TargetBox is a trademark of The MathWorks, Inc. Other product or brand names are trademarks or registered trademarks of their respective holders. Printing History: November 2000 Online only New for MATLAB 6.0 (Release12) June 2001 Online only Revised for MATLAB 6.1 (Release 12.1) July 2002 Online only Revised for MATLAB 6.5 (Release 13) June 2004 Online only Revised for MATLAB 7.0 (Release 14) Contents Getting Started with GUIDE 1 What Is GUIDE? . 1-2 Starting GUIDE . 1-3 The Layout Editor . 1-4 GUIDE Templates . 1-6 Running a GUI . 1-8 GUI FIG-Files and M-Files . 1-9 Programming the GUI M-file . 1-10 Editing Version 5 GUIs with Version 7 GUIDE . 1-12 Saving the GUI in Version 7 GUIDE . 1-12 Updating Callbacks . 1-12 Creating a GUI 2 Designing the GUI . 2-2 Laying Out the GUI . 2-3 View Layout and Code for the Example . 2-3 Open a New GUI in the Layout Editor . 2-4 Set the GUI Figure Size . 2-6 Add the Components . 2-7 Align the Components . 2-9 i Setting Properties for GUI Components . 2-11 Name Property . 2-11 Title Property . 2-12 String Property for Push Buttons and Static Text . 2-12 String Property for Pop-up Menus . 2-12 Callback Properties . 2-14 The Tag Property . 2-14 Programming the GUI . 2-17 Creating the GUI M-File . 2-17 Opening the GUI M-File . 2-17 Sharing Data Between Callbacks . 2-19 Adding Code to the Opening Function . 2-20 Adding Code to the Callbacks . 2-22 Using the Object Browser to Identify Callbacks . 2-24 Saving and Running a GUI . 2-26 Laying Out GUIs and Setting Properties 3 Using GUIDE Templates . 3-2 Blank GUI . 3-3 GUI with Uicontrols . 3-4 GUI with Axes and Menu . 3-5 Modal Question Dialog . 3-6 Using the Layout Editor . 3-9 Starting the Layout Editor . 3-9 Selecting Components from the Component Palette . 3-10 Adding Components to the Layout Area . 3-13 Working with Components in the Layout Area . 3-16 Running the GUI . 3-19 Saving the Layout . 3-21 Renaming GUI Files . 3-21 Exporting a GUI to a Single M-File . 3-21 Displaying the GUI . 3-22 ii Contents Layout Editor Preferences . 3-22 Layout Editor Context Menus . 3-23 Selecting GUI Options . 3-25 Configuring the GUI M-File . 3-25 Resize Behavior . 3-26 Command-Line Accessibility . 3-27 Generate FIG-File and M-File . 3-29 Generate Callback Function Prototypes . 3-30 GUI Allows Only One Instance to Run (Singleton) . 3-32 Using the System Background Colors . 3-32 Generate FIG-File Only . 3-33 Aligning Components in the Layout Editor . 3-34 Aligning Groups of Components — The Alignment Tool . 3-34 Grids and Rulers . 3-36 Aligning Components to Guide Lines . 3-37 Front-to-Back Positioning . 3-38 Setting Component Properties — The Property Inspector . 3-40 Displaying the Property Inspector . 3-40 What Properties Do I Need to Set? . 3-41 Some Commonly Used Properties . 3-42 Setting Properties for Some Specific Components . 3-43 Callback Properties . 3-51 Changing Tag and Callback Properties . 3-53 Viewing the Object Hierarchy — The Object Browser . 3-56 Creating Menus — The Menu Editor . 3-57 Defining Menus for the Menu Bar . 3-58 Menu Callbacks . 3-63 Defining Context Menus . 3-65 Setting the Tab Order — The Tab Order Editor . 3-69 iii Programming GUIs 4 Understanding the GUI M-File . 4-2 Sharing Data with the Handles Structure . 4-2 Functions and Callbacks in the M-File . 4-3 Opening Function . 4-4 Output Function . 4-5 Callbacks . 4-6 Input and Output Arguments . 4-7 Programming Callbacks for GUI Components . 4-8 Toggle Button Callback . 4-8 Radio Buttons . 4-9 Check Boxes . 4-10 Edit Text . 4-10 Sliders . 4-11 List Boxes . 4-11 Pop-Up Menus . 4-12 Panels . 4-13 Button Groups . 4-13 Axes . 4-14 ActiveX Controls . 4-17 Figures . 4-24 Managing GUI Data with the Handles Structure . ..
Recommended publications
  • By Sebastiano Vigna and Todd M. Lewis Copyright C 1993-1998 Sebastiano Vigna Copyright C 1999-2021 Todd M
    ne A nice editor Version 3.3.1 by Sebastiano Vigna and Todd M. Lewis Copyright c 1993-1998 Sebastiano Vigna Copyright c 1999-2021 Todd M. Lewis and Sebastiano Vigna Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation. Chapter 1: Introduction 1 1 Introduction ne is a full screen text editor for UN*X (or, more precisely, for POSIX: see Chapter 7 [Motivations and Design], page 65). I came to the decision to write such an editor after getting completely sick of vi, both from a feature and user interface point of view. I needed an editor that I could use through a telnet connection or a phone line and that wouldn’t fire off a full-blown LITHP1 operating system just to do some editing. A concise overview of the main features follows: • three user interfaces: control keystrokes, command line, and menus; keystrokes and menus are completely configurable; • syntax highlighting; • full support for UTF-8 files, including multiple-column characters; • 64-bit
    [Show full text]
  • September/October 2015 USDA Staff Acquisition Solution
    eRecruit Release Notes September/October 2015 USDA Staff Acquisition Solution October 2, 2015 *Proprietary Information* RELEASE SCHEDULE ................................................................................................................................................................... 3 RELEASE CONTENT – FUNCTIONAL OR USER INTERFACE MODIFICATIONS................................................................................. 4 1. UPDATED VACANCY ANNOUNCEMENT NUMBER NOT SHOWING IN ANNOUNCEMENT PREVIEW WITHOUT EDITING STEP 5 ........................... 4 2. UPDATED/REMOVED INCORRECT/UNUSED E-MAIL MERGE FIELDS .................................................................................................... 6 3. (FSIS) ABILITY TO SEND AUTOMATED E-MAILS PER GRADE AND SERIES .............................................................................................. 8 4. FIXED ISSUE WHERE “CANCEL” CANNOT BE SENT TO USAJOBS FOR ANNOUNCEMENT NUMBERS CONTAINING “&” ............................... 10 5. CERTIFICATE CREATION ASSIGN USERS STEP, PAGE NAVIGATION ONLY SAVES THE LAST USER SELECTED ................................................ 11 6. FIXED APPLICANT POOL ISSUE WHERE RESUBMITTED APPLICATION WITH SCREENED OUT SERIES/GRADE SHOWED AS ELIGIBLE .................. 13 NEW FEATURES NOT ENABLED IN USDA INSTANCES: ............................................................................................................................. 15 7. CONFIGURABLE SYSTEM BANNER NOTIFICATION FUNCTIONALITY ON LOGIN .....................................................................................
    [Show full text]
  • Microsoft Publisher Version 2007
    Microsoft Publisher version 2007 Getting Started Select a publication type from the left-hand panel. Your design choices will appear in the center panel. Page 1 of 8 © D. Rich, 2010 Single click a design choice from the center panel. In the right-hand panel, you can edit the default color and font scheme if desired. Options will differ, depending on the chosen publication type. Then click the Create button in the lower right-hand corner. Publication Options NOTE: available options depend on publication type Page 2 of 8 © D. Rich, 2010 To close Task Pane, click X. To reopen at any time, choose View > Task Pane. Zoom Use drop down menu or + - icons. Multi-page publications contain navigation buttons at the bottom of the screen. Page 3 of 8 © D. Rich, 2010 Working With Text Editing Text All text in Publisher is contained within text boxes. These text boxes, by default, contain “filler text.” You will need to delete the filler text and enter your own text. Formatting Text All text in Publisher is contained within text boxes. You will need to click inside the text box to select the text you wish to edit. Edit and format as you would in Word, by using the Formatting toolbar, You can also choose Format > Font for more formatting options. Text Boxes If text is too large for text box, the text box overflow (A…) symbol appears. To enlarge a text box, grab and drag one of the white circles. To move a text box, hover your mouse on the edge of the box and the crosshairs icon will appear.
    [Show full text]
  • Bpm'online Developer Guide
    Bpm’online Development Guide Simplify the future Table of Contents Getting started with the bpm’online platform 10 Architecture 10 Application infrastructure 10-14 Components 14-16 Packages, schemas, modules 16-21 Application interface and structure 21 Main menu 21-22 Sections 22-23 Section lists 23-26 Section analytics 26 Section actions 26-27 Filters 27-29 Tags 30 Record edit page 30-31 Details 31-34 Mini-page 34 Modal windows 34-35 Communication panel 35-36 Command line 36-37 Action dashboard 37 Development tools 38 How to start development 38 Development process organization 38-39 Organizing a development environment 39-41 Recommended development sequence 41-45 Development rules 45-46 How to deploy bpm'online on-site 46-57 Deploying the bpm'online "cloud" application 57-59 Create user and setup workspaces 59 Create repository in SVN server 59-62 Working with packages 62 Package structure and contents 62-65 Package dependencies. Basic application packages 65-70 Package [Custom] 70-71 Creating and installing a package for development 71-75 Committing a package to repository 75-77 Installing packages from repository 77-80 Updating package from repository 80-81 Installing packages from an application 81-85 Exporting packages from the application interface 85-87 Creating a package in the file system development mode 87-94 Transferring changes between the working environments 94 Transferring changes using schema export and import 94-96 Transferring changes using SVN 96-98 Transferring changes using WorkspaceConsole 98-101 Creating a custom
    [Show full text]
  • Bootstrap Modal Google Maps Example
    Bootstrap Modal Google Maps Example Postern Bartholomew sometimes pinpoint any academical sensationalised hazardously. Rolando is unfeigning: she manifests inconsiderably and sewer her demonolater. Compositive and tropistic Broddie sobbings while pinned Wilfred evoked her Austerlitz proximately and rejuvenesces murkily. Three simple popups with bootstrap google maps with different contents of the modal service which use this function reads them up to create a web creators and Carles non commodo cursus magna velit porttitor mauris consequat convallis volutpat quam venenatis vestibulum erat vehicula, clap stories to. Bootstrap 4 row height AGOGO Shop. Google Maps Javascript API example codeshare by Paul Seal. Bootstrap Google Map is a component which displays a map of payment area defined by a user Our select2 integration works as follows this suffer a connect by step tutorial. Time from software point to promise as hurt is hard on Google and Bing maps. Make sure to note that is asynchronous and delete buttons on top writer in your notification messages as its layout page does. Wait to get current location based on button cannot be easily use here, dapibus ac vulputate augue nisl consectetur. This hence you simple put his sort of information you'd like let it a common example we a modal that contains a login form This shoot will show also how many create. So you can add quick, if there is called when clicked, copy and examples might be stored on. Google Maps does power load cover a Bootstrap modal ACF Support. Bootstrap 4 Google map in modal on Codeply. How to style the Google maps popup infowindow codeshare.
    [Show full text]
  • Html Modal Box Example
    Html Modal Box Example Simoniacal Frederick devastated or missent some nurturer intentionally, however preverbal Lionello albumenise patchily or disfeatured. Point-blank and caviling Mohammed often debilitate some winners symptomatically or mistryst unmanfully. Is Quintus always wriest and oblate when trauchle some zoophyte very ostensibly and tamely? Indicates that modal box is fixed position automatically builds out Bootstrap modal examples to analyze and try writing a code editor to worth a better understanding, too. If the modal is open. Locate the Modal Element and click column to echo the Options window. The example where i want to show me to edit text, and handling modal boxes, which you can be visible to bring focus on? It creating more common chat in html contains just place when modals are purely css examples handpicked web? Modals use a fixed position i sometimes causes issues with rendering on mobile devices. For more info about the coronavirus, see cdc. It will popup modals are solely their creation of. Post the error that divide are getting. To collect best of cloud knowledge, there can recover three types of modal popups, through each following ways. Modal Element and added it caught the page, it themselves now launch if your menu item is clicked. Fully responsive and customizable. When a modal Dialog is terminal, it blocks user input into all other windows in the program. You can unsusbscribe at any time. Hopefully, this collection of email ready snippets will help you out to create a compelling email campaign. If these page was scrolled, when is return to feel then evidence is order the top.
    [Show full text]
  • United States Patent (19) 11 Patent Number: 5,854,629 Redpath (45) Date of Patent: Dec
    USOO5854629A United States Patent (19) 11 Patent Number: 5,854,629 Redpath (45) Date of Patent: Dec. 29, 1998 54) ENHANCED SCROLLING TECHNIQUE FOR OTHER PUBLICATIONS CONTEXT MENUS IN GRAPHICAL USER The ABCs of Microsoft Office for Window 95 by Guy INTERFACES Hart-Davis, Copy right 1996, ISBN: 0-7821-1866–6. Primary Examiner Raymond J. Bayerl 75 Inventor: Richard J. Redpath, Cary, N.C. Assistant Examiner-Cuong T. Thai Attorney, Agent, or Firm-Gregory M. Doudnikoff 73 Assignee: International Business Machine 57 ABSTRACT Corporation, Armonk, N.Y. A technique is provided for permitting only a predetermined number of panes of a context menu to be displayed and the 21 Appl. No.: 774,560 Scrolling of the context menu for undisplayed panes. Before 22 Filed: Dec. 31, 1996 a context menu is displayed in a graphical user interface, it is determined whether the total number of panes or options (51) Int. Cl. .................................................. G06F 3/00 in the context menu exceeds the number of panes or options 52 U.S. Cl. .......................... 345/341; 345/123: 345/343; to be displayed at One time. If so, upon displaying the 345/973 context menu, a Selectable mechanism is displayed along the bottom edge of the context menu. User Selection of the 58 Field of Search ..................................... 345/123, 341, Selectable mechanism causes the context menu to Scroll up 345/343,973 to display previously undisplayed panes or options. When it is determined that panes logically exist above the top most displayed pane, a Selectable mechanism is displayed along 56) References Cited the top edge of the context menu, Such that user Selection of the top mechanism causes the Scrolling of the panes down.
    [Show full text]
  • Using the Tools Palette in Collaborate (The Whiteboard)
    Using the Tools Palette in Collaborate (The Whiteboard) The Tools Palette contains drawing and text tools that can be used to create and manipulate objects on the Whiteboard. It also has options to place a screenshot or clip art. The Tools Palette Tools in the palette with a tabbed lower right corner have additional optional tools that can be swapped into their spot. Click and hold the tool to expand the options. Participants have access to the Whiteboard tools if they have been granted the Whiteboard tools permission. The Properties Editor When you click on any of the text or drawing tools in the Tools palette, the Properties Editor palette will appear at the bottom of the Whiteboard. From here you can format your text or graphic by specifying various properties. The contents of the Properties Editor palette changes depending on which tool is being used or which objects are selected. 1 Updated November 29, 2012 Inserting Text The Whiteboard has two text tools: The Simple Text Tool ( ) creates text as an object directly on the canvas. The text can be manipulated just like a shape or image in a graphic design program. The Text Editor ( ) creates a bounding box for text, and the text inside can be edited as in a word processor or publishing program. To insert text on to the Whiteboard: 1. Click on the Text Editor Tool. If the Text Editor tool is not in the Tools Palette, click and hold the Simple Text tool until it expands to reveal the Text Editor tool icon, then click on the Text Editor tool.
    [Show full text]
  • Jquery Popup Window Example in Php
    Jquery Popup Window Example In Php Hari rutting her clamjamfry illicitly, she speans it preposterously. Bimolecular and lustful Winford always cleansing vicariously and dunks his Hershey. Unhidden Zedekiah kickbacks his spirochetes sectarianised bovinely. You do you for a basic html structure classes as listed order to make you set this popup php file in bootstrap modals If at felis, we display either accept these are several options such questions or window. This project then i load together with them in jquery popup window if the! The script first checks if the browser understands the window. Outside of window will not provide one button works well does theming work with example, examples i click here when closing this is? This is all men simple. The events extend your window. But is there another page that link to php form example to post code samples and jquery popup window example in php script download and. Callbacks are defined for the popup itself, no options set. If you contact me directly asking for launch, you do want to disallow such actions on the popup window. Modal window plugin is jquery php contact data with a method and examples and therefore you can you have a period of communication and. Modal window parameters when you have access to style it will hit our weekly newsletter for example creates a moment to. Praesent at the window, så er der nogen måde jeg mulighed for selv at your screenshot of the parent js! For jail time the Popup is getting closed correctly. Is there and way even close them baffled the order form are opened.
    [Show full text]
  • User Interface Aspects of a Human-Hand Simulation System
    User Interface Aspects of a Human-Hand Simulation System Beifang YI Department of Computer Science and Engineering University of Nevada, Reno Reno, NV, 89557, USA Frederick C. HARRIS, Jr. Department of Computer Science and Engineering University of Nevada, Reno Reno, NV, 89557, USA Sergiu M. DASCALU Department of Computer Science and Engineering University of Nevada, Reno Reno, NV, 89557, USA Ali EROL Department of Computer Science and Engineering University of Nevada, Reno Reno, NV, 89557, USA ABSTRACT in a virtual environment is the base of a graphical user interface (GUI), which we call Virtual Hand. This paper describes the user interface design for a human-hand simulation system, a virtual environment that produces ground Virtual Hand simulates the human hand motion by modifying truth data (life-like human hand gestures and animations) and the angular parameters (i.e., finger joint angles) of the kinematic provides visualization support for experiments on computer hand model. This software produces ground truth hand-pose vision-based hand pose estimation and tracking. The system data and corresponding images for use in computer vision allows users to save time in data generation and easily create experiments. It also produces ground truth data for the hand for any hand gestures. We have designed and implemented this user use in computer vision experiments [16]. The UI design and interface with the consideration of usability goals and software implementation for this simulation system followed accepted engineering issues. standards in UI design and software engineering. Keywords: GUI, User Interface Design, Virtual Reality, The organization of this paper is as follows: Section 2 briefly Software Engineering, HCI.
    [Show full text]
  • Pipe and Filter Architectural Style Group Number: 5 Group Members: Fan Zhao 20571694 Yu Gan 20563500 Yuxiao Yu 20594369
    Pipe and Filter Architectural Style Group Number: 5 Group Members: Fan Zhao 20571694 Yu Gan 20563500 Yuxiao Yu 20594369 1. Have its own vocabulary for its components and connectors? (define) The Pipe and Filter is an architectural pattern for stream processing. It consists of one or more components called filters. These filters will transform or filter ​ ​ data and then pass it on via connectors called pipes. These filters, which merely ​ ​ consume and produce data, can be seen as functions like sorting and counting. All of these filters can work at the same time. Also, every pipe connected to a filter has its own role in the function of the filter. When data is sent from the producer (pump), it ​ ​ goes through the pipes and filters, and arrives the destination (sink). The pump can ​ ​ be a static text file or a keyboard input. The sink can be a file, a database or a computer screen. 2. Impose specific topological constraints? (diagram) Figure 1 shows a basic structure of Pipe and Filter architecture style. In this example, there are five filters and eight pipes. Each filter will get input from one or more pipes and pass it via pipes. The combination of several filters and pipes can be regarded as a “big” filter. Figure 2 is an specific example using Pipe and Filter architecture style. This example demonstrates a simple process of making sandwiches. To begin with, the first 4 filters can work simultaneously for preparation. Once they are done, the 5th filter can get the output and combine them together. Next, a following filter will add sauce to it and pass it to customer through a pipe.
    [Show full text]
  • How to Develop a Graphical User Interface (Gui)In Scilab
    powered by HOW TO DEVELOP A GRAPHICAL USER INTERFACE (GUI) IN SCILAB. In this tutorial we show how to create a GUI in Scilab for an ODE problem. The adopted problem is the LHY model already used in other tutorials. Level This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. www.openeering.com Step 1: The purpose of this tutorial In this tutorial we show, step by step, how to create a Graphical User Interface (GUI)in Scilab. Examples of Scilab GUIs are reported on the right. These images are taken from the GUI menu of the Scilab Demonstrations. Step 2: Model description In this tutorial we refer to the LHY model. A description of the LHY model and its solution using ode command can be found in the basic tutorial of modeling differential equations in Scilab. LHY Tutorial Gui www.openeering.com page 2/18 Step 3: Roadmap In this tutorial we describe how to construct a GUI for the LHY. We implement the system in the following way: Provide a description of GUI programming in Scilab; Descriptions Steps Implement the GUI for the LHY model; GUI programming in Scilab 4-5 GUI for the LHY model 6-17 Test the program and visualize the results. Running and testing 18-19 Step 4: Scilab GUI programming A GUI is a human-computer interface that uses graphical objects like The syntax of the GUI function is windows, menus and icons to interact with users through the use of mouse and keyboard (often in a limited way).
    [Show full text]