没有合适的资源?快使用搜索试试~ 我知道了~
Oracle Solaris 9 Common Desktop Environment: Desktop KornShell U
需积分: 5 0 下载量 155 浏览量
2023-07-04
10:31:41
上传
评论
收藏 587KB PDF 举报
温馨提示
试读
96页
Oracle Solaris 9 Common Desktop Environment: Desktop KornShell User’s Guide-96
资源推荐
资源详情
资源评论
Common Desktop Environment:
Desktop KornShell User’s Guide
Sun Microsystems, Inc.
4150 Network Circle
Santa Clara, CA 95054
U.S.A.
Part No: 816–0283–10
May 2002
Copyright 2002 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 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.
Third-party software, including font technology, is copyrighted and licensed from Sun suppliers.
Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S.
and other countries, exclusively licensed through X/Open Company, Ltd.
Sun, Sun Microsystems, the Sun logo, docs.sun.com, AnswerBook, AnswerBook2, and Solaris are trademarks, registered trademarks, or service marks
of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks
of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun
Microsystems, Inc.
The OPEN LOOK and Sun™ Graphical User Interface was 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.
Federal Acquisitions: Commercial Software–Government Users Subject to Standard License Terms and Conditions.
DOCUMENTATION IS PROVIDED “AS IS” AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES,
INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE
DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.
Copyright 2002 Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 U.S.A. Tous droits réservés
Ce produit ou document est protégé par un copyright et distribué avec des licences qui en restreignent l’utilisation, la copie, la distribution, et la
décompilation. Aucune partie de ce produit ou document ne peut être reproduite sous aucune forme, par quelque moyen que ce soit, sans
l’autorisation préalable et écrite de Sun et de ses bailleurs de licence, s’il y en a. Le logiciel détenu par des tiers, et qui comprend la technologie relative
aux polices de caractères, est protégé par un copyright et licencié par des fournisseurs de Sun.
Des parties de ce produit pourront être dérivées du système Berkeley BSD licenciés par l’Université de Californie. UNIX est une marque déposée aux
Etats-Unis et dans d’autres pays et licenciée exclusivement par X/Open Company, Ltd.
Sun, Sun Microsystems, le logo Sun, docs.sun.com, AnswerBook, AnswerBook2, et Solaris sont des marques de fabrique ou des marques déposées, ou
marques de service, de Sun Microsystems, Inc. aux Etats-Unis et dans d’autres pays. Toutes les marques SPARC sont utilisées sous licence et sont des
marques de fabrique ou des marques déposées de SPARC International, Inc. aux Etats-Unis et dans d’autres pays. Les produits portant les marques
SPARC sont basés sur une architecture développée par Sun Microsystems, Inc.
L’interface d’utilisation graphique OPEN LOOK et Sun™ a été développée par Sun Microsystems, Inc. pour ses utilisateurs et licenciés. Sun reconnaît
les efforts de pionniers de Xerox pour la recherche et le développement du concept des interfaces d’utilisation visuelle ou graphique pour l’industrie
de l’informatique. Sun détient une licence non exclusive de Xerox sur l’interface d’utilisation graphique Xerox, cette licence couvrant également les
licenciés de Sun qui mettent en place l’interface d’utilisation graphique OPEN LOOK et qui en outre se conforment aux licences écrites de Sun.
CETTE PUBLICATION EST FOURNIE “EN L’ETAT” ET AUCUNE GARANTIE, EXPRESSE OU IMPLICITE, N’EST ACCORDEE, Y COMPRIS DES
GARANTIES CONCERNANT LA VALEUR MARCHANDE, L’APTITUDE DE LA PUBLICATION A REPONDRE A UNE UTILISATION
PARTICULIERE, OU LE FAIT QU’ELLE NE SOIT PAS CONTREFAISANTE DE PRODUIT DE TIERS. CE DENI DE GARANTIE NE
S’APPLIQUERAIT PAS, DANS LA MESURE OU IL SERAIT TENU JURIDIQUEMENT NUL ET NON AVENU.
020115@3062
Contents
Preface 7
1 Introduction to Desktop KornShell 11
Using Desktop KornShell to Create Motif Applications 11
Resources 12
Unsupported Resources 13
dtksh app-defaults File 14
Variable Values 15
Return Values 15
Immediate Return Value 16
Initializing the Xt Intrinsics 17
Creating Widgets 18
Using a Callback 19
Registering a Callback 19
Passing Data to a Callback 20
2 A Sample Script 23
Writing the Script 23
Adding a Callback 25
3 Advanced Topics 27
Using Context Variables 27
Event Handler Context Variables 27
Translation Context Variables 28
Workspace Callback Context Variables 28
3
Input Context Variables 28
Accessing Event Subfields 30
Responding to a Window Manager Close Notice 31
Responding to a Session Manager Save State Notice 32
Cooperating With Workspace Manager 34
Creating Localized Shell Scripts 35
Using dtksh to Access X Drawing Functions 36
Setting Widget Translations 37
4 A Complex Script 39
Using script_find 39
Analyzing script_find 41
Functions and Callbacks 41
Main Script 43
A dtksh Commands 49
Built-in Xlib Commands 50
Built-in Xt Intrinsic Commands 51
Built-in Motif Commands 54
Built-in Common Desktop Environment Application Help Commands 64
Built-in Localization Commands 65
Built-in libDt Session Management Commands 65
Built-in libDt Workspace Management Commands 66
Built-in libDt Action Commands 67
Built-in libDt Data-Typing Commands 68
Miscellaneous Built-in libDt Commands 69
Built-in Desktop Services Message Set Commands 69
B dtksh Convenience Functions 77
DtkshAddButtons 77
DtkshSetReturnKeyControls 78
DtkshUnder, DtkshOver, DtkshRightOf, and DtkshLeftOf 79
DtkshFloatRight, DtkshFloatLeft, DtkshFloatTop, and DtkshFloatBottom 79
DtkshAnchorRight, DtkshAnchorLeft, DtkshAnchorTop, and DtkshAnchorBottom
80
DtkshSpanWidth and DtkshSpanHeight 81
DtkshDisplayInformationDialog, DtkshDisplayQuestionDialog,
4 Common Desktop Environment: Desktop KornShell User’s Guide • May 2002
DtDisplayWarningDialog, DtkshDisplayWorkingDialog, and
DtkshDisplayErrorDialog 81
DtkshDisplayQuickHelpDialog and DtkshDisplayHelpDialog 82
C The script_find Script 85
Listing for script_find 85
Find.sticky 92
Find.help 92
Index 93
Contents 5
剩余95页未读,继续阅读
资源评论
weixin_40191861_zj
- 粉丝: 63
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功