Manual Basicmaker
Total Page:16
File Type:pdf, Size:1020Kb
Manual BasicMaker © 1987-2016 SoftMaker Software GmbH Contents Welcome! 9 What is BasicMaker? .......................................................................................... 9 Using the script editor 11 Starting BasicMaker .......................................................................................... 11 Commands in the File menu of the script editor ............................................... 11 Using the file manager ................................................................................ 12 Commands in the Edit menu of the script editor ............................................... 13 Searching and replacing in the script editor ................................................ 14 Commands in the View menu of the script editor ............................................. 15 Commands in the Insert menu of the script editor ............................................ 16 Using SmartText .......................................................................................... 16 Bookmarks and the Go to... command ........................................................ 17 Commands in the Program menu of the script editor ........................................ 18 Commands in the Tools menu of the script editor ............................................. 19 Changing the preferences of the script editor .............................................. 19 Customizing the toolbars of the script editor ............................................... 21 Customizing toolbar icons ........................................................................... 23 Customizing the keyboard shortcuts of the script editor ............................. 23 Editing the shortcuts in a keyboard mapping .............................................. 24 Commands in the Window menu of the script editor ........................................ 26 Starting scripts................................................................................................... 27 Debugging scripts ............................................................................................. 27 Running a script step by step ....................................................................... 27 Using breakpoints ........................................................................................ 28 Watching variables ...................................................................................... 28 Using the dialog editor ...................................................................................... 28 General information .................................................................................... 28 Opening/closing the dialog editor ................................................................ 29 Commands in the File menu of the dialog editor ........................................ 29 Commands in the Edit menu of the dialog editor ........................................ 30 Commands in the Insert menu of the dialog editor ...................................... 31 Language elements of SoftMaker Basic 32 Syntax fundamentals ......................................................................................... 32 Data types.......................................................................................................... 33 Special behavior of the Variant data type .................................................... 34 User-defined data types ............................................................................... 34 Variables ............................................................................................................ 35 Arrays ................................................................................................................ 35 Operators ........................................................................................................... 36 Flow control ...................................................................................................... 37 Subroutines and functions ................................................................................. 39 Passing parameters via ByRef or ByVal ...................................................... 39 Calling functions in DLLs ................................................................................. 40 File operations ................................................................................................... 40 Dialog boxes ..................................................................................................... 41 Dialog definition.......................................................................................... 41 Controls of a dialog box .............................................................................. 42 The dialog function ..................................................................................... 45 OLE Automation ............................................................................................... 47 BasicMaker and TextMaker 50 Programming TextMaker .................................................................................. 50 Connecting to TextMaker ............................................................................ 50 Manual BasicMaker Contents iii Getting and setting TextMaker properties ................................................... 51 Using TextMaker’s methods ........................................................................ 52 Using pointers to other objects .................................................................... 52 Using collections ......................................................................................... 53 Hints for simplifying notations .................................................................... 54 TextMaker’s object model ................................................................................. 55 Application (object) ..................................................................................... 56 Options (object) ........................................................................................... 63 UserProperties (collection) .......................................................................... 66 UserProperty (object) .................................................................................. 67 CommandBars (collection) .......................................................................... 68 CommandBar (object) ................................................................................. 70 AutoCorrect (object) .................................................................................... 71 AutoCorrectEntries (collection) .................................................................. 73 AutoCorrectEntry (object) ........................................................................... 74 Documents (collection) ............................................................................... 76 Document (object) ....................................................................................... 79 DocumentProperties (collection) ................................................................. 86 DocumentProperty (object) ......................................................................... 88 PageSetup (object) ....................................................................................... 90 Selection (object) ......................................................................................... 93 Font (object) ................................................................................................ 99 Paragraphs (collection) .............................................................................. 104 Paragraph (object) ..................................................................................... 105 Range (object) ........................................................................................... 110 DropCap (object) ....................................................................................... 111 Tables (collection) ..................................................................................... 113 Table (object) ............................................................................................. 114 Rows (collection) ...................................................................................... 117 Row (object) .............................................................................................. 118 Cells (collection) ....................................................................................... 120 Cell (object) ............................................................................................... 121 Borders (collection) ................................................................................... 124 Border (object) .......................................................................................... 126 Shading (object) ........................................................................................ 128 FormFields (collection) ............................................................................. 131 FormField (object) ..................................................................................... 132 TextInput (object) ...................................................................................... 135 CheckBox (object) ..................................................................................... 136 DropDown (object) .................................................................................... 138 ListEntries