home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / ptgenr2.zip / PTG_REF.DOC < prev    next >
Text File  |  1994-08-01  |  51KB  |  2,069 lines

  1.  
  2.  
  3. C           O          N           T         E         N          T           S
  4.  
  5. ───────────────────────────────────────────────────────────────────────────────
  6.  
  7.  
  8.  
  9. Introduction                                1     Chapter 7 Commands                       19
  10. What's in this manual  .................    1    
  11.                                                   Chapter 8 HelpTexts                      21
  12. Chapter 1 The Application object            3     Helpconstants ........................   21
  13. Creating a new application.............     3     Statusline helptext  ....................21
  14. Loading an application  ................    3     HelpWindow text.....................     22
  15. Application configuration..............     3     Help dialog box  ......................  22
  16. Editing an application  .................   4    
  17.                                                   Chapter 9 The Objects Dialog box         23
  18. Saving an application   .................   4    
  19.                                                   Creating objects   ......................23
  20. Chapter 2 The Menubar object                5     Editing objects  ....................... 23
  21. Editing the menubar  ..................     5     Deleting objects  ...................... 24
  22.     Creating a Seperator   ................ 5     Cloning objects  ....................... 24
  23.     Creating a Submenu  ................    5    
  24.                                                   Appendix A The Files created by
  25.    Creating a Menu entry  ..............    5    
  26.                                                       PtGen                                25
  27.     Editing menuitems..................     6    
  28.                                                   The Source File  ....................... 25
  29.     Deleting menuitems.................     6    
  30.                                                   DEFINES.DEF........................      25
  31. The Menu local menu  .................      6    
  32.                                                   STRRESFS.TVR.......................      26
  33. Lines................................       6    
  34.                                                   STRINGS.TVR  .......................     26
  35.     Creating Links  .....................   6    
  36.                                                   STRINGS.INC........................      26
  37.     Deleting Links......................    6    
  38.                                                   PTGRES.INC.........................      27
  39. Chapter 3 The StatusLine object             7     .LOG...............................     27
  40.  
  41. Chapter 4 The DeskTop object                9     Appendix B PtGen Techical
  42. Desktop Local Menu  ..................      9         Information                          29
  43.  
  44. Chapter 5 The Dialog box object            11     Appendix C Error codes                   31
  45. The Dialog Local Menu................      11    
  46.                                                   Appendix D File list                     33
  47. Dialog settings  .......................   11    
  48. The Dialog subviews  ..................    12    
  49.     Button.............................    12    
  50.     Static text  ..........................12    
  51.     Label..............................    12    
  52.     Inputline   .......................... 13    
  53.     Memo .............................     13    
  54.     Checkboxes  ........................   13    
  55.     Radiobuttons.......................    13    
  56.     Spinbuttons ........................   14    
  57.     ListViewer  .........................  14    
  58. Moving and Resizing subviews.........      14    
  59. Changing the Tab-order of the subviews  .  14    
  60. Creating a record  .....................   15    
  61. Code button  .........................     15    
  62.  
  63. Chapter 6 The Popup menu object            17    
  64.  
  65.  
  66.  
  67.                 i
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.                                        ii
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132. I     N       T     R      O       D      U      C       T     I      O       N
  133. ───────────────────────────────────────────────────────────────────────────────
  134.  
  135.  
  136.         This manual is a reference guide for PtGen, the TurboVision
  137.         application generator. This manual describes all the objects PtGen
  138.         can create, their attributes and the operations on that objects. See
  139.         the user's manual for a description how to use PtGen.
  140.  
  141.  
  142. What's in this manual
  143. ───────────────────────────────────────────────────────────────────────────────
  144.  
  145.         This manual has six reference chapters and four appendixes.
  146.  
  147.         Chapter 1: The Application object  describes the application
  148.         PtGen creates.
  149.  
  150.         Chapter 2: The Menubar object  describes how to build a
  151.         menubar.
  152.  
  153.         Appendix C: Error codes  lists most of the error codes PtGen can
  154.         create.
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181. Introduction                                                                  1
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. 2                                                         PtGen Reference Guide
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246. C            H            A            P            T            E            R
  247. ───────────────────────────────────────────────────────────────────────────────
  248.  
  249.                                                                                             1
  250.  
  251.  
  252.  
  253.                                                          The Application object
  254.  
  255.  
  256.         PtGen is application oriented, that it: it assumes that you develop
  257.         complete applications with PtGen. Although it is possible just to
  258.         use the dialog box editing features alone, you won't take full
  259.         advantage of PtGen possibilities.
  260.  
  261.         This chapter discusses the application object and its properties.
  262.  
  263.  
  264. Creating a new application
  265. ───────────────────────────────────────────────────────────────────────────────
  266.  
  267.         If you want to create a new application, select File |New from the
  268.         menubar. The application configuration dialog box pops up. See
  269.         the section about Application configuration for further details.
  270.  
  271.         Next you can edit your application.
  272.  
  273.  
  274. Loading an application
  275. ───────────────────────────────────────────────────────────────────────────────
  276.  
  277.         Select File |Open to load a previous saved application. From the
  278.         File dialog box choose the file with the application you want to
  279.         load.
  280.  
  281.  
  282. Application configuration
  283. ───────────────────────────────────────────────────────────────────────────────
  284.  
  285.         For every application you have to specify:
  286.  
  287.         1. Its name. PtGen will automatically prefix the name (and any
  288.            name) with a 'T'
  289.         2. The language to use: English or Dutch.
  290.         3. If it uses a helpfile and if yes, the name of the ascii version of
  291.            that helpfile. Do not specify the TVHC compiled file, with
  292.            extension .HLP, but the text file, usually .TXT.
  293.  
  294.  
  295.  
  296. Chapter 1, The Application object                                             3
  297.  
  298.  
  299.  
  300.  
  301.  
  302.  
  303.  
  304.         4. If it uses the editor. If yes, than the commands from
  305.            EDITORS.PAS are added to the standard available commands
  306.            which can be used when creating menus. The added
  307.            commands are cmNew, cmOpen, cmSave, cmSaveAs, cmPrint
  308.  
  309.         The background printing option is not available in public releases.
  310.         That option is for use within NederWare only.
  311.  
  312.  
  313. Editing an application
  314. ───────────────────────────────────────────────────────────────────────────────
  315.  
  316.         Press  Ctrl+F8  (Edit) or select Edit from the menubar to edit your
  317.         application. You can now edit the menubar (see chapter Object
  318.         MenuBar) and statusline (see chapter Object Statusline) and create
  319.         various objects (see chapter Creating Objects).
  320.  
  321.         After you have edited an application, pressing  Alt+X  (Exit) brings
  322.         you back in PtGen. You can now save your application, see
  323.         chapter Saving an application.
  324.  
  325.  
  326. Saving an application
  327. ───────────────────────────────────────────────────────────────────────────────
  328.  
  329.         Select File |Save or File |Save as to save your application. If you
  330.         don't specify an extension, .PAS will be added.
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344.  
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354. 4                                                         PtGen Reference Guide
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.  
  362.  
  363. C            H            A            P            T            E            R
  364. ───────────────────────────────────────────────────────────────────────────────
  365.  
  366.                                                                                             2
  367.  
  368.  
  369.  
  370.                                                              The Menubar object
  371.  
  372.  
  373.         PtGen allows you to quickly define menuitems. The parameters
  374.         you can give to a menuitem are the same as the TMenuItem type,
  375.         which is described in the Turbo Vision manual plus some more.
  376.         The following sections describe the various menuitems you can
  377.         create. See the section Creating Links to read about linking an
  378.         object to a certain menuitem.
  379.  
  380.  
  381. Editing the menubar
  382. ───────────────────────────────────────────────────────────────────────────────
  383.  
  384.         In this section the creation, editing and deleting of menuitems is
  385.         treated.
  386.         ───────────────────────────────────────────────────────────────────────
  387.                Creating a    
  388.         Select the menubar and press  Ins. Leave the popped up dialog box
  389.                 Seperator    
  390.         blank by pressing  Enter. A selectable line appears, indicating the
  391.         line your users will see.
  392.         The reason that you do not get the normal line as you would
  393.         expect is that such lines are not selectable so you won't be able to
  394.         delete such lines. When saving your application as source code,
  395.         PtGen puts this right.
  396.         ───────────────────────────────────────────────────────────────────────
  397.                Creating a    
  398.         Select the menubar and press  Ins. You create a submenu by only
  399.                   Submenu    
  400.         specifying a Name and leave the Command and Param fields
  401.         empty. Helptexts can be defined. See chapter Helptexts for a full
  402.         explanation.
  403.         ───────────────────────────────────────────────────────────────────────
  404.                Creating a    
  405.         Select the menubar and press  Ins. You must specify a Name and a
  406.                Menu entry    
  407.         Command. The other fields can be empty. To a normal menuitem
  408.         code can be linked. This code will be executed when you select
  409.         this menuitem. This code is linked to the Command you specify.
  410.         PtGen will assign a unique value to every command you will
  411.         create. This is different from handcoding Turbo Vision
  412.  
  413.  
  414. Chapter 2, The Menubar object                                                 5
  415.  
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.         applications. You don't have to assign/remember values for your
  423.         names nor be aware of them. Just specify a name. You can specify
  424.         helptexts if you want. See chapter Helptexts for a full explanation.
  425.         ───────────────────────────────────────────────────────────────────────
  426.                   Editing    
  427.         All menu entries can be edited by selecting them and pressing
  428.                 menuitems    
  429.         Ctrl+F8  (Edit).
  430.         ───────────────────────────────────────────────────────────────────────
  431.                  Deleting    
  432.         All menu entries can be deleted by selecting them and pressing  Del   .
  433.                 menuitems    
  434.         There is no mouse equivalent.
  435.  
  436.  
  437. The Menu local menu
  438. ───────────────────────────────────────────────────────────────────────────────
  439.  
  440.         The menubar or popup has a local menu too. Press  Alt+F10     to pop it
  441.         up. You can insert some predefined menus as a file menu, edit
  442.         menu or window menu. You can also rename the menubar or
  443.         popup, or sort its entries.
  444.  
  445.  
  446. Lines
  447. ───────────────────────────────────────────────────────────────────────────────
  448.  
  449.         Links are certain objects which are activated when you select a
  450.         menu item or press a button.
  451.         ───────────────────────────────────────────────────────────────────────
  452.            Creating Links    
  453.         If you press  Ctrl+F9  (Link) the Objects Menu popups up. Select the
  454.         kind of object you want to link to this menuitem. This object will
  455.         be executed when this menu item is selected. See chapter 9, section
  456.         creating objects, for all the objects you can link to a menuitem.
  457.  
  458.         If you specified a new object (for example a Dialog box) you can
  459.         edit that object before returning to your menuitem.
  460.         ───────────────────────────────────────────────────────────────────────
  461.            Deleting Links    
  462.         Pressing  Ctrl+F9  (Link) again will delete the link, but the associated
  463.         object is  not  deleted. To delete an object: see chapter Object
  464.         DeskTop, section DeskTop Local Menu.
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474. 6                                                         PtGen Reference Guide
  475.  
  476.  
  477.  
  478.  
  479.  
  480.  
  481.  
  482.  
  483. C            H            A            P            T            E            R
  484. ───────────────────────────────────────────────────────────────────────────────
  485.  
  486.                                                                                             3
  487.  
  488.  
  489.  
  490.                                                           The StatusLine object
  491.  
  492.  
  493.         Change the global statusline by pressing  Alt+F10  (DeskTop Local
  494.         Menu) or just clicking on the background with the left mouse
  495.         button. Then select Statusline.
  496.  
  497.         ■ Mouse users: Use the New, Edit and Delete buttons to insert,
  498.           edit and delete statusline items.
  499.         ■ Keyboard users: You can insert items by pressing  Ins, delete
  500.           items by pressing  Del  and edit items by pressing  Ctrl+F8  (Edit).
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530. Chapter 3, The StatusLine object                                              7
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.  
  539.  
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.  
  548.  
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556.  
  557.  
  558.  
  559.  
  560.  
  561.  
  562.  
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570.  
  571.  
  572.  
  573.  
  574.  
  575.  
  576.  
  577.  
  578.  
  579.  
  580.  
  581.  
  582.  
  583.  
  584.  
  585.  
  586. 8                                                         PtGen Reference Guide
  587.  
  588.  
  589.  
  590.  
  591.  
  592.  
  593.  
  594.  
  595. C            H            A            P            T            E            R
  596. ───────────────────────────────────────────────────────────────────────────────
  597.  
  598.                                                                                             4
  599.  
  600.  
  601.  
  602.                                                              The DeskTop object
  603.  
  604.  
  605. Desktop Local Menu
  606. ───────────────────────────────────────────────────────────────────────────────
  607.  
  608.         Pressing the left mouse button when the mouse cursor is on the
  609.         desktop will popup the Desktop Local Menu. From this popup
  610.         you can gain acces to the statusline edit dialog box, the Objects
  611.         Dialog box, the helptexts menu and the Units Dialog box.
  612.  
  613.         The Reporter menu selection is and will not be not available for
  614.         public release.
  615.  
  616.  
  617.  
  618.  
  619.  
  620.  
  621.  
  622.  
  623.  
  624.  
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643. Chapter 4, The DeskTop object                                                 9
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.  
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678.  
  679.  
  680.  
  681.  
  682.  
  683.  
  684.  
  685.  
  686.  
  687.  
  688.  
  689.  
  690.  
  691.  
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699. 10                                                                      PtGen Reference Guide
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.  
  708. C            H            A            P            T            E            R
  709. ───────────────────────────────────────────────────────────────────────────────
  710.  
  711.                                                                                             5
  712.  
  713.  
  714.  
  715.                                                           The Dialog box object
  716.  
  717.  
  718.         Dialog box objects can be created when creating an application. It
  719.         is possible to create a standalone dialog box too.
  720.  
  721.         To create a standalone dialog box object choose Dialog |New
  722.         from PtGen's main menu. Choose Dialog |Open to read a
  723.         previously saved standalone dialog box. After the standalone
  724.         dialog box is created, you are prompted to specify a filename to
  725.         save the code for this dialog box to.
  726.  
  727.         Dialog box objects for use within a complete application are
  728.         created when you select Define |Dialog box from the Available
  729.         Objects Popup.
  730.  
  731.         This chapter describes how a dialog box object can be constructed.
  732.  
  733.  
  734. The Dialog Local Menu
  735. ───────────────────────────────────────────────────────────────────────────────
  736.  
  737.         You can place objects on the dialog box by pressing  Alt+F10  (Local
  738.         Menu) and selecting an object. Or, for mouse users, click with the
  739.         left mouse button on the background in the location where you
  740.         want your object to appear. The local menu will popup at that
  741.         location.
  742.  
  743.         From this local menu you can either place an object into the dialog
  744.         box or acces the settings for this dialog box. See the next sections
  745.         for details. If you popped up the local menu with the mouse, after
  746.         selecting an object, that object will be put at the position your
  747.         mouse was before the dialog box local menu popped up.
  748.  
  749.  
  750. Dialog settings
  751. ───────────────────────────────────────────────────────────────────────────────
  752.  
  753.         Select settings from the Dialog Local Menu to edit the dialog box.
  754.         The same dialog box pops up as when first creating a dialog box.
  755.  
  756.  
  757. Chapter 5, The Dialog box object                                             11
  758.  
  759.  
  760.  
  761.  
  762.  
  763.  
  764.  
  765.         You can change the name of the dialog box, its title and set the
  766.         helptexts for this dialog box.
  767.  
  768.  
  769. The Dialog subviews
  770. ───────────────────────────────────────────────────────────────────────────────
  771.  
  772.         The next sections comment on the objects you can place on a dialog
  773.         box. Select the appropriate subview from the Dialog Local Menu to
  774.         place that subview on the dialog box. See the section titled Moving
  775.         and Resing subviews on how to change the position of a subview.
  776.         ───────────────────────────────────────────────────────────────────────
  777.                    Button    
  778.         Some buttons you use so often that they are predefined. If you
  779.         select Button from the Local Menu the first entry is for customized
  780.         buttons. The other entries, under the seperator, are predefined
  781.         buttons.
  782.         For customized buttons you can specify its Title and the Command
  783.         it generates when it is selected. You can also specify various
  784.         button flags. The default is bfNormal (no options selected) but you
  785.         can make a certain button the Default one if you click on the
  786.         default option. All bfXXXX constants are supported.
  787.         You can create a helpconstant (see the chapter Helptexts, section
  788.         helpconstants, you don't have to specify this one), a helptext
  789.         which should be displayed on the statusline when this object is
  790.         selected, and a window help text which is displayed when a user
  791.         presses Help (F1). Helptexts are optional, so you don't have to
  792.         specify these three subviews.
  793.         ───────────────────────────────────────────────────────────────────────
  794.               Static text    
  795.         Select Static Text from the Local Menu and enter the text. Specify
  796.         the control characters ÇM (new line) and ÇC (center text) by
  797.         entering first a 'Ç' and then a 'M' or 'C'. PtGen replaces them with
  798.         the appropriate control characters.
  799.         If you leave the text empty and press OK the text view will be
  800.         deleted.
  801.         ───────────────────────────────────────────────────────────────────────
  802.                     Label    
  803.         You can place a label only if there is some object/view which can
  804.         be labeled. So you insert the view to be labeled first, then the
  805.         Label. To create a label Select label from the Dialog Local Menu,
  806.         enter some text and next select an object to link to this label by
  807.         either using the arrow keys and/or Tab/Shift+Tab or by clicking
  808.         on the to-be-labeled view/object with your mouse.
  809.         If you leave the label text empty and press OK the label view will
  810.         be deleted.
  811.  
  812.  
  813. 12                                                                      PtGen Reference Guide
  814.  
  815.  
  816.  
  817.  
  818.  
  819.  
  820.  
  821.         When you label a view, the record identifier (see the subsection
  822.         Creating a record below) will change to the label you specified.
  823.         Note that once a label is attached to a view, it can't be attached to
  824.         another view. If you want a label to reference another view, first
  825.         delete it, then insert a new label with the same name.
  826.         ───────────────────────────────────────────────────────────────────────
  827.                 Inputline    
  828.         The Inputline menu option shows many InputLines. Each of these
  829.         has different characteristics. The online help will tell you more. In
  830.         this section only the standard InputLine is covered.
  831.         After you've selected Inputline, you're prompted to specify the
  832.         maximum length of the inputline, if this inputline is selectable or
  833.         not (not selectable inputlines can be used to display information a
  834.         user may not change) and if you want to validate the contents of
  835.         the inputline before the inputline looses its focus.
  836.  
  837.         If you want to use a validator for this inputline select the validator
  838.         you want from the SpinButtons. Press  Ctrl+F8  (Edit) to edit the
  839.         validator if the Validator spinbuttons are selected. You can specify
  840.         the parameters for the validator and (optionally) the string
  841.         resource identifer which this identifier should use when Error is
  842.         called. If you don't specify an identifier the default sFilterError,
  843.         sRangeError, sRealError and sPictureError are used for
  844.         TFilterValidator, TRangeValidator, TRealValidator and
  845.         TPXPictureValidator respectively.
  846.  
  847.         You can also specify the usual helpconstant (see the section
  848.         helpconstants in the chapter about helptexts, you don't have to
  849.         specify one), the helptext which should be displayed on the
  850.         statusline when this object is selected and the help window text
  851.         which should be displayed when a user presses Help (F1). The last
  852.         three items don't have to be specified.
  853.         ───────────────────────────────────────────────────────────────────────
  854.                      Memo    
  855.         The Memo view is the TMemo object as found in the EDITORS.PAS
  856.         unit. You can specify the same parameters as with InputLine
  857.         except that you can specify a Horizontal or Vertical ScrollBar too.
  858.         ───────────────────────────────────────────────────────────────────────
  859.                Checkboxes    
  860.         After selecting checkboxes you have to specify a list of strings. In
  861.         the dialog box you will see, press Ins to insert an item, Del to
  862.         delete one and  Ctrl+F8  to edit an item.
  863.         For every text you can specify a different statusline helptext.
  864.         ───────────────────────────────────────────────────────────────────────
  865.              Radiobuttons    
  866.         See Checkboxes.
  867.  
  868.  
  869. Chapter 5, The Dialog box object                                             13
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.         ───────────────────────────────────────────────────────────────────────
  877.               Spinbuttons    
  878.         Spinbuttons are one line radiobuttons. Press left or right to change
  879.         to display a different text in a spinbutton. See Checkboxes for how
  880.         to enter a list of strings for Spinbuttons.
  881.         ───────────────────────────────────────────────────────────────────────
  882.                ListViewer    
  883.         A dummy ListViewer object is placed on the dialog box. This
  884.         object is only for layout. Press the code button to specify the
  885.         descendent of ListViewer which you want to insert in the dialog
  886.         box.
  887.  
  888.  
  889. Moving and Resizing subviews
  890. ───────────────────────────────────────────────────────────────────────────────
  891.  
  892.         The subviews in a dialog box can be moved and resized. Keyboard
  893.         users should press  Shift+F5  (Local resize) to move and resize the
  894.         currently selected subview.
  895.         If you want to center the subview horizontally or vertically press
  896.         Alt+F5  to popup the Keyboard positioning menu and choose
  897.         X-Center of Y-Center respectivily.
  898.  
  899.         Mouse users should press the Right mouse button on the to be
  900.         resized subview and hold that button down. The Mouse Local
  901.         Popup pops up. Choose Move or Resize to move or resize the
  902.         subview.
  903.         If you want to center the subview horizontally or vertically choose
  904.         X- Center of Y-Center respectivily from the Mouse Local Popup.
  905.         You can also move multiple views at one. Hold down the right
  906.         mouse button on an empty area and move the mouse to the right
  907.         and down to let a rectangle grow. Every view covered completely
  908.         or partially by this rectangle can be moved if you release the
  909.         button.
  910.         If you press Del, all these views are deleted.
  911.  
  912.  
  913. Changing the Tab-order of the subviews
  914. ───────────────────────────────────────────────────────────────────────────────
  915.  
  916.         The Tab-order or Z-order of the subviews can be changed.
  917.         Keyboard users should press  Alt+F5  to popup the Keyboard
  918.         Position menu. Choose First to make this subview the first view in
  919.         the dialog box. Choose Next when you want to specify the next
  920.         subview from this subview. After choosing Next you should select
  921.         the subview that should be the next one by tabbing to that
  922.         subview and pressing Enter.
  923.  
  924.  
  925. 14                                                                      PtGen Reference Guide
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.         Mouse users should press the Right mouse button on the to be
  934.         repositioned subview and hold that button down. The Mouse
  935.         Local Popup pops up. Choose now First to make this subview the
  936.         first view in the Tab-order sequence. Choose Next to specify the
  937.         next subview after this one. If you choose Next you can now select
  938.         the subvew that should be the next one by clicking on it with
  939.         either mouse button.
  940.  
  941.         REMARK 1: Esc cancels the operation of choosing the next
  942.         subview for both mouse and keyboard users.
  943.  
  944.         REMARK 2: Labels can't be repositioned. They insert themselves
  945.         always after their link, so you don't have to worry about them.
  946.  
  947.  
  948. Creating a record
  949. ───────────────────────────────────────────────────────────────────────────────
  950.  
  951.         For each dialog box a record can be created. Enable the Record
  952.         option in the dialog settings dialog box (popup the Dialog Local
  953.         Menu and select settings). The created record will have the name
  954.         of the dialog box prefixed by 'T' and suffixed by 'Rec'.
  955.  
  956.         Each subview (except of course subviews like TStaticText) has its
  957.         own entry in the record for the dialog box. Each subview defaults
  958.         to some suitable variable name and type.
  959.  
  960.         The variable will be equal to the label of that subview. If the
  961.         subview has no label you have to manually specify the variable
  962.         name.
  963.  
  964.         To change the record entry of a subview, see the section Code
  965.         button below.
  966.  
  967.  
  968. Code button
  969. ───────────────────────────────────────────────────────────────────────────────
  970.  
  971.         Most subview dialog boxes have a Code button. PtGen lets you
  972.         change the generated code. The Code Dialog box shows you the
  973.         variable the allocated subview is assigned to (usually P), which
  974.         subview to allocate (PInputLine for example), the parameters for
  975.         this subview (except R, the first parameter which can't be
  976.         changed), and the entry in the record for this dialog box.
  977.  
  978.         You can change the variable name and the type of the variable.
  979.  
  980.  
  981.  
  982.  
  983.  
  984.  
  985. Chapter 5, The Dialog box object                                             15
  986.  
  987.  
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994.  
  995.  
  996.  
  997.  
  998.  
  999.  
  1000.  
  1001.  
  1002.  
  1003.  
  1004.  
  1005.  
  1006.  
  1007.  
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.  
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041. 16                                                                      PtGen Reference Guide
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050. C            H            A            P            T            E            R
  1051. ───────────────────────────────────────────────────────────────────────────────
  1052.  
  1053.                                                                                             6
  1054.  
  1055.  
  1056.  
  1057.                                                           The Popup menu object
  1058.  
  1059.  
  1060.         The popup object can be edited in the same way as the menubar
  1061.         object. See chapter Menubar for all the details on editing.
  1062.  
  1063.         Press  Ctrl+F5  (Resize) to move the popup to a different location.
  1064.         Press  Alt+F10  (Local Menu) to change the name of this popup.
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097. Chapter 6, The Popup menu object                                             17
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105.  
  1106.  
  1107.  
  1108.  
  1109.  
  1110.  
  1111.  
  1112.  
  1113.  
  1114.  
  1115.  
  1116.  
  1117.  
  1118.  
  1119.  
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126.  
  1127.  
  1128.  
  1129.  
  1130.  
  1131.  
  1132.  
  1133.  
  1134.  
  1135.  
  1136.  
  1137.  
  1138.  
  1139.  
  1140.  
  1141.  
  1142.  
  1143.  
  1144.  
  1145.  
  1146.  
  1147.  
  1148.  
  1149.  
  1150.  
  1151.  
  1152.  
  1153. 18                                                                      PtGen Reference Guide
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.  
  1160.  
  1161.  
  1162. C            H            A            P            T            E            R
  1163. ───────────────────────────────────────────────────────────────────────────────
  1164.  
  1165.                                                                                             7
  1166.  
  1167.  
  1168.  
  1169.                                                                        Commands
  1170.  
  1171.  
  1172.         PtGen assigns numbers to the commands you specify when
  1173.         creating or editing menuitems, statusbaritems and dialogbuttons.
  1174.         They range from 2000..2999. Their number is not important and
  1175.         can change. So refer not to the number but to the command itself
  1176.         as usual in Turbo Vision programming.
  1177.  
  1178.  
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.  
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200.  
  1201.  
  1202.  
  1203.  
  1204.  
  1205.  
  1206.  
  1207.  
  1208.  
  1209. Chapter 7, Commands                                                          19
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.  
  1239.  
  1240.  
  1241.  
  1242.  
  1243.  
  1244.  
  1245.  
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.  
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258.  
  1259.  
  1260.  
  1261.  
  1262.  
  1263.  
  1264.  
  1265. 20                                                                      PtGen Reference Guide
  1266.  
  1267.  
  1268.  
  1269.  
  1270.  
  1271.  
  1272.  
  1273.  
  1274. C            H            A            P            T            E            R
  1275. ───────────────────────────────────────────────────────────────────────────────
  1276.  
  1277.                                                                                             8
  1278.  
  1279.  
  1280.  
  1281.                                                                       HelpTexts
  1282.  
  1283.  
  1284.         There are three things of interest when discussing helptext within
  1285.         PtGen:
  1286.  
  1287.         1. hcConstant, the identifier name of a certain helptext
  1288.         2. Statusline helptext, the text which will appear on the statusline
  1289.            when this context is selected
  1290.         3. HelpWindow text, the help text that will appear when you
  1291.            press  F1.
  1292.  
  1293.         All three types of information are discussed below.
  1294.  
  1295.  
  1296. Helpconstants
  1297. ───────────────────────────────────────────────────────────────────────────────
  1298.  
  1299.         PtGen assigns numbers to the helptexts you create. Numbers
  1300.         range from 2000..2999. They are not static but change whenever
  1301.         needed. If you have to refer to a helpconstant specify a name in
  1302.         the hcConstant field. When PtGen writes the text file to be
  1303.         compiled with TVHC, a proceeding 'hc' if any will be stripped,
  1304.         because TVHC will output a .PAS file with the names you specify
  1305.         prefixed with `hc'.
  1306.  
  1307.         For menuitems the default hcConstant is equal to the specified
  1308.         command except that the preceeding `cm' is replaced by 'hc'. So if
  1309.         the command in your menuitem was cmFile the hcConstant will
  1310.         be hcFile.
  1311.  
  1312.         All hcConstants are listed in the interface section of the unit PtGen
  1313.         creates.
  1314.  
  1315.  
  1316. Statusline helptext
  1317. ───────────────────────────────────────────────────────────────────────────────
  1318.  
  1319.         All the helptext which you've specified are saved in the string
  1320.         resource file STRINGS.TVR. The Hint method of the PtGen created
  1321.  
  1322.  
  1323. Chapter 8, HelpTexts                                                                       21
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.         statusline object uses the current HelpCtx to search and displays
  1332.         the text in STRINGS.TVR.
  1333.  
  1334.  
  1335. HelpWindow text
  1336. ───────────────────────────────────────────────────────────────────────────────
  1337.  
  1338.         If you want to use HelpWindows you have enable the option in
  1339.         the Options section of the Application settings dialog box. You can
  1340.         change the settings of your application by selecting App from the
  1341.         menubar. You also have to specify a helpfile which will be used to
  1342.         save the HelpWindow text in.
  1343.  
  1344.         This helpfile is a plain ascii text file, formatted in topics, that you
  1345.         can edit yourself. You can even add text by hand to this file
  1346.         although you might find the Help dialog box more convenient to
  1347.         do this.
  1348.  
  1349.         To convert the helptexts in this file to a .HLP file you need TVHC,
  1350.         the helpfile compiler that came with your package.
  1351.  
  1352.  
  1353. Help dialog box
  1354. ───────────────────────────────────────────────────────────────────────────────
  1355.  
  1356.         The Help dialog box can be accessed by popping up the Desktop
  1357.         Local Menu and selecting Helptext. The Helptext dialog box
  1358.         comes up. You can now add, edit or delete helptexts. You can even
  1359.         change the values PtGen has assigned although this is not
  1360.         recommended. If you change a value to an already existing one,
  1361.         your input is ignored.
  1362.  
  1363.         If you delete a helptext that is used by PtGen (numbers 2000..2999)
  1364.         and that helptext is still used by a certain view be aware that PtGen
  1365.         will complain about this when you for example acces that view or
  1366.         write it to disk. Doing this is therefore not recommended too.
  1367.  
  1368.         From this dialog box you can also compile the help texts you
  1369.         entered, so you don't need to run TVHC. Press the Compile to
  1370.         compile the helptexts. If there are errors, the compilation process
  1371.         will halt and an error will be displayed.
  1372.  
  1373.  
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380.  
  1381.  
  1382. 22                                                                      PtGen Reference Guide
  1383.  
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390.  
  1391. C            H            A            P            T            E            R
  1392. ───────────────────────────────────────────────────────────────────────────────
  1393.  
  1394.                                                                                             9
  1395.  
  1396.  
  1397.  
  1398.                                                          The Objects Dialog box
  1399.  
  1400.  
  1401.         The Objects Dialog box appears when you select Objects from the
  1402.    See chapter 4 for more    Desktop Local Menu. Press the left mouse button on the desktop
  1403.     information about the    to popup the Desktop Local Menu or press  Alt+F10  (Desktop Local
  1404.   desktop and the desktop    Menu) when there are no other objects on the desktop.
  1405.                local menu    
  1406.         The Objects Dialog box shows you all the previously created
  1407.         objects. From this dialog box you can create new objects or edit,
  1408.         delete or clone existing objects.
  1409.  
  1410.  
  1411. Creating objects
  1412. ───────────────────────────────────────────────────────────────────────────────
  1413.  
  1414.         You always create objects by selecting an object type from the
  1415.         Available Objects Popup. This popup can appear in two ways:
  1416.         when you press  Ctrl+F9  (Link) to link an object to a menuitem or
  1417.         button, or when you press the New button from the Objects Dialog
  1418.         Box. Anyway, all objects you create will appear in the Objects
  1419.         Dialog Box where they are available for editing and deleting.
  1420.  
  1421.         When the Available Objects Popup has appeared you can select
  1422.         between predefined and user defined objects.
  1423.  
  1424.         The predefined objects are: calculator, change directory dialog box
  1425.         and editor. (REMARK: not all predefined objects may currently be
  1426.         implemented or included).
  1427.  
  1428.         The user defined objects are: dialog box, menubar, popup menu
  1429.         and user code. See the chapters Dialog box and Popup for details
  1430.         about the dialog box and popup..
  1431.  
  1432.  
  1433. Editing objects
  1434. ───────────────────────────────────────────────────────────────────────────────
  1435.  
  1436.         Select an object and press the Edit button to edit it. You an also
  1437.         press the right mouse button on a visible object to edit it. Keyboard
  1438.         users may press  Ctrl+F8  (Edit) to edit the currently selected object.
  1439.  
  1440.  
  1441. Chapter 9, The Objects Dialog box                                                          23
  1442.  
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449. Deleting objects
  1450. ───────────────────────────────────────────────────────────────────────────────
  1451.  
  1452.         Select an object and press  Del  button to delete it. You're asked for
  1453.         confirmation, just to be sure.
  1454.  
  1455.  
  1456. Cloning objects
  1457. ───────────────────────────────────────────────────────────────────────────────
  1458.  
  1459.         Select the object to be cloned and press Clone. Currently only
  1460.         dialog boxes can be cloned. Every attribute of the subviews in the
  1461.         dialog box is cloned.
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.  
  1475.  
  1476.  
  1477.  
  1478.  
  1479.  
  1480.  
  1481.  
  1482.  
  1483.  
  1484.  
  1485.  
  1486.  
  1487.  
  1488.  
  1489.  
  1490.  
  1491.  
  1492.  
  1493.  
  1494.  
  1495.  
  1496.  
  1497.  
  1498. 24                                                                      PtGen Reference Guide
  1499.  
  1500.  
  1501.  
  1502.  
  1503.  
  1504.  
  1505.  
  1506.  
  1507. A          P          P          E          N           D          I          X
  1508. ───────────────────────────────────────────────────────────────────────────────
  1509.  
  1510.                                                                               A
  1511.  
  1512.  
  1513.  
  1514.                                                      The Files created by PtGen
  1515.  
  1516.  
  1517.         In this section all files that PtGen creates are described.
  1518.  
  1519.  
  1520. The Source File
  1521. ───────────────────────────────────────────────────────────────────────────────
  1522.  
  1523.         As already said, PtGen creates normally, compilable Turbo Pascal
  1524.         source code. PtGen can read that source code back if you want to
  1525.         re-edit or change the created menubar, statuslines, dialog boxes or
  1526.         helptexts.
  1527.  
  1528.         The form of the source code is a unit which you can use in your
  1529.         program. The main object defined in this unit is a descendent of
  1530.         TPreApp, which is a descendent of TApplication. The Application
  1531.         object PtGen creates does not descent directly from TApplication
  1532.         in this way. The parent object is TPreApp, which is defined in
  1533.         PREAPP.PAS This allows you to place common code for your
  1534.         objects in PREAPP.PAS.
  1535.  
  1536.  
  1537. DEFINES.DEF
  1538. ───────────────────────────────────────────────────────────────────────────────
  1539.  
  1540.         Besides this source code file, PtGen creates several other files. The
  1541.         first file to mention is DEFINES.DEF. PREAPP.PAS is also used to
  1542.         define the conditional code, code that the applications you create
  1543.         may need. For example if you specified that you want to create
  1544.         online help a special file with directives is created which in turn
  1545.         enables certain parts in PREAPP.PAS to be compiled.
  1546.  
  1547.         The file in which the directives are placed is called DEFINES.DEF.
  1548.         This file is included with $I into PREAPP.PAS. Because the
  1549.         compilation of PREAPP.PAS is application dependent, it is
  1550.         recommended that for every application you create, a separate
  1551.         directory is created to which PREAPP.PAS (and PREAPP.INC) are
  1552.         copied.
  1553.  
  1554.  
  1555.  
  1556. Appendix A, The Files created by PtGen                                       25
  1557.  
  1558.  
  1559.  
  1560.  
  1561.  
  1562.  
  1563.  
  1564.         The possible conditional symbols that can be created in
  1565.         DEFINES.DEF are:
  1566.  
  1567.         ■ {$DEFINE Help} When you specified that you wanted to use
  1568.           the Help Window Option (Note that the context-sensitive
  1569.           statusline help can always be used.) If you enabled this option
  1570.           you can create help windows, including cross-references, much
  1571.           like the online Help of TP7.
  1572.         ■ {$DEFINE Editors}            if you specified that you wanted to make
  1573.           use of the Editors unit in your program.
  1574.         ■ {$DEFINE BufferedPrinter} if you specified that you
  1575.           wanted to use the background printing unit.
  1576.  
  1577.  
  1578. STRRESFS.TVR
  1579. ───────────────────────────────────────────────────────────────────────────────
  1580.  
  1581.         PtGen lets you use various string resources for your application. If
  1582.         you have defined seperate string resources for one or for a cluster
  1583.         of releated units, you can add such string resources to your
  1584.         application. When writing the source file for your application all
  1585.         string resource files and identifier files are read and put in one file,
  1586.         called STRINGS.TVR (see below). PtGen stores the filenames of all
  1587.         these string resource files and identifier files in STRRESFS.TVR.
  1588.  
  1589.         This file is only created if you have specified string resources
  1590.         above the standard one (see STRINGS.TVR).
  1591.  
  1592.  
  1593. STRINGS.TVR
  1594. ───────────────────────────────────────────────────────────────────────────────
  1595.  
  1596.         After you have specified which string resources to use, they
  1597.         should be accumulated in one file. That file is called
  1598.         STRINGS.TVR. All statusline helpstrings and all language
  1599.         dependent strings (in ENGLISH.TVR, DUTCH.TVR or other) are
  1600.         saved in STRINGS.TVR. If you specified other string resources in
  1601.         STRRESFS.TVR they will be saved to STRINGS.TVR too.
  1602.  
  1603.         The BBSTRRES unit gives you easy acces to strings stored in this
  1604.         file.
  1605.  
  1606.  
  1607. STRINGS.INC
  1608. ───────────────────────────────────────────────────────────────────────────────
  1609.  
  1610.         In STRINGS.INC all resource string identifiers are accumulated for
  1611.         this application. STRINGS.INC should correspondent with
  1612.         STRINGS.TVR
  1613.  
  1614.  
  1615. 26                                                                      PtGen Reference Guide
  1616.  
  1617.  
  1618.  
  1619.  
  1620.  
  1621.  
  1622.  
  1623. PTGRES.INC
  1624. ───────────────────────────────────────────────────────────────────────────────
  1625.  
  1626.         PTGRES.INC is an include file for a resource file creating program.
  1627.         See the user's manual for how to turn PtGen's Pascal code into a
  1628.         resource file.
  1629.  
  1630.  
  1631. .LOG
  1632. ───────────────────────────────────────────────────────────────────────────────
  1633.  
  1634.         PtGen creates a log file called PTGEN.LOG. You can remove this
  1635.         file anytime you wish.
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641.  
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654.  
  1655.  
  1656.  
  1657.  
  1658.  
  1659.  
  1660.  
  1661.  
  1662.  
  1663.  
  1664.  
  1665.  
  1666.  
  1667.  
  1668.  
  1669.  
  1670.  
  1671.  
  1672. Appendix A, The Files created by PtGen                                       27
  1673.  
  1674.  
  1675.  
  1676.  
  1677.  
  1678.  
  1679.  
  1680.  
  1681.  
  1682.  
  1683.  
  1684.  
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707.  
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720.  
  1721.  
  1722.  
  1723.  
  1724.  
  1725.  
  1726.  
  1727.  
  1728. 28                                                                      PtGen Reference Guide
  1729.  
  1730.  
  1731.  
  1732.  
  1733.  
  1734.  
  1735.  
  1736.  
  1737. A          P          P          E          N           D          I          X
  1738. ───────────────────────────────────────────────────────────────────────────────
  1739.  
  1740.                                                                               B
  1741.  
  1742.  
  1743.  
  1744.                                                      PtGen Techical Information
  1745.  
  1746.  
  1747.         This chapter contains information about PtGen internals,
  1748.         especially about the source file it outputs.
  1749.  
  1750.         When you view the source file PtGen creates, you will frequently
  1751.         see the {@#..#@} structure. The information inside this comment
  1752.         is used by PtGen to speed up file reading and to distinguish
  1753.         between certain parts of the created application.
  1754.  
  1755.         You can edit the source file PtGen creates, but you should conform
  1756.         to the format PtGen outputs and expects when reading such a file.
  1757.         If you want to change code parts, copy them to a unit or program
  1758.         of your own and change them there. Leave the PtGen created code
  1759.         intact.
  1760.  
  1761.  
  1762.  
  1763.  
  1764.  
  1765.  
  1766.  
  1767.  
  1768.  
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776.  
  1777.  
  1778.  
  1779.  
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785. Appendix B, PtGen Techical Information                                       29
  1786.  
  1787.  
  1788.  
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801.  
  1802.  
  1803.  
  1804.  
  1805.  
  1806.  
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814.  
  1815.  
  1816.  
  1817.  
  1818.  
  1819.  
  1820.  
  1821.  
  1822.  
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837.  
  1838.  
  1839.  
  1840.  
  1841. 30                                                                      PtGen Reference Guide
  1842.  
  1843.  
  1844.  
  1845.  
  1846.  
  1847.  
  1848.  
  1849.  
  1850. A          P          P          E          N           D          I          X
  1851. ───────────────────────────────────────────────────────────────────────────────
  1852.  
  1853.                                                                                             C
  1854.  
  1855.  
  1856.  
  1857.                                                                     Error codes
  1858.  
  1859.  
  1860.         PtGen will sometimes give strange error messages. Usually the to
  1861.         be readed file is corrupt or an internal error in PtGen occured.
  1862.         PtGen does a lot of checking mainly for speeding up development
  1863.         by catching errors early. They are generally not meaningfull for
  1864.         ordinary users. Send your log file (PTGERR.LOG) to NederWare if
  1865.         you think an internal error occured.
  1866.  
  1867.         Below an alphabetic list of error messages (not yet complete).
  1868.  
  1869.         Resource file *.TVR could not be found
  1870.  
  1871.         Check if DEFAULT.TVR, ENGLISH.TVR or DUTCH.TVR can be
  1872.         found depending on the language you have choosen (Default,
  1873.         English or Dutch). If DEFAULT.TVR could not be found, you can
  1874.         copy ENGLISH.TVR or DUTCH.TVR to DEFAULT.TVR.
  1875.  
  1876.         You can also set the environment variable PTGINPUT to the
  1877.         directory where these files reside.
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898.  
  1899. Appendix C, Error codes                                                      31
  1900.  
  1901.  
  1902.  
  1903.  
  1904.  
  1905.  
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.  
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918.  
  1919.  
  1920.  
  1921.  
  1922.  
  1923.  
  1924.  
  1925.  
  1926.  
  1927.  
  1928.  
  1929.  
  1930.  
  1931.  
  1932.  
  1933.  
  1934.  
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.  
  1947.  
  1948.  
  1949.  
  1950.  
  1951.  
  1952.  
  1953.  
  1954.  
  1955. 32                                                                      PtGen Reference Guide
  1956.  
  1957.  
  1958.  
  1959.  
  1960.  
  1961.  
  1962.  
  1963.  
  1964. A          P          P          E          N           D          I          X
  1965. ───────────────────────────────────────────────────────────────────────────────
  1966.  
  1967.                                                                               D
  1968.  
  1969.  
  1970.  
  1971.                                                                       File list
  1972.  
  1973.  
  1974.         The READ.ME file contains a complete list of the files included on
  1975.         the distribution diskette. A partial list is included below.
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011. Appendix D, File list                                                                      33
  2012.  
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020.  
  2021.  
  2022.                 Table D.1    
  2023.         Partial file list     File name  Description
  2024.                           PTGENX.EXE     Extended mode version of PtGen (DPMI).
  2025.                           PTGEN.EXE      Real mode version of PtGen.
  2026.                           PTGEN.OVR      The PtGen overlay file (for real mode version
  2027.                                          only).
  2028.                           PTGHELP.HLP    Help file.
  2029.                           PTG USER.DOC   This manual.
  2030.                           PTG REF.DOC    The reference manual.
  2031.                           CHANGES.DOC    Overview of latest changes and additions.
  2032.                           READ.ME        Latest information and complete list of files in this
  2033.                                          distribution.
  2034.                           TUTORIAL.*     Texts for the build-in tutorials.
  2035.                           REGISTER.FRM   Registration form.
  2036.                           PREAPP.PASDefinition of the application object from which the
  2037.                                          PtGen created application object is derived. A
  2038.                                          copy of this file is needed for every application.
  2039.                           PREAPP.INC     Identifier include file for PREAPP.PAS. Use
  2040.                                          PREAPP.INC to change the string resource file
  2041.                                          DEFAULT.TVR, ENGLISH.TVR and DUTCH.TVR
  2042.                           DEFAULT.TVR    Default language strings for all provided units.
  2043.                           DUTCH.TVR      Dutch resource strings for all provided units.
  2044.                           ENGLISH.TVR    English resource strings for all provided units.
  2045.                           BBDLG.PAS      TVision dialog boxes and views, see the reference
  2046.                                          manual or online help for details.
  2047.                           BBFILE.PAS     File I/O primitives, see the reference manual or
  2048.                                          online help for details.
  2049.                           BBSTRRES.PAS   Resource string handling, see the reference
  2050.                                          manual or the online help for details.
  2051.                           BBUTIL.PASPrimitives, see the reference manual or online help
  2052.                                          for details.
  2053.                           BBVALIDATE     Validators, overriding the ones provided in
  2054.                                          VALIDATE.PAS. The validators in the Validate
  2055.                              unit gave an english error message. The validators
  2056.                          in this unit do not, but retreive a resource string so
  2057.                                          you can internationalize your validation.
  2058.                           PTGEN.TPH      Online help which you can include directly in
  2059.                                          your Turbo Pascal IDE or Borland Pascal IDE. It
  2060.                                          covers all supplied units like BBUTIL and
  2061.                                          BBSTRRES.
  2062.  
  2063.  
  2064.  
  2065.  
  2066.  
  2067.  
  2068.  
  2069. 34