Windowbuilder Pro/V 3.1
Total Page:16
File Type:pdf, Size:1020Kb
Cincom WindowBuilder Pro/V 3.1 P46-0208-00 Software to Simplify Our Complex World ® Copyright © 1999–2000 Cincom Systems, Inc. All rights reserved. Copyright © 1999–2000 Seagull Systems, Inc. All rights reserved. This product contains copyrighted third-party software. Part Number: P46-0208-00 Software Release 3.2 This document is subject to change without notice. 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. Trademark acknowledgments: CINCOM, CINCOM SYSTEMS, and the Cincom logo are registered trademarks of Cincom Systems, Inc. Visual Smalltalk is a trademark of Cincom Systems, Inc., its subsidiaries, or successors and are registered in the United States and other countries. Microsoft Windows is a registered trademark of Microsoft, Inc. Win32 is a trademark of Microsoft, Inc. OS/2 is a registered trademark of IBM Corporation. Other product names mentioned herein are used for identification purposes only, and may be trademarks of their respective companies. The following copyright notices apply to software that accompanies this documentation: Visual Smalltalk is furnished under a license and may not be used, copied, disclosed, and/or distributed except in accordance with the terms of said license. No class names, hierarchies, or protocols may be copied for implementation in other systems. This manual set and online system documentation copyright © 1999–2000 by Cincom Systems, Inc. All rights reserved. No part of it may be copied, photocopied, reproduced, translated, or reduced to any electronic medium or machine-readable form without prior written consent from Cincom. Cincom Systems, Inc. 55 Merchant Street Cincinnati, Ohio 45246 Phone: (513) 612-2300 Fax: (513) 612-2000 World Wide Web: http://www.cincom.com iii Contents Chapter 1 Introduction.............................................................................................1 What is WindowBuilder Pro? ....................................................................................1 What you should already know..................................................................................1 History of WindowBuilder Pro ..................................................................................2 How this manual is organized....................................................................................2 Typographic Conventions..........................................................................................3 Technical Support .....................................................................................................3 Chapter 2 Overview..................................................................................................5 Starting WindowBuilder Pro......................................................................................5 Creating a window-based application ........................................................................6 Step 1. Design the User Interface..........................................................................7 Step 2. Attach callbacks to the interface objects ...................................................9 Chapter 3 Using WindowBuilder Pro...................................................................13 Positioning and Sizing Windows..........................................................................14 Positioning and Sizing Widgets ...........................................................................15 Operations on Multiple Widgets ..........................................................................17 Using the Grid .....................................................................................................22 Setting the Tab Order for Widgets .......................................................................23 Changing Fonts....................................................................................................27 Setting Colors......................................................................................................28 Styles...................................................................................................................30 Reframing Widgets..............................................................................................31 Widget Morphing ................................................................................................34 Using Call Outs ...................................................................................................35 Using the Event Manager.....................................................................................36 Mnemonic Redundancy Checking .......................................................................39 Using the Scrapbook............................................................................................39 Using Popup Widget Menus ................................................................................41 iv WindowBuilder Pro Chapter 4 Menus & WindowPolicies....................................................................45 Creating a Menubar.................................................................................................45 Creating WindowPolicies ........................................................................................48 Popup Menus on Widgets ........................................................................................49 Chapter 5 Coding in WindowBuilder Pro............................................................51 WindowBuilder Pro and Smalltalk ..........................................................................51 Passing Arguments to Windows...........................................................................52 Returning Values From a Dialog..........................................................................53 Naming Widgets..................................................................................................54 Passing messages from one widget to another......................................................55 Alternate window opening protocols....................................................................55 Chapter 6 Example Application............................................................................57 Designing the Interface............................................................................................58 Attaching Callbacks ................................................................................................60 Chapter 7 Model Objects.......................................................................................61 The Model Wizard ..................................................................................................61 The Model Object Editor.........................................................................................67 Primary Models.......................................................................................................68 The Layout Wizard..................................................................................................69 Chapter 8 Toolbar Reference................................................................................73 Chapter 9 Menu Reference ...................................................................................75 Transcript................................................................................................................75 File..........................................................................................................................80 Edit .........................................................................................................................88 View (obsolete) ......................................................................................................92 Attributes ................................................................................................................93 Align ..................................................................................................................... 106 Size ....................................................................................................................... 108 Options.................................................................................................................. 109 Scrapbook ............................................................................................................. 120 Add ....................................................................................................................... 122 Chapter 10 Widget Encyclopedia.......................................................................125 Contents v All Widgets ........................................................................................................... 125 SubPane & ControlPane ........................................................................................ 129 AnimationPane............................................................................................. 143 Button .......................................................................................................... 146 CheckBox..................................................................................................... 148 CheckBoxGroup........................................................................................... 150 ButtonListBox.............................................................................................