Motif Programming Manual 1 Preface

Total Page:16

File Type:pdf, Size:1020Kb

Motif Programming Manual 1 Preface Motif Programming Manual 1 Preface...........................................................................................................................................................................1 1.1 The Plot..........................................................................................................................................................1 1.2 Assumptions...................................................................................................................................................2 1.3 How This Book Is Organized........................................................................................................................3 1.4 Related Documents........................................................................................................................................5 1.5 Conventions Used in This Book....................................................................................................................6 1.6 Obtaining Motif.............................................................................................................................................6 1.7 Obtaining the Example Programs..................................................................................................................7 1.7.1 FTP.................................................................................................................................................7 1.7.2 FTPMAIL......................................................................................................................................7 1.7.3 BITFTP..........................................................................................................................................8 1.7.4 UUCP.............................................................................................................................................9 1.7.5 Copyright.......................................................................................................................................9 1.7.6 Compiling the Example Programs.................................................................................................9 1.8 Notes on Z−Mail............................................................................................................................................9 1.9 Acknowledgments........................................................................................................................................10 1.10 We'd Like to Hear From You.....................................................................................................................12 2 Introduction to Motif.................................................................................................................................................13 2.1 A True Story................................................................................................................................................13 2.2 Basic User−interface Concepts....................................................................................................................15 2.3 What Is Motif?.............................................................................................................................................16 2.4 Designing User Interfaces............................................................................................................................18 3 The Motif Programming Model................................................................................................................................21 3.1 Basic X Toolkit Terminology and Concepts...............................................................................................21 3.2 The Xm and Xt Libraries.............................................................................................................................23 3.3 Programming With Xt and Motif.................................................................................................................24 3.3.1 Header Files.................................................................................................................................26 3.3.2 Setting the Language Procedure..................................................................................................27 3.3.3 Initializing the Toolkit.................................................................................................................28 3.3.4 Creating Widgets.........................................................................................................................30 3.3.5 Setting and Getting Widget Resources........................................................................................32 3.3.6 Event Handling for Widgets........................................................................................................37 3.3.7 The Event Loop............................................................................................................................42 3.4 Summary......................................................................................................................................................42 4 Overview of the Motif Toolkit...................................................................................................................................43 4.1 The Motif Style............................................................................................................................................43 4.2 Application Controls....................................................................................................................................45 4.2.1 The Primitive Widget Class.........................................................................................................46 4.2.2 Gadgets........................................................................................................................................51 4.3 Application Layout......................................................................................................................................52 4.3.1 The Manager Widget Class..........................................................................................................54 4.3.2 Geometry Management................................................................................................................56 4.3.3 Gadget Management....................................................................................................................57 4.3.4 Keyboard Traversal......................................................................................................................58 4.4 Putting Together a Complete Application...................................................................................................59 4.4.1 The Main Window.......................................................................................................................59 4.4.2 Menus...........................................................................................................................................61 i Motif Programming Manual 4 Overview of the Motif Toolkit 4.4.3 The Window Manager.................................................................................................................62 4.4.4 Dialogs.........................................................................................................................................66 4.4.5 Pixmaps........................................................................................................................................71 4.4.6 Color............................................................................................................................................73 4.5 Changes in Motif 1.2....................................................................................................................................75 4.5.1 General Toolkit Changes.............................................................................................................76 4.5.2 Specific Widget Changes.............................................................................................................78 4.5.3 Changes to the Example Programs..............................................................................................80 4.6 Summary......................................................................................................................................................80 5 The Main Window.....................................................................................................................................................81 5.1 Creating a MainWindow..............................................................................................................................82 5.2 The MenuBar...............................................................................................................................................87 5.2.1 Creating a PulldownMenu...........................................................................................................88 5.2.2 SimpleMenu Callback Routines..................................................................................................90 5.2.3 A Sample Application..................................................................................................................92 5.3 The Command and Message Areas............................................................................................................100
Recommended publications
  • IBM Tivoli Decision Support for Z/OS: Guide to Reporting Figures
    IBM Tivoli Decision Support for z/OS Version 1.8.2 Guide to Reporting IBM SH19-6842-12 IBM Tivoli Decision Support for z/OS Version 1.8.2 Guide to Reporting IBM SH19-6842-12 Note Before using this information and the product it supports, read the information in “Notices” on page 113. Thirteenth Edition (May 2019) This edition applies to version 1, release 8, modification level 2 of IBM Tivoli Decision Support for z/OS (program number 5698-B06) and to all subsequent releases and modifications until otherwise indicated in new editions. This edition replaces SH19-6842-11. © Copyright 21st Century Software Inc. and IBM Corp. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. 1994, 2019 Contents Figures ............... v Opening a report definition ......... 33 Opening a report definition when QMF is used 33 Preface .............. vii Opening a report definition when the built-in report generator is used ......... 35 Who should read this book ......... vii Opening the definition of saved report data ... 37 What this book contains .......... vii Publications .............. viii Accessing publications online ....... viii Chapter 4. Working with report groups 39 Using LookAt to look up message explanations viii Listing report groups ........... 39 Accessibility .............. ix Displaying the contents of a report group .... 40 Tivoli technical training .......... ix Viewing and modifying a report group definition . 40 Support information ........... ix Changing the report group definition..... 41 Conventions used in this book ........ x Adding a report to the group ....... 42 Typeface conventions .......... x Deleting a report from the group ...... 42 Creating a report group .........
    [Show full text]
  • A Political History of X Or How I Stopped Worrying and Learned to Love the GPL
    A Political History of X or How I Stopped Worrying and Learned to Love the GPL Keith Packard SiFive [email protected] Unix in !"# ● $SD Everywhere – $'t not actually BS% ● )*+* want, to make Sy,tem V real – S'rely they still matter ● .o Free So/tware Anywhere The 0rigins of 1 ● $rian Reid and Pa'l Asente at Stan/ord – - kernel → VGTS → W window system – Ported to VS100 at Stan/ord ● $o4 Scheifler started hacking W→ X – Working on Argus with Barbara Liskov at LCS – 7ade it more Unix friendly (async9, renamed X -AXstation 00 (aka v, 339 Unix Workstation Market ● Unix wa, closed source ● Most vendors ,hipped a proprietary 0S 4ased on $SD #.x ● S'n: HP: Digita(: )po((o: *ektronix: I$7 ● ;congratu(ation,: yo'<re not running &'nice=. – Stil(: so many gratuito', di/ference, -AXstation II S'n >?@3 Early Unix Window Systems ● S'n-iew dominated (act'al commercial app,A De,ktop widget,A9 ● %igital had -WS/UIS (V7S on(y9 ● )pollo had %omain ● *ektronix demon,trating Sma((*alk 1 B1@ ● .onB/ree so/tware ● U,ed internally at MIT ● Shared with friend, in/ormally 1 3 ● )(mo,t u,able ● %elivered by Digital on V)1,tation, ● %i,trib'tion was not all free ,o/tware – Sun port relied on Sun-iew kernel API – %igital provided binary rendering code – IB7 PC?2T support act'ally complete (C9 Why 1 C ● 1 0 had wart, – rendering model was pretty terrible ● ,adly, X1 wa,n't m'ch better... – External window management witho't borders ● Get everyone involved – Well, at lea,t every workstation vendor willing to write big checks X as Corporate *ool ● Dim Gettys and Smokey
    [Show full text]
  • Visualage for Smalltalk Handbook Volume 2: Features
    SG24-2219-00 VisualAge for Smalltalk Handbook Volume 2: Features September 1997 SG24-2219-00 International Technical Support Organization VisualAge for Smalltalk Handbook Volume 2: Features September 1997 IBM Take Note! Before using this information and the product it supports, be sure to read the general information in Appendix A, “Special Notices.” First Edition (September 1997) This edition applies to VisualAge for Smalltalk, Versions 2, 3, and 4, for use with OS/2, AIX, and Microsoft Windows 95/NT. Comments may be addressed to: IBM Corporation, International Technical Support Organization Dept. QXXE Building 80-E2 650 Harry Road San Jose, California 95120-6099 When you send information to IBM, you grant IBM a non-exclusive right to use or distribute the information in any way it believes appropriate without incurring any obligation to you. Copyright International Business Machines Corporation 1997. All rights reserved. Note to U.S. Government Users — Documentation related to restricted rights — Use, duplication or disclosure is subject to restrictions set forth in GSA ADP Schedule Contract with IBM Corp. Contents Preface . xiii How This Redbook Is Organized ....................... xiv ITSO on the Internet ................................ xv VisualAge Support on CompuServe ..................... xvii About the Authors ................................ xvii Acknowledgments . xviii Comments Welcome . xix Chapter 1. AS/400 Connection . 1 Multiple Programs with a Single Remote Procedure Call ......... 1 RPC Part Sets Commit Boundary ........................ 1 Connection Problem with V3R1 ......................... 2 AS/400 Communication Error .......................... 2 Strange Characters on Log-on Window .................... 3 Quick Form from AS/400 Record Classes ................... 3 Communication . 4 Read Next/Previous . 4 SQL Statements . 5 Data Queues and Records ............................ 6 ODBC Requirements .
    [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]
  • In Silico Docking Analysis of CCL28 (CC Motif Chemokine Ligand
    F1000Research 2019, 8:313 Last updated: 21 SEP 2021 RESEARCH ARTICLE In silico docking analysis of CCL28 (C-C motif chemokine ligand 28) and astragalin as the potential inhibitor of rheumatoid arthritis [version 1; peer review: 1 approved, 1 approved with reservations] Sadaf Noor, Syeda Tahira Qousain, Syed Aun Muhammad Institute of Molecular Biology and Biotechnology, Bahauddin Zakariya University, Multan, Punjab, 60800, Pakistan v1 First published: 20 Mar 2019, 8:313 Open Peer Review https://doi.org/10.12688/f1000research.18541.1 Latest published: 20 Mar 2019, 8:313 https://doi.org/10.12688/f1000research.18541.1 Reviewer Status Invited Reviewers Abstract Background: Rheumatoid arthritis is an inflammatory and chronic 1 2 disease of the joints affecting 1% of the world’s population. Women are three times more likely to be affected than men. Many drugs are version 1 being used for the treatment of rheumatoid arthritis but they often 20 Mar 2019 report report have severe side effects. C-C motif chemokine ligand 28 (CCL28) recruits leukocytes and other proinflammatory factors to the site of 1. Ihsan Ul Haq, Quaid-i-Azam University, joint inflammation. The purpose of the present research is the computational evaluation of astragalin, a natural flavonoid extracted Islamabad, Pakistan from black tea, as an inhibitor of CCL28 by in silico docking. 2. Sagarika Biswas, Institute of Genomics and Methods: The three-dimensional structure of CCL28 to act as a molecular target was obtained from the Protein Data Bank (PDB ID: Integrative Biology, New Delhi, India 6CWS). The quality of the CCL28 structure was assessed using Phyre2 and Molecular Operating Environment (MOE) software was used for Any reports and responses or comments on the binding affinity analysis.
    [Show full text]
  • Solaris 2.5 Software Developer Kit Introduction
    Solaris 2.5 Software Developer Kit Introduction 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. A Sun Microsystems, Inc. Business 1995 Sun Microsystems, Inc. 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Portions of this product may be derived from the UNIX® system, licensed from UNIX Systems Laboratories, Inc., a wholly owned subsidiary of Novell, Inc., and from the Berkeley 4.3 BSD system, licensed from the University of California. Third-party software, including font technology in this product, is protected by copyright and licensed from Sun’s Suppliers. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the government is subject to restrictions as set forth in subparagraph (c)(1)(ii) of the Rights in Technical Data and Computer Software clause at DFARS 252.227-7013 and FAR 52.227-19. The product described in this manual may be protected by one or more U.S. patents, foreign patents, or pending applications. TRADEMARKS Sun, Sun Microsystems, the Sun logo, SunSoft, the SunSoft logo, Solaris, SunOS, OpenWindows, DeskSet, ONC, ONC+, NFS, SunExpress, ProCompiler, XView, ToolTalk, XGL, XIL, Solaris VISUAL, Solaris PEX, and AnswerBook are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries. CatalystSM is a service mark of Sun Microsystems, Inc.
    [Show full text]
  • Porting a Window Manager from Xlib to XCB
    Porting a Window Manager from Xlib to XCB Arnaud Fontaine (08090091) 16 May 2008 Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version pub- lished by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License". Contents List of figures i List of listings ii Introduction 1 1 Backgrounds and Motivations 2 2 X Window System (X11) 6 2.1 Introduction . .6 2.2 History . .6 2.3 X Window Protocol . .7 2.3.1 Introduction . .7 2.3.2 Protocol overview . .8 2.3.3 Identifiers of resources . 10 2.3.4 Atoms . 10 2.3.5 Windows . 12 2.3.6 Pixmaps . 14 2.3.7 Events . 14 2.3.8 Keyboard and pointer . 15 2.3.9 Extensions . 17 2.4 X protocol client libraries . 18 2.4.1 Xlib . 18 2.4.1.1 Introduction . 18 2.4.1.2 Data types and functions . 18 2.4.1.3 Pros . 19 2.4.1.4 Cons . 19 2.4.1.5 Example . 20 2.4.2 XCB . 20 2.4.2.1 Introduction . 20 2.4.2.2 Data types and functions . 21 2.4.2.3 xcb-util library . 22 2.4.2.4 Pros . 22 2.4.2.5 Cons . 23 2.4.2.6 Example . 23 2.4.3 Xlib/XCB round-trip performance comparison .
    [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]
  • Introduction to the Enlightenment Foundation Libraries
    Introduction to the Enlightenment foundation libraries. An overview of EFL Kostis Kapelonis Introduction to the Enlightenment foundation libraries.: An overview of EFL Kostis Kapelonis Abstract The target audience of this document are UNIX programmers who are interested in the Enlightenment Foundation Libraries (EFL). You must already know C programming. You will not however learn how to program using the EFL. Instead, you will learn why you should program with the EFL. If you ever wanted to evaluate the EFL but did not see any advantages over previous graphic libraries then this document is for you! Table of Contents 1. Introduction ............................................................................................................................1 A little History ...................................................................................................................1 Related documentation ......................................................................................................... 2 Obtaining the EFL libraries ................................................................................................... 2 2. The EFL structure .................................................................................................................... 4 Organization of the Libraries ................................................................................................. 4 Brief description of each EFL library ...................................................................................... 5 3.
    [Show full text]
  • An Introduction to the X Window System Introduction to X's Anatomy
    An Introduction to the X Window System Robert Lupton This is a limited and partisan introduction to ‘The X Window System’, which is widely but improperly known as X-windows, specifically to version 11 (‘X11’). The intention of the X-project has been to provide ‘tools not rules’, which allows their basic system to appear in a very large number of confusing guises. This document assumes that you are using the configuration that I set up at Peyton Hall † There are helpful manual entries under X and Xserver, as well as for individual utilities such as xterm. You may need to add /usr/princeton/X11/man to your MANPATH to read the X manpages. This is the first draft of this document, so I’d be very grateful for any comments or criticisms. Introduction to X’s Anatomy X consists of three parts: The server The part that knows about the hardware and how to draw lines and write characters. The Clients Such things as terminal emulators, dvi previewers, and clocks and The Window Manager A programme which handles negotiations between the different clients as they fight for screen space, colours, and sunlight. Another fundamental X-concept is that of resources, which is how X describes any- thing that a client might want to specify; common examples would be fonts, colours (both foreground and background), and position on the screen. Keys X can, and usually does, use a number of special keys. You are familiar with the way that <shift>a and <ctrl>a are different from a; in X this sensitivity extends to things like mouse buttons that you might not normally think of as case-sensitive.
    [Show full text]
  • PC Literacy II
    Computer classes at The Library East Brunswick Public Library PC Literacy II Common Window Elements Most windows have common features, so once you become familiar with one program, you can use that knowledge in another program. Double-click the Internet Explorer icon on the desktop to start the program. Locate the following items on the computer screen. • Title bar: The top bar of a window displaying the title of the program and the document. • Menu bar: The bar containing names of menus, located below the title bar. You can use the menus on the menu bar to access many of the tools available in a program by clicking on a word in the menu bar. • Minimize button: The left button in the upper-right corner of a window used to minimize a program window. A minimized program remains open, but is visible only as a button on the taskbar. • Resize button: The middle button in the upper-right corner of a window used to resize a program window. If a program window is full-screen size it fills the entire screen and the Restore Down button is displayed. You can use the Restore Down button to reduce the size of a program window. If a program window is less than full-screen size, the Maximize button is displayed. You can use the Maximize button to enlarge a program window to full-screen size. • Close button: The right button in the upper-right corner of a window used to quit a program or close a document window – the X • Scroll bars: A vertical bar on the side of a window and a horizontal bar at the bottom of the window are used to move around in a document.
    [Show full text]
  • Spot-Tracking Lens: a Zoomable User Interface for Animated Bubble Charts
    Spot-Tracking Lens: A Zoomable User Interface for Animated Bubble Charts Yueqi Hu, Tom Polk, Jing Yang ∗ Ye Zhao y Shixia Liu z University of North Carolina at Charlotte Kent State University Tshinghua University Figure 1: A screenshot of the spot-tracking lens. The lens is following Belarus in the year 1995. Egypt, Syria, and Tunisia are automatically labeled since they move faster than Belarus. Ukraine and Russia are tracked. They are visible even when they go out of the spotlight. The color coding of countries is the same as in Gapminder[1], in which countries from the same geographic region share the same color. The world map on the top right corner provides a legend of the colors. ABSTRACT thus see more details. Zooming brings many benefits to visualiza- Zoomable user interfaces are widely used in static visualizations tion: it allows users to examine the context of an interesting object and have many benefits. However, they are not well supported in by zooming in the area where the object resides; labels overcrowded animated visualizations due to problems such as change blindness in the original view can be displayed without overlaps after zoom- and information overload. We propose the spot-tracking lens, a new ing in; it allows users to focus on a local area and thus reduce their zoomable user interface for animated bubble charts, to tackle these cognitive load. problems. It couples zooming with automatic panning and provides In spite of these benefits, zooming is not as well supported in an- a rich set of auxiliary techniques to enhance its effectiveness.
    [Show full text]