XView Reference Manual

Text-only Preview

XView Reference
Manual


Volume Seven
XView Reference
Manual
By Dan Heller
Updated for XView Version 3.2 by Thomas Van Raalte
O’Reilly & Associates, Inc.

XView Programming Manual
by Dan Heller
Updated for XView Version 3.2 by Thomas Van Raalte
Copyright © 1990-1991 O’Reilly & Associates, Inc. All rights reserved.
Printed in the United States of America.
X Series Editor: Tim O’Reilly
Editor: Dale Dougherty
Printing History:
January 1990:
First edition.
April 1990:
Minor corrections.
July 1990:
Second edition. Updated for XView Version 2.
October 1990:
Minor corrections.
September 1991:
Third edition. Updated for XView Version 3.
March 1992:
Minor corrections.
August 1992:
Minor corrections.
August 1993:
Minor additions. Updated for XView Version 3.2.
Many of the designations used by manufacturers and sellers to distinguish their products are claimed as
trademarks. Where those designations appear in this book, and O’Reilly & Associates, Inc. was aware of a
trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher assumes no responsibility
for errors or omissions, or for damages resulting from the use of the information contained herein.
This book is printed on acid-free paper with 50% recycled content, 10-15% post-consumer waste. O’Reilly &
Associates is committed to using paper with the highest recycled content available consistent with high quality.
Volume 7: ISBN 0–937175–87-0

Volume 7B: XView Reference Manual
Table of Contents
Page
Preface
xi
How to Use This Manual
xi
Font Conventions Used in This Manual
xii
Related Documents
xiii
Requests for Comments
xiv
Acknowledgements
xiv
Chapter 1 XView Package Summary
3
1.1 XView and OPEN LOOK
3
1.2 XView Packages
4
1.2.1 Object Handles
5
1.2.2 Attribute-based Functions
6
1.2.3 Creating and Manipulating Objects
6
1.3 The CANVAS Package
7
1.4 The CMS Package
8
1.5 The CURSOR Package
8
1.6 The DRAGDROP and DROP_SITE_ITEM Packages
9
1.7 The FONT Package
9
1.8 The FRAME Package
10
1.9 The FULLSCREEN Package
11
1.10 The ICON Package
12
1.11 The MENU and MENUITEM Packages
12
1.11.1 Menu Types
13
1.11.2 Menu Items
13
1.12 The NOTICE Package
14
1.13 The PANEL Package
15
1.13.1 Panel Items
15
1.13.2 Scrollable Panels
23
1.14 The SCREEN Object
23

1.15 The SCROLLBAR Package
24
1.16 The SELECTION Package
24
1.17 The SERVER Package
24
1.18 The TEXTSW Package
25
1.19 The TTYSW Package
25
1.20 The Notifier
26
1.20.1 Mainline Input Handling
26
1.20.2 Event-driven Input Handling
26
1.20.3 Functions of the Notifier
27
1.20.4 How the Notifier Works
27
Chapter 2 XView Attributes
31
Chapter 3 Procedures and Macros
175
Chapter 4 Data Types
221
Chapter 5 Event Codes
231
Chapter 6 Command-line Arguments and XView Resources
239
6.1 Command-line Options with Resources
240
6.2 Additional Resources
250
Appendix A Selection Compatibility Attributes
275
Appendix B Selection Compatibility Procedures and Macros
281
Appendix C Textsw Action Attributes
289
Index
291

Figures
Page
1-1 XView class hierarchy
5
1-2 Panel item created with PANEL_BUTTON package
16
1-3 Panel button with an attached menu
16
1-4 Panel item created with the PANEL_ABBREV_MENU_BUTTON package
17
1-5 Panel item from the PANEL_CHOICE package
17
1-6 Panel item from the PANEL_CHECK_BOX package
17
1-7 Panel item created with PANEL_TOGGLE macro
18
1-8 Panel item created with PANEL_CHOICE_STACK macro
18
1-9 Panel drop target items
19
1-10 Panel item created with the PANEL_GAUGE package
19
1-11 Panel list item created with the PANEL_LIST package
20
1-12 Panel item created with PANEL_MESSAGE package
20
1-13 Another panel item created with PANEL_MESSAGE package
21
1-14 Panel item created with the PANEL_MULTILINE_TEXT package
21
1-15 Panel item created with the PANEL_NUMERIC_TEXT package
22
1-16 Panel item created with the PANEL_SLIDER package
22
1-17 Panel item created with the PANEL_TEXT package
23

Tables
Page
1-1 Generic Functions
6
1-2 XView Packages
6
5-1 Event Codes
231
5-2 Mouseless Event Codes
234

This page intentionally left blank
to preserve original page counts.

This page intentionally left blank
to preserve original page counts.

Document Outline

  • Title Page
  • Copyright Notice
  • CONTENTS
  • Preface
  • 1 Package Summary
  • 2 Attributes
  • 3 Procedures/Macros
  • 4 Data Types
  • 5 Event Codes
  • 6 Command Line Args/Resources
  • A Selection Compatibility Attributes
  • B Selection Compatibility Procs/Macros
  • C Textsw Action Attributes
  • INDEX
  • Colophon