Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 776 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
776
Dung lượng
2,52 MB
Nội dung
[...]... a programmer's manual, not a reference manual Volume Six B, MotifReferenceManual, contains reference material for all of the Motif library functions and widget classes We have tried to identify those features of the toolkit that are most important for general discussion, so we do not discuss every aspect of the Motif toolkit in the body of this book Any major software development effort, especially... Associates: Volume Zero X Protocol Reference Manual Volume One Xlib Programming Manual Volume Two Xlib Reference Manual Volume Three X Window System User's Guide, Motif Edition Volume Four X Toolkit Intrinsics Programming Manual,Motif Edition Volume Five X Toolkit Intrinsics Reference Manual Volume Six B MotifReference Manual Volume Seven XView Programming Manual (with accompanying reference volume) 5 1 Preface... toolkit such as MotifMotif provides a complete set of widgets designed to implement the application look and feel specified in the Motif Style Guide and the Motif Application Environment Specification The book provides a complete programmer's guide to the Motif toolkit While the OSF /Motif toolkit is based on Xt, the focus of the book is on Motif itself, not on the Intrinsics Detailed information about... a result, the next few years will see the number of Motif users and developers grow astronomically as Motif becomes the focal point for software and hardware companies alike You have two options for making applications Motif compliant You can write the entire application yourself, and make sure that all your user−interface features conform to the Motif GUI specifications, or you can use a programming... use Chapter 2 The Motif Programming Model teaches the fundamentals of Motif by example It presents a simple "Hello, World" program that shows the structure and style common to all Motif programs Much of this material is already covered in detail in Volume Four, X Toolkit Intrinsics Programming Manual,Motif Edition, so the chapter can be read as a refresher, or a light introduction for those who haven't... use or reference, but you won't learn everything there is to know about them through this particular volume This book covers Motif 1.2, which is the latest major release of the Motif toolkit Motif 1.2 is based on Release 5 of the Xlib and Xt specifications (X11R5) This release of Motif provides many new features, as well as a number of enhancements to existing functionality All of the changes in Motif. .. Programming Manual PHIGS Reference Manual PEXlib Programming Manual PEXlib Reference Manual Quick Reference The X Window System in a Nutshell 1.5 Conventions Used in This Book Italic is used for: • UNIX pathnames, filenames, program names, user command names, options for user commands, and variable expressions in syntax sections • New terms where they are defined Typewriter Font is used for: • Anything that... functions relating to Motif, Xt, and Xlib • Names of subroutines in example programs Italic Typewriter Font is used for: • Arguments to functions, since they could be typed in code as shown but are arbitrary names that could be changed Boldface is used for: • Names of buttons and menus 1.6 Obtaining Motif If your hardware vendor is an OSF member, they may be able to provide Motif binaries for your machine... final form of this book is the work of the staff at O'Reilly & Associates The authors would like to thank Chris Reilly for the figures, Donna Woonteiler, Chris Tong, and Ellie Cutler for indexing, Lenny Muellner for tools support, and Stephen Spainhour, Clairemarie Fisher O'Leary, Kismet McDonough, and Eileen Kramer for copyediting and production of the final copy Thanks also to Donna Woonteiler for. .. Donna Converse at the X Consortium for being somewhat patient with me Added thanks to Lynn Vaughn at CNN for keeping me informed about what's going on in the world, since I have no time to look out the window; to Short Attention−Span Theatre, for keeping me amused; and to Yogurt World, for keeping me fed This book was written using a Sun workstation, the vi editor (for which I guess I ought to thank . 607
22 .2. 1 Using Work Procedures 609
22 .2. 2 Using Timers 613
22 .2. 3 Processing Events 613
22 .2. 4 Updating the Display 619
22 .2. 5 Avoiding Forks 620
22 .3. DrawingArea 29 6
11 .5 Summary 3 01
11. 6 Exercises 3 01
12 Labels and Buttons 303
12 . 1 Labels 303
12 . 1. 1 Creating a Label 304
12 . 1 .2 Text Labels 305
12 . 1. 3 Images