OLIT Reference Manual
Total Page:16
File Type:pdf, Size:1020Kb
OLIT Reference Manual 2550 Garcia Avenue Mountain View, CA 94043 U.S.A. A Sun Microsystems, Inc. Business 1994 Sun Microsystems, Inc. 2550 Garcia Avenue, Mountain View, California 94043-1100 U.S.A. All rights reserved. This product and related documentation are protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or related documentation 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® and Berkeley 4.3 BSD systems, licensed from UNIX System Laboratories, Inc., a wholly owned subsidiary of Novell, Inc., and the University of California, respectively. Third-party font software in this product is protected by copyright and licensed from Sun’s font suppliers. RESTRICTED RIGHTS LEGEND: Use, duplication, or disclosure by the United States Government is subject to the restrictions set forth in DFARS 252.227-7013 (c)(1)(ii) 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, the Sun logo, Sun Microsystems, Sun Microsystems Computer Corporation, SunSoft, the SunSoft logo, Solaris, SunOS, OpenWindows, DeskSet, ONC, ONC+, and NFS are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and certain other countries. UNIX is a registered trademark of Novell, Inc., in the United States and other countries; X/Open Company, Ltd., is the exclusive licensor of such trademark. OPEN LOOK® is a registered trademark of Novell, Inc. PostScript and Display PostScript are trademarks of Adobe Systems, Inc. All other product names mentioned herein are the trademarks of their respective owners. All SPARC trademarks, including the SCD Compliant Logo, are trademarks or registered trademarks of SPARC International, Inc. SPARCstation, SPARCserver, SPARCengine, SPARCstorage, SPARCware, SPARCcenter, SPARCclassic, SPARCcluster, SPARCdesign, SPARC811, SPARCprinter, UltraSPARC, microSPARC, SPARCworks, and SPARCompiler are licensed exclusively to Sun Microsystems, Inc. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun™ Graphical User Interfaces were developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the concept of visual or graphical user interfaces for the computer industry. Sun holds a non-exclusive license from Xerox to the Xerox Graphical User Interface, which license also covers Sun’s licensees who implement OPEN LOOK GUIs and otherwise comply with Sun’s written license agreements. X Window System is a product of the Massachusetts Institute of Technology. THIS PUBLICATION IS PROVIDED “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THIS PUBLICATION COULD INCLUDE TECHNICAL INACCURACIES OR TYPOGRAPHICAL ERRORS. CHANGES ARE PERIODICALLY ADDED TO THE INFORMATION HEREIN; THESE CHANGES WILL BE INCORPORATED IN NEW EDITIONS OF THE PUBLICATION. SUN MICROSYSTEMS, INC. MAY MAKE IMPROVEMENTS AND/OR CHANGES IN THE PRODUCT(S) AND/OR THE PROGRAM(S) DESCRIBED IN THIS PUBLICATION AT ANY TIME. Please Recycle Contents 1. Introduction . 1 Differences From OLIT Release 3.3 . 1 Motif and OPEN LOOK Interoperability Issues . 2 2. Common Resources . 5 Resources Summary Tables . 6 Resource Files. 7 Resource File Bindings . 7 OLIT Toolkit Resources . 7 Core Resources . 17 Composite Resources . 23 Primitive Resources . 24 Manager Resources . 31 Shell Resources. 31 WMShell Resources . 35 VendorShell Resources . 42 iii TransientShell Resources . 50 TopLevelShell Resources . 50 ApplicationShell Resources . 51 Flat Resources. 52 3. Activation Types . 61 Activation Type Description. 61 Common Activation Types . 68 4. Internationalization Features . 71 Introduction . 71 System Requirements . 72 Issues Involved in Internationalizing Applications. 72 Locale Setting . 73 Character Encoding and Text Formats . 74 Localized Text Handling. 79 Input Method . 80 Standards . 89 5. Toolkit Functions . 91 Initialization and Activation Functions . 92 Buffer Functions. 95 Cursor and Pixmap Functions . 99 Display Functions . 108 Drag and Drop Functions . 109 Dynamic Resource Functions . 140 Error Functions. 142 iv OLIT Reference Manual—August 1994 Help Function. 146 Input Focus Functions. 150 Multiple Visual Functions. 154 Packed Widget Function . 156 Pixel Conversion Functions . 158 Protocol Function. 160 Regular Expression Functions . 161 Text Buffer Functions. 163 Text Buffer Functions for Internationalization . 176 Text Selection Operations . 204 Toolkit Resource Functions. 206 Virtual Event Functions. 207 6. Widget Reference (A – C). 217 AbbrevMenuButton Widget . 217 BulletinBoard Widget . 225 Caption Widget . 229 CheckBox Widget . 237 ControlArea Widget . 249 7. Widget Reference (D – F). 259 DrawArea Widget . 259 DropTarget Widget . 266 Exclusives Widget . 277 FileChooser Widget . 284 FileChooserShell Widget . 311 Contents v Flat Widgets . 321 FlatCheckBox Widget . 329 FlatExclusives Widget . 337 FlatNonexclusives Widget . 347 Flat Widget Functions . 354 FontChooser Widget . 357 FontChooserShell Widget . 375 FooterPanel Widget . 381 Form Widget. 385 8. Widget Reference (G – P). 395 Gauge Widget. 395 Gauge Function . 402 MenuButton Widget . 403 MenuShell Widget . 414 Nonexclusives Widget . 428 NoticeShell Widget . 433 NumericField Widget . 443 OblongButton Widget . 464 PopupWindowShell Widget . 475 9. Widget Reference (R – S) . 489 RectButton Widget . 489 RubberTile Widget . ..