BORLAND Objectvision™ Reference
Total Page:16
File Type:pdf, Size:1020Kb
BORLAND ObjectVision™ Reference BORLAND INTERNATIONAL, INC. 1800 GREEN HILLS ROAD P.O. BOX 660001, SCOTTS VALLEY, CA 95067-0001 Copyright © 1991 by Borland International, Inc. All Rights Reserved. Borland and ObjectVision are trademarks of Borland International. Microsoft and MS are trademarks of Microsoft Corporation. Windows, as used in the manual, refers to Microsoft's implementation of a windows system. PRINTED IN THE U.S.A. R2 10 9 8 7 6 5 4 3 2 c o N T E N T s Part 1 ObjectVision features Optional equipment . .. 22 Installing ObjectVision . .. 23 Introduction 3 U sing the Paradox Engine . .. 26 What's in this manual .................. 3 Moving the ObjectVision icon ......... 26 Typography and naming conventions ... 4 Using a mouse to move the icon ..... 27 Late-breaking news ................... 5 Using keys to move the icon ......... 27 How to contact Borland . .. 5 Starting ObjectVision ................. 28 Chapter 1 ObjectVision: An overview 7 From the Windows desktop ......... 28 ObjectVision concepts ............... 7 From the DOS prompt . .. 28 Users .............................. 8 Modifying your WIN.INI file .......... 29 Forms ............................... 8 The load and run statements ........ 29 Tools .............................. 9 Using Windows ..................... 29 Distribution ....................... 10 Application windows ............... 30 Using forms . .. 10 Control-menu box ............... 30 Fields .............................. 11 Title bar ........................ 31 Highlighting different fields . .. 11 Menu bar ....................... 31 Overriding values . .. 11 Maximize, Minimize, and Restore Values ............................ 12 buttons ......................... 31 Scratchpad forms .................. 12 Window border. .. 32 Guided completion. .. 12 Choosing and canceling . .. 32 Restoring guided completion ........ 13 Choosing menu commands ....... 32 Minimal recalculation ................ 13 Canceling menu commands ....... 33 Decision trees ....................... 14 Using dialog boxes ................. 33 Tree Tool ......................... 16 Setting dialog box options . .. 33 Expressions ......................... 16 Editing text boxes . .. 34 Conditions and Conclusions ......... 17 Choosing command buttons . .. 34 External links . .. 17 Chapter 3 Using an ObjectVision ASCII files ........................ 18 application 35 Paradox .......................... 18 Opening an application ............... 36 dBASE ........................... 19 Finding an application .............. 36 Btrieve ........................... 19 Saving changes .................... 37 DDE ............................. 19 Discarding values .................. 37 Chapter 2 Getting started 21 Identifying parts of a form ............ 38 Supported equipment ................ 21 Understanding form status .......... 38 Necessary equipment ............... 22 Selecting fields .................... 39 Overriding values . .. 39 Creating your prototype .............. 64 Control-menu box ................. 39 Linking your prototype to external data Form border. .. 40 sources .............. " ........... ,. 65 Guided form completion . .. 40 Testing and refining your application ... 65 Selecting forms .................... 40 Distributing your application to users .. 66 Selecting fields .................... 41 Maintaining and updating the Moving between fields . .. 41 application ........................ " 67 Determining values ................ 42 Selecting another field .............. 42 Chapter 5 Using the Form Tool 69 Editing field values ................. 42 Form objects ........................ 70 Pointer positioning . .. 42 Fields ............................ 71 Text editing ..................... 43 Text .............................. 72 Error values ....................... 43 Filled rectangles ................... 72 Understanding field types . .. 44 Rounded rectangles ................ 72 Text/Numeric fields. .. 45 Lines .......................... '" 72 List fields ......................... 46 Graphics .......................... 72 Check box fields ................... 47 Creating and resizing objects ........ 72 True/False fields. .. 47 Creating a new form ................. 73 Scrolling fields . .. 47 Selecting a form ..................... 75 Button fields ...................... 47 Adding new objects to a form. .. 75 Picture fields ...................... 48 Adding a field . .. 76 Cutting, copying, and pasting data ..... 48 Adding text ....................... 77 Cutting text ....................... 48 Adding a rectangle object ........... 77 Copying text ...................... 49 Adding lines ...................... 78 Pasting text ....................... 49 Adding graphics ................... 78 Getting help ......................... 49 Renaming, resizing, moving, and scrolling Clearing forms ...................... 52 forms .............................. 79 Clearing forms with external links .... 52 Renaming a form .................. 79 Moving forms ....................... 53 Resizing a form . .. 79 Resizing Scratchpad forms ............ 53 Moving a form .................... 80 Scrolling large forms ................. 53 Scrolling large forms ............... 80 Printing forms ....................... 54 Finding forms that contain a specified Viewing decision trees . .. 55 field. .. 81 Scrolling decision trees ........... 58 Selecting, moving, and resizing form Changing system colors . .. 58 objects .............................. 81 Forms color ....................... 58 Selecting form objects .............. 81 Decision tree nodes color . .. 59 Moving form objects ............... 82 Using the Control Panel ............. 59 Resizing form objects ............... 82 Changing colors ................. 59 Using the Form Clipboard ............ 82 Changing international settings .... 60 Cut ............ , ............... 83 Copy ........................... 83 Chapter 4 Designing an application 63 Paste ...... , .................... 83 Defining your application's objectives ... 63 Undo ........................... 83 Changing field references ............. 83 Chapter 6 Using the Tree Tool 105 Changing field names and text values .. 84 Elements of a decision tree ........... 107 Adding help text to fields ............. 85 Branch nodes . .. 107 Changing field display formats ........ 86 Simple branch node ............. 107 General ........................... 87 Complex branch node ........... 108 Fixed .......................... '" 87 Conditions .. .. 108 Percent ..... .. 87 Evaluating condition expressions . 108 Financial . .. 87 Conclusion nodes ................. 109 Currency ......................... 88 Empty nodes ..................... 109 Date/Time . .. 88 Creating a new decision tree .......... 109 Scrolling . .. 88 Adding decision tree nodes ........ 110 Selection list . .. 89 Selecting a position for a new node . 110 Check box ........................ 89 Adding branch nodes ........... 111 True/False . .. 89 Adding conclusion nodes ........ 111 Button ............................ 90 Editing decision trees . .. 111 Picture ........................... 90 Selecting a decision tree . .. 111 Displaying a field's name. .. 92 Selecting and scrolling ............. 112 Determining possible values . .. 92 Editing with the Tree Clipboard .... 113 ObjectVision determines the values ... 93 Undo .......................... 113 Adding a list of values . .. 95 Cut ........................... 113 Repeating formatting ............. 96 Copy .......................... 113 Changing alignment. .. 97 Paste. .. 113 Left .............................. 97 Clear. .. 114 Right ............................. 98 Changing conditions .............. 114 Center ............................ 98 Changing conclusions ............. 114 Justified .......................... 98 Changing branch field references . .. 115 Changing label fonts ................. 98 Changing branch node field names .. 115 Fonts ............................. 99 Finding decision trees containing a specified Size ............................. 100 field. .. 116 Bold style ......... .. 100 Deleting decision trees . .. 116 Italic style ...................... " 100 Printing decision trees ............... 117 Underline style ................... 100 Changing screen or printer views ..... 100 Chapter 7 Writing eicpressions 119 Changing object borders ........... " 101 Expressions ........................ 119 Outline .......................... 102 ObjectVision data types .............. 120 Top ............................. 102 Numeric values ................... 120 Left ............................. 102 String values ..................... 120 Right ............................ 102 Logical values .................... 120 Bottom .......................... 103 Error values. .. .. 121 Protecting field values ............... 103 Data conversion .................... 121 No Override ..................... 103 Examples ........................ 121 No Tree Display .................. 104 Field names in expressions .. .. 122 Single quotation marks ............ 122 iii Operators and evaluation ............ 123 DATE ........................... 153 Using parentheses .............. 124 DATEVALUE .................... 154 The Condition dialog box ............ 124 DAy ............................. 155 Evaluation ....................... 125 DBOPEN ........................ 155 Comparison operators . .. 127 DDEOPEN ...................... , 157 Otherwise. .. 127 DELETE ......................... 158 The Conclusion dialog box ..........