home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / vrac / ptgenr1.zip / PTGHELP.HLP (.txt) < prev    next >
Borland Turbo Vision Help  |  1994-08-01  |  60KB  |  887 lines

  1. FBHF.
  2.  Welcome to PtGen's On-line Help
  3. PtGen, a Prototype Generator for Turbo Pascal programs, is a full featured program intended to help you to quickly produce programs, prototypes. A prototype is saved to disk in TP-unit source code format. PtGen can read such a file back for additional editting. H
  4. It's assumed that you are familiar with Turbo Pascal type helpscreens. 
  5. You can learn about the Prototype Generator by following the build-in tutorials, by using this on-line Help system and by consulting the manual. 2
  6. Choose any of the following for more information p
  7.  Product
  8. features
  9.  Machine
  10. requirements
  11.  Contacting
  12. Nederware
  13.  PtGen's
  14. hot-keys
  15.  Mouse
  16. operation
  17.  Product featurs
  18. Product features: 
  19.  build-in tutorials to become quickly
  20.     acquainted with PtGen
  21.  quickly making the most advanced menu
  22.     structures, including complete helptext
  23.     support
  24.  creating of a statusbar
  25.  comfortably creating of dialogboxes
  26.  3D TVTool support
  27.  Machine requirements
  28. What you need: 
  29.  Borland or Turbo Pascal 7.0
  30.  Turbo Vision (included with TP 7.0)
  31.  enough knowlegde of both
  32.  the TVTool package if you want to use the
  33.     3D views or other TVTool extensions
  34.  Contact the author
  35. You can contact Berend de Boer from Nederware, the author of this program by using one of the following electronic addresses: Q
  36.   fidonet: 2:281/527.23
  37.   email: berend@beard.nest.nl
  38.   compuserve: 100120,3121
  39. or by regular mail: P
  40.   Nederware
  41.   c/o Berend de Boer
  42.   Burgerstaaat 22
  43.   5311 CX  GAMEREN
  44.   HOLLAND
  45.  PtGen's hot-keys
  46. Operation of PtGen is consistent throughout the program.  
  47.   Alt+F5   Pop-up local position menu for
  48.            positioning the current object
  49.   Alt+F10  Pop-up local menu
  50.   Ctrl+F7  Delete current object/item
  51.   Ctrl+F8  Edit current object/item
  52.   Ctrl+F9  Link other objects to current object
  53.   Ins      Insert an item
  54.   Del      Delete an item
  55. See also mouse
  56. operation
  57. Ptgen 
  58.  Mouse operation in PtGen
  59.   Left button    Click on background to pop up
  60.                  the local menu
  61.   Right button   Click on object to pop up a
  62.                  menu with actions you can
  63.                  apply to that object or item.
  64.                  Sometimes no menu exist and
  65.                  the right button click goes
  66.                  directly into the edit mode
  67.                  for this object.
  68. See also hot
  69. Ptgen 
  70.  TVTool
  71. The TVTool 2.0 package contains among others 3D widgets for Turbo Vision. J
  72. If you have TVTool you can use PtGen to design complete 3D dialog boxes. q
  73. The author of TVTool is Richard Hansen and he can be reached at compuserve as 70242,3367 or by regular mail at: 3
  74.   PO Box 18571
  75.   Saint Paul, MN  55118-0571
  76.   USA
  77.  File  (Alt+F)
  78.  The File menu offers choices for opening and
  79.  loading existing files, creating new files,
  80.  saving files, and exiting PtGen.
  81.  Edit  (Alt+E)
  82. Edit a new or a loaded application. You may also press Edit (Ctrl+F8). 
  83.  App  (Alt+A)
  84. Set application options like application name, language (dutch or english), if it uses help, etc. 
  85.  File
  86. Open     (F3)
  87. Load a previously saved application. Q
  88. PtGen only accepts source code that conforms entirely to the source it creates. [
  89. You can edit the source code, but be carefull not to introduce not-PtGen compatible code. 
  90.  File
  91. New creates a new application. You are prompted to specify characteristics of this new application. 
  92.  File
  93. Save     (F2)
  94. The Save command saves the application to disk. 
  95. If the file has no name, PtGen opens the Save File As dialog box so you can rename the file and save it in a different directory or on a different drive. 
  96.  File
  97. Exit     (Alt-X)
  98. The Exit command exits PtGen, removes it from memory, and returns you to DOS. `
  99. If you've modified a source file without saving it, PtGen prompts you to do so before exiting. 
  100. Enter the name of the application. Omit the proceeding 'T' (convention of Turbo Pascal) as PtGen will add a T to every objectname when writing the source file. T
  101. The name you enter will become the name of the application object you will create. 
  102.  Default language
  103. When you choose the default language option (the default) you use DEFAULT.TVR and DEFAULT.TXT. 
  104. Copy ENGLISH.TVR or DUTCH.TVR to DEFAULT.TVR when you create only or mostly english or dutch applications. In this manner you don't have to change this option everytime you create a new application. 
  105. You can use the default language option to use a different language
  106. too. Create a DEFAULT.TVR and DEFAULT.TXT containing the strings and texts in the language you wish. 
  107.  English language
  108. Use the english language for this application. t
  109. The file ENGLISH.TVR will be used as the base file for STRINGS.TVR, the string resource file for this application. 
  110.  Dutch language
  111. Maak gebruik van de nederlandse taal voor deze applicatie. q
  112. De file DUTCH.TVR zal worden gebruikt als basis voor STRINGS.TVR, de string resource file voor deze applicatie. 
  113.  Settings
  114. Change dialog box settings like its name and title. 
  115.  Listviewer
  116. Place a dummy listviewer on this dialog box. The created code can be changed by pressing the code button in the listviewer edit dialog  box. 
  117.  Spinbutton
  118. Place a spinbutton (one line radiobutton) on its owner. 
  119.  Radiobuttons
  120. Place a radiobutton view on its owner. 
  121.  Checkboxes
  122. Place a Checkboxes view on its owner. 
  123.  Memo
  124. Place a memo view on its owner. 
  125.  Label
  126. Label an already inserted view. After you have specified the labeled text, you should select the view to be labeled. e
  127. Select that view by clicking on it with the mouse button or using Tab/Shift-Tab and pressing Enter. 
  128.  Static text
  129. Place text on its owner. 
  130.  Button
  131. Create a button yourself. 
  132.  Buttons
  133. Place a button on the current dialog box. Choose between user defined and predefined as OK or Cancel. 
  134. You are prompted to specify a string resource file (.TVR) and a identifier file (.PAS or .INC). ~
  135. The strings from in the resource file should be saved as 'Strings'. The strings are copied into the current string resource. >
  136. The identifiers are copied into the current identifier file. T
  137. In this way you can quickly merge different string resources and identifier files. 
  138.  App configuration
  139. Specify configuration settings for the application you are creating. 
  140.  Code
  141. Change some parameters of the code that will be generated for this view as its pointer type and parameters. 
  142.  Range validator
  143. A range validator checks the input the user types and restricts it to longints only which should be between the specified Min and Max value. 
  144.  Inputline
  145. Access to various inputlines, as the standard TInputLine and the PtGen TXInputLine 
  146. PtGen now supports the TbxXXXXLine inputlines. They are part of TVTool and you need TVTool to be able to compile the resulting program. 
  147.  Validator
  148. Add a validator to an already inserted inputline. You can choose between different validators.  L
  149. Select a validator, next select the inputline which needs to be validated. 
  150. Note that already existing validators are  disposed. The Validator option is meant to change the validation of an inputline or to upgrade inputlines of previous versions of PtGen. 
  151. Enter the name of the source helptext file for this application. Usually this will be something like MYHELP.TXT. K
  152. You should call TVHC to convert this file to the corresponding .HLP file. 
  153. Specify size of the editorbuffer in paragraphs (1 paragraph = 16 bytes). D
  154. Usually a value of 2 000 will suffice (16 x 2 000 = 32 000 bytes). 
  155.  (System) menu    (Alt-Spacebar)
  156. The System menu appears on the far left of the menu bar and is represented by the 
  157.  symbol. <
  158. When you pull down the 
  159.  menu, you see the system command:     
  160.   About
  161. About ProtoType Generator
  162. When you choose the About command from the 
  163.  (System) menu, a dialog box appears, showing copyright and version information. 8
  164. Press Esc, click OK, or click Cancel to close the box. 
  165.  File
  166. Save As...
  167. Give a new name to the source file for the current application. Before writing, PtGen checks if a file with such a name exist. If so, you're prompted if you want to overwrite it. When you choose Yes, the previous file is saved with the .BAK extension. If you choose No, you're prompted for another filename. 
  168.  Tutorial  (Alt-T)
  169. PtGen contains three online tutorials: H
  170.  Creating
  171. menubars
  172.  Creating
  173. statuslines
  174.  Creating
  175. dialogboxes
  176. They quickly and conveniently learn you to work with PtGen. Choose the Introduction first to learn the basics of working with PtGen. 
  177.  Tutorial
  178. Introduction
  179. Introduction to working with PtGen for mouse and keyboard users. You learn about PtGen's mouse buttons and about its hotkeys. 0
  180. You are introduced to some basic concepts too. 
  181.  Tutorial
  182. Statusline
  183. Learn conveniently to create statuslines in PtGen. 
  184. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced concepts. 
  185.  Tutorial
  186. MenuBar
  187. Learn conveniently to create menubars in PtGen. 
  188. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced concepts. 
  189.  Tutorial
  190. Dialogbox
  191. Learn conveniently to create dialogboxes in PtGen.  
  192. This tutorial is the same as found in the manual except that the manual contains a bit more explanation and discusses some more advanced 
  193. Total number of columns for this TListViewer object. 
  194.  Reporter
  195. Not included in this version of PtGen. 
  196.  Schema creation
  197. Create a semantic abstraction hierarchie. 
  198. Not included with this version of PtGen. 
  199.  Helptext
  200. Add, edit or delete helptexts. You can change the statusline hints as well as the helpwindow text. G
  201. You can also use it to change the constant values of the hcConstants. 
  202.  Objects
  203. Display all the objects which are created for this application. You can add, edit or delete objects. 
  204.  Statusline
  205. Edit the statusline. 
  206.  Validator error text
  207. Specify the resource string identifier which contains the custom warning string for this validator. 
  208. Specify only an identifier if you want to override the default. If you want to change the default message itself, change ENGLISH.TVR (or any of the other string resource files like DUTCH.TVR). 
  209.  Dialog settings
  210. Change dialog settings like its name and title. You can specify the help text too which should appear when the Help button (if inserted) is pressed. 
  211.  Button
  212. In this dialog box you can define the characteristics of a button. *
  213. All button flags (bfXXXX) are supported. 
  214.  Lefthand
  215. Specify the local variable the view is assigned to. 
  216. Before the view is inserted into its owner it is first assigned to a variable. You can use this variable to acces the view later on. 
  217.  Parameters
  218. Specify the parameters for this view. For some views you can only specify the extra parameters. The fixed parameters are not visible. h
  219. A fixed parameter is for example the Bounds of a view. This is always needed so you can't change that. 
  220.  Pointer name
  221. The object type that should be allocated. For example for an inputline you can specify 
  222.   PRealInputLine
  223. PtGen will in that case not write code to insert an inputline into its owner but to insert a RealInputLine. PtGen will write something like: "
  224.   New(PRealInputLine, Init(..));
  225.  Helptext
  226. Enter the helptext which should be displayed as hint on the statusline when this item is  selected. 
  227.  Help window
  228. The help window object is meant for linking a help window to a command. @
  229. After the command is executed, a defined  help window pops up. 2
  230. The help windows are the standard help  windows. 
  231. You can insert, edit or delete objects. *
  232. * Insert an object by pressing Ins or by 
  233.   clicking on the New button.
  234. * Edit an object by selecting it and pressing -
  235.   Ctrl+F8 or by clicking on the Edit button.
  236. * Delete on object by selecting it and 5
  237.   pressing Ctrl+F7 or by clicking on the Del button.
  238. You can insert, edit or delete statusline items. -
  239. * To insert, press Ins or click on the New      
  240.   button
  241. * To edit, select the item and press Edit (
  242.   (Ctrl+F8) or click on the Edit button
  243. * To delete, select the item and press Del or 
  244.   click on the Del button
  245. Insert an item. 
  246. Delete an item. 
  247. Enter the text which will be displayed on the statusline. D
  248. Leave empty if you don't want text displayed for this status item. 
  249. Examples: 
  250.   ~F1~ Help
  251.   ~Alt+X~ Exit
  252. Enter the keycode to generate the command which you will enter below. Valid keycodes are kbF1, kbF2, kbAltA etc. K
  253. You have to specify a key code. If you don't want a key, specify kbNoKey. 
  254. Command to generate when keycode is pressed. 
  255. Enter the text to display for this item. Surround the hotkey with tildes (~). 
  256. Command to generate when this item is selected. This command will be listed in the interface section of the unit you create so you can use it in your programs. F
  257. TIP: if you want this menuitem to behave as a DosShell just type in: 
  258.   cmDosShell,
  259. add some helptexts (if you want) and press  Enter. 
  260. Enter the helptext which should be displayed on the statusline when this item is selected. 
  261.  hcXXXX
  262. Enter the name which will be used to refer to this particular statusline helptext and helptext window. This is useful for crossreferencing. 
  263. When no hcConstant is specified a default one is created. The default one consists of a 'H' + the value of the helpcontext. For example: H2022 or H2072. 
  264. You can modify the stringslist by clicking on the New/Edit/Del buttons or by pressing Ins, Edit (Ctrl+F8) or Del. 
  265. Enter the static text you want to display. You may enter the ^C and ^M directives by typing  first a '^' than a 'C' or 'M'. 9
  266.   ^C will center the text
  267.   ^M will go to the next line
  268. Characters lower than ascii 32 are not supported. 
  269. Enter the text for the label. Characters surrounded by tildes (~) are highlighted. 
  270. Enter the text to display on the button. You can use tildes (~) to highlight certain characters. 
  271. Command to generate when button is selected. command will be listed in the interface section of the unit you create so you can use it in your programs. 
  272.  Code dialog box
  273. This dialog box lets you change the code that will be generated for the selected subview. 
  274.  Menuitem dialog box
  275. Edit this menuitem by filling in the various fields. 7
  276. Notes: * Leave all fields empty if you want a divider 
  277.   line.
  278. * Leave the Command and Param fields empty if  
  279.   you want to create a submenu
  280.  Unitnames
  281. Insert, edit or delete units by pressing Ins, Edit (Ctrl+F8) or Del respectively. #
  282. Or press the appropriate buttons. 
  283.  Units dialog box
  284. You can insert, edit or delete the units that will appear as the last units in the implementation uses clause in the created unit. 
  285. In this manner you can `import' your views into the created code. Press the code button when you create a view (for example an inputline) to change the generated code. 
  286.  Units
  287. Specify units to be included in the implementation clause of the to be created unit. q
  288. If you make use of the user generated code you usually need to include units of your own which define the view. 
  289.  STRINGS.TVR
  290. The file STRINGS.TVR contains all strings for this application including the statusline hints. Q
  291. Using string resources internationalizing your application becomes much easier. ;
  292. Use the BBStRRes unit for easy acces to string resources. 
  293.  Cluster Dialog box
  294. Enter Cluster item string including its hint and a helptext to be shown when Help (F1) is pressed. 
  295.  HelpItems
  296. Insert, edit or delete helpitems. q
  297. You can change the identifier (hcConstant), the value of the hcConstant, the helptext and the help window text. 
  298.  Calculator
  299. Use the calculator object with your application. This is the same calculator as found in CALC.PAS which came with your Borland package. 3
  300. It should be somewhere in the examples directory. 
  301.  Center Y
  302.  Center X
  303.  Make First
  304. Make this view the first view (lowest in Z-order) of this dialog box. 
  305.  Specify next view
  306. Specify the view that should come next after the current view. With this option you can change the Tab/Shift-Tab path through your  dialog box. \
  307. Normally, new views are appended at the end, i.e. they are reached last when pressing Tab. 
  308. Enter the name of the dialog box while omitting the usually preceding 'T'. PtGen adds a 'T' when writing the source file. J
  309. This name will be exported in the interface section of the created unit. 
  310. Enter the title which will appear at the top of the dialog box. All characters, up to 30, should be supported. 
  311.  Strings  (Alt-S)
  312. Edit the string resources for this application. This string resource editor for Turbo Vision is very much like the Windows resource editor. E
  313. Strings are saved in .TVR files, identifiers in .PAS or .INC files. 
  314.  String resource files dialog box
  315. This is the string resource files main dialog. You can add string resource files, delete or edit them. g
  316. When your application is saved, one big string resource file is created with the name  'STRINGS.TRV'. 
  317.  String resources file list
  318. This is the main list of all the string resource files this application uses. z
  319. You can add, delete or edit files by pressing Ins, Del or Edit (Ctrl+F8) or by clicking on the New, Del or Edit buttons. 
  320.  [ New ] 
  321. A file dialog box will pop up to help selecting a string resource file and a identifier file. 
  322.  [ Edit ] 
  323. After choosing edit, the selected string resource file can be editted. <
  324. Strings with identifiers can be added, edited, or deleted. 
  325.  [ Delete ] 
  326. The selected string resource file is deleted from the files list. The copy on your disk is not deleted. 
  327.  Resource strings 
  328. You can add, change or delete strings in this string resource file. This file will be included in the main string resource file (STRINGS.TVR) for this application. 
  329.  Edit a resource string
  330. You can add, edit or delete strings by pressing Ins, Edit (Ctrl+F8) or Del respectively or by clicking on the New, Edit or Delete buttons after you have selected an item. d
  331. For each item you can specify the name of the constant, the value of that constant and the string. H
  332. NOTE: The value of the constant should be unique for this application. 
  333. Insert a string. You have to specify constant name, value and the string itself. 
  334. Edit a string. You can change the name of the constant, its value and the string itself. 
  335. Delete the selected string. 
  336.  Resource String
  337. You can edit the name of the constant of this string, the value of the constant and the string itself. 
  338.  Resource Constant Name
  339. Specify the constant name. This name will be put into the include file 'STRINGS.INC'. This file is created when you save your application. t
  340. For example, when you specify as name sOutOfMemory and as a value for this constant 100, the output will be: const 
  341.   sOutofMemory = 100;
  342. To discriminate between other constants and string recource constants the 's' prefix is suggested. 
  343.  Resource Constant Value
  344. Specify the constant value. This value will be put into the include file 'STRINGS.INC'. This file is created when you save your application. t
  345. For example, when you specify as name sOutOfMemory and as a value for this constant 100, the output will be: const 
  346.   sOutofMemory = 100;
  347. NOTE: Don't use values within the PtGen value range (1000..3999). All texts are stored in one string resource file so each string should be assigned a unique identifier. 
  348.  Resource string
  349. Specify the resource string itself. You can embed %d, %s or other format specifiers. /
  350. A maximum of 255 characters can be specified. 
  351.  Changes
  352. Pop up a window containing changes.doc, a  document which describes all changes/new  things for this release. 
  353.  TInputLine
  354. The TInputLine view is the normal TurboVision view. Full validator support is provided. 
  355.  Objects dialog box
  356. The objects dialog box shows all objects defined for this application. You can edit or delete  the listed objects or insert new objects. 
  357.  Picture validator
  358.  Real validator
  359. A real validator checks if the entered string corresponds to the TurboPascal real type. 
  360. Let the validator do the DataSize, GetData and SetData methods. 
  361.  TbxLongEdit dialog box
  362.  Procedure call
  363. Enter the name of a procedure to call.  Parameters may be included between the familiar parens. 
  364. Examples: (
  365.   foo
  366.   foo(a, b)
  367.   foo('Hello world.')
  368. Leave the semicolon out. 
  369.  File menu
  370. Insert the standard File menu using the StdFileMenuItems call at the current menu level. 
  371.  Procedure call
  372. Link a procedure to this object. After you have choosen this object, you are asked to specify a procedure name. 
  373.  Compile help file
  374. All help texts are compiled to a .hlp file. Compilation stops after the first error. 
  375.  Dialog|Open
  376. Read a previous saved single dialog. 
  377.  Dialog|Create
  378. Create a single dialog without creating a whole application. You don't have to choose File|New but can directly execute Dialog|New 
  379.  Dialog  (Alt-D)
  380. Acces to dialog only functions. No application is created. .
  381. Only a single dialog source file is created. 
  382. In this operation mode, PtGen resembles DlgDsn in the way that only dialogs can be created and written. However, you retain the full editing power of PtGen. 
  383. Use a function of a DLL in your application. 
  384. In the protected mode version of PtGen you can directly acces this function. The real mode  version can write the code to access a DLL only. 
  385.  Popup menu
  386. Create a complete popup including full helptext and statusline hint support. 
  387.  Status item dialog box
  388.  Identifier
  389. Fill in a record identifier. Initially this record identifier is equal to the label of this view. 
  390. This identifier is written in the record structure for this dialog box which can subsequently be used by GetData and SetData. 
  391.  Record identifier type
  392. Enter the record identifier type. Most of the time this type is automatically provided by the view itself, but you can override this. 
  393.  Center X
  394. Center this view horizontally within its owner's boundaries. 
  395.  Center Y
  396. Center this view vertically within its owner's boundaries. 
  397.  Create a record
  398. Create a record for this dialog box for use with GetData and SetData. $
  399. The created record is of the form: e
  400.   <dialog name>Rec = record
  401.     <identifier1> : <type1>;
  402.     <identifier2> : <type2>;
  403.     ...
  404.   end;
  405. The subviews know their types. If you have labeled the subviews their identifier will be equal to their label. You can override this default settings though. 
  406.  3D dialog box
  407. Create a three dimensional dialog box with three dimensional subviews. You need TVTool 2.0 to compile such programs. 
  408.  ValidChars
  409. Enter the set of all characters the user can type. For example to allow only numeric digits, type 
  410.   '0'..'9'
  411. To allow only uppercase characters type 
  412.   'A'..'Z'
  413.  Clone
  414. Create an almost identical copy of the current selected object. 
  415.  Picture
  416. Enter the format for the type of string the user has to enter. A picture may consist of the following characters: (note that / stands for a curlet brace) -
  417. Type of character   Character   Description 
  418.   Special                #      Accept only a digit
  419.                          ?      Accept only a letter (case-insensitive)
  420.                          &      Accept only a letter, force to uppercase
  421.                          @      Accept any character
  422.                          !      Accept any character, force to uppercase
  423.   Match                  ;      Take next character literally
  424.                          *      Repetition count
  425.                                 A number after the '*' specifies how many
  426.                                 the next character should be repeted
  427.                          []     Option
  428.                          //     Grouping operators
  429.                          ,      Set of alternatives
  430.   All others                    Taken literally
  431. Examples (from the TVTool package): %
  432. - unsigned int with optional commas 
  433.     #[#][#]*/[;,]###/
  434. - dollars, with comma and optinal dollar sign 
  435.     [$]*#./##,00/
  436. - phone number with optional area code 
  437.     [(###) ]###-####
  438. - filename (no path) with extension 
  439.     /&*7[&]/./*3[&]/
  440.  None
  441. Don't use a validator. 
  442.  Filter validator
  443. Add the TFilterValidator to this inputline. 
  444.  Range validator
  445. Add a range validator to this inputline. 
  446.  Real validator
  447. Add a real validator to this inputline to let the user input a TurboPascal real type. b
  448. The real validator is identical to the RangeValidator except that a real range can be specified. 
  449.  Picture validator
  450. Add the TPXPictureValidator to this inputline. 
  451.  TXinputLine
  452. The TXInputLine is defined in BBDLG.PAS, a unit that came with your PtGen package. P
  453. TXInputLine supports the word left and right  (Ctrl-Left and Ctrl-Right) keys. 
  454. Cut & Paste is also possible. 
  455.  voFill
  456. Fill in literal characters as the user types. 
  457.  Validate on append
  458. Set if you want to validate on append only. This option is there to save your users from some unexpected, although logical, behaviour. m
  459. An example might clarify this. Let your picture be $##.##. Let this option be on. If your user has entered  
  460.   $23.
  461. he can place the cursor on '2' and enter a 'a' so the input becomes     
  462.   $2a3.
  463. This is valid because you specified that the input should be checked on append only. If you have turned this option off, this could not happen. But, assuming the original input, if the user places his cursor on the '2' and wants to delete it, that will not be possible, because the then existing string violates the picture. The user can only delete characters in this case when he starts deleting them at the end of the input using backspace. 
  464. Your choice. 
  465.  TbxEditLine
  466. The TbxEditLine is part of TVTool. You need TVTool to compile the unit that PtGen will write. 
  467.  InputLine Dialog Box
  468.  MaxLen
  469. Specify the maximum number of characters one can type in this inputline. 
  470.  EditLine Dialog Box
  471. EditLine Dialog Box. 
  472.  Minimum allowed value for this real.
  473.  Maximum value allowed for this real.
  474.  TbxByteEdit
  475. Insert TVTool's TbxByteEdit inputline. 
  476.  TbxIntegerEdit
  477. Insert TVTool's TbxIntegerEdit inputline. 
  478.  dfRequired
  479. Field entry is required. 
  480.  dfRJustify
  481. Trim and right justify result. 
  482.  dfLJustify
  483. Trim and left justify result. 
  484.  dfTrim
  485. Remove leading and trailing spaces from result. 
  486.  Hide
  487. Typed characters are not visible on the screen, instead the HideChar (default '*') character is written of any typed character. 
  488.  dfDefaults
  489. Use default values if available. Currently (TVTools 2.00) only applicable for use with the TbxDateEdit inputline to set a specified day, month or year to the current day, month or year (if SetDateDefaults has been called). 
  490.  Mask
  491. Specify the mask to use for this inputline. the mask characters are: N
  492.   X   any character
  493.   U   any character, force to uppercase
  494.   L   any character, force to lowercase
  495.   a   alpha numeric character only
  496.   u   alpha numerIc character only, force to
  497.       uppercase
  498.   l   alpha numeric character only, force to
  499.       lowercase
  500.   #   numbers, minus
  501.   9   digit only
  502.   &   hexadecimal numbers
  503.   @   dates
  504. Examples: 
  505.   Date:
  506.   99/99/9999
  507.   Phone number:
  508.   (999) 999-9999 [9999]
  509.   Money:
  510.   $#####.##
  511.   Hexadecimal:
  512.   &&&&
  513.  TbxRealEdit Dialog Box
  514. Insert a TbxRealEdit inputline in this dialog box. <
  515. You need the TVTool package to compile the resulting file. 
  516.  TbxRealEdit
  517. Insert TVTool's TbxRealEdit inputline. 
  518.  TbxLongEdit
  519. Insert TVTool's TbxLongEdit inputline. 
  520.  TbxDateEdit dialog box
  521.  Date picture
  522. In the date picture teh characters 'y', 'Y', 'm', 'M', 'd' and 'D' are used to specify the positions of the year, month and day in the input string. p
  523. Tne only editable characters in the input line will be in the positions indicated by these special characters. 
  524. Examples: $
  525.   MM/DD/YY 
  526.   mm/dd/yyyy
  527.   dd/mm/yy
  528. If dfDefault is set, missing data will be filled in using DefaultYear, DefaultMonth and DefaultDay (set these using SetDateDefaults). 
  529.  TbxDateEdit
  530. TbxDateEdit implements an input line for formatted dates. ?
  531. You need the TVTool package to compile the resulting program. 
  532.  StatusDef
  533. Insert, edit or delete a status definition. 
  534.  StatusDef dialog box
  535.  Selectable
  536. Set if view should be selectabe. 
  537.  ofValidate
  538. Set if the view should validate itself before giving up its focus. 1
  539. A view can retain the focus if it is not valid. 
  540.  ofFramed
  541. Set this option if you want the view to be framed. 
  542.  TextViewer
  543. After selecting this menu item, you are  promted for a file name. &
  544. This file will be shown in a window. 
  545.  HistoryID
  546. A history ID is necessary to give an inputline a history of what has been typed in the  inputline. Different inputlines can share the same ID, so they have the same history. g
  547. Type either a numeric value or a constant. If you type a constant, a value is automatically assigned. 
  548. Examples: 
  549.  1000
  550.  hsUserName
  551.  TVToys
  552. TVToys is a shareware package provided by Peter Brandstr
  553. Email: 
  554.   d91-pbr@nada.kth.se
  555. Snail mail: K
  556.   Peter Brandstr
  557.   Roslagsgatan 10
  558.   S-113 55 Stockholm
  559.   Sweden, Europe
  560.  Window menu
  561. Insert the standard Window menu using the StdWindowMenuItems call at the current menu level. 
  562.  Edit menu
  563. Insert the standard Edit menu using the StdEditMenuItems call at the current menu level. 
  564.  Sort menuview
  565. Sort the currently selected menuview (either the horizontal menubar or a vertical list of menu items). e
  566. Use this option when menu items cannot be  logically grouped. An alphabetical sorting is best than. 
  567.  Menu name
  568. Change the name of this menubar or popup. 
  569.  Menubar
  570. Create a new menubar object, use for example when you want multiple menubars. v
  571. Tip: if you want different 'versions' of the same main menubar, just clone the main menubar and change the new copy. 
  572.  Which help window dialog
  573. Enter the information where the to be shown help window can be found. 
  574.  Help filename
  575. Enter the help file to use. If you leave this one empty the application help file will be used. g
  576. The application help file is the one you have specified in the Application configuration  dialog box. 
  577.  hcXXXX or value
  578. Enter the help identifier or value which refers to the to be shown help screen. 
  579.  Remove link
  580. Remove the current link between this command and an object? O
  581. Only the link is removed. To delete the object, go to the Objects dialog box. 
  582.  Main file
  583. If you create a new program using PtGen, you previously had to copy the example main from the manual. Now such an example main is  written to a fil you specify. \
  584. You need to write such a main program fil only once. You almost always customize it later. 
  585.  Resource file
  586. Write the main resource creating program. This is essentially equal to the example main resource file as found in the manual. U
  587. You likely create this file once for every new  application and customize it later. S
  588. The created program should be compiled every time you want to update the resource 
  589. When it is called, it creates a  resource file and calls the procedure in  PTGRES.INC to put all objects created with PtGen in this resource file. 
  590.  TVTool Box ID
  591. The TVTool Box specific views each have an ID field. This ID field is for example used to  dynamically enable/disable a view. l
  592. You can either type a number or a constant, in  which case a unique number automatically will be assigned. 
  593. Example: 
  594.   1200
  595.   idNameOfHusband
  596. are both valid inputs. 
  597.  File Dialog Box
  598.  User code
  599. Enter the Pascal code to execute. Remember that your code is only checked when you compile the program.  U
  600. You can edit the code in the file PtGen creates if you inadvertedly make a mistake. "
  601. Your code is written as follows: P
  602.   procedure PC<number>;
  603.   <here follows your code exactly as you 
  604.    typed it>
  605. So you can create any code you want 
  606.  User code
  607. Define some code yourself. Maximum limit of code size is 4K (4096 characters including en-of-line). 
  608. Example 1: #
  609.   begin
  610.     ProcedureCall;
  611.   end;
  612. This is simple code to call the procedure  ProcedureCall. Any kind of code is permitted, including type and var definitions. 
  613. Example 2: I
  614.   var
  615.     i : integer;
  616.   begin
  617.     i := 0;
  618.     ProcedureCall(i);
  619.   end;
  620.  Help
  621. Enable this option if you want to use helptexts in your application. 
  622. Enabling this option will cause PtGen to put the Help directive in DEFINES.DEF which will cause the help code in PREAPP.PAS to be compiled. 
  623.  Editor
  624. Enable if you want to use the Editors unit in your application. 
  625.  Bufferend Printer
  626. Not supplied with this release. 
  627.  3D Turbo Vision
  628. Enable to support the TVTool package of Richard Hansen. TVTool lets you create Three Dimensional dialog boxes. 
  629.  HeapViewer
  630. If this option is enabled the HeapViewer from the Gadgets unit (/bp/examples/dos/tvdemo) is included in the source of this program. 
  631.  Clock
  632. If this option is enabled the Clok from the Gadgets unit (/bp/examples/dos/tvdemo) is included in the source of this program. 
  633.  TVToys
  634. PtGen provides limited TVToys support. Your application descends normally from TPreApp which descends from TApplication. r
  635. If you enable this option TPreApp will descend from TVToy's ToyApp linking in as many toys as defined in ToyCfg. 
  636. You want TVToys support for its extended  HelpFile unit (and more of course). For example, with TVToys you have Alt+F1 (previous help  screen abilities). 
  637.  You're in Point mode now
  638.  Mouse users
  639.  -----------
  640.  Select an object by clicking on it.
  641.  Keyboard users
  642.  --------------
  643.  Select an object with the arrow or
  644.  Tab/Shift-Tab  keys and press Enter.
  645.  Dialog box
  646. Mouse users: 
  647.  press the left mouse button on an
  648.    uncovered area to pop up a popup menu from
  649.    which you can select a view (inputline or
  650.    button) to place on the dialog box.
  651.  press the right mouse button on a subview
  652.    to pop up a popup menu to edit/delete/etc.
  653.    that subview.
  654.  press the right mouse button on an
  655.    uncovered area to designate an
  656.    area (a rectangle will start to grow as you
  657.    move the mouse) of subviews to move to
  658.    another place or to delete (press Del
  659.    afterwards).
  660. Keyboard users: 
  661.  press Alt+F10 to pop up a popup menu from
  662.    which you can select select a view
  663.    (inputline or button) to place on the
  664.    dialog box.
  665.  press Shift+F5 to move/resize a subview.
  666.  press Alt+F5 to reposition a subview
  667.    (change Z-order) or to center it.
  668.  MenuBar/Popup
  669. You can insert, edit or delete items using the keyboard. 
  670.  press Ins to insert an item before the
  671.    current selected item
  672.  press Edit (Ctrl+F8) to edit the current
  673.    selected item
  674.  press Del to delete the current selected
  675.    item
  676.  press Local Menu (Alt+F10) to show a
  677.    pop-up menu from which you can change the
  678.    menubar/popup's name, sort the current
  679.    menu view or to insert a complete file/
  680.    edit/window menu
  681.  DeskTop
  682. Mouse users 
  683.  Press the *left* mouse button to show
  684.    popup the desktop local menu from which
  685.    you can access the help text dialog box,
  686.    objects dialog box and more.
  687.  Press the *right* mouse button to access to
  688.    the Desktop edit dialog box to change the
  689.    desktop appearance
  690. Keyboard users 
  691.  press Alt+F10 to popup the deskop local
  692.    menu to access the help text dialog box,
  693.    the objects dialog box and more.
  694.  press Ctrl+F8 to edit the desktop.
  695.  Welcome to PtGen's online tutorial
  696. PtGen's tutorials are intended to give you a quick start in operating PtGen. This part of the tutorial serves as an introduction to the most import concepts in PtGen. (
  697. WARNING: the tutorials are not bullet-proof and can easily be distorted by not doing exactly what you are asked to do. Pressing Help (F1) will not distort the tutorial. So if you do not know what PtGen is you can press Help (F1) now to learn more about PtGen. Then proceed to read this tutorial g
  698.  General guidelines for using PtGen's tutorials
  699. Constantly text will be displayed in the background to guide you through operating PtGen. The same applications as in the user's manual are created, and you will find more explanatory material there. (
  700. There are three tutorials. They cover: S
  701.  creating of statuslines
  702.  creating of menubars
  703.  creating of dialog boxes
  704.  General PtGen ideas/usages
  705. Everything in PtGen can be considered an object or an item. You apply operations on these objects/items by first selecting them. In PtGen several keys or mouse-buttons have a special meaning. They are: 
  706.  Mouse users
  707.  -----------
  708.    Leftbutton    select object/item or popup a local menu if you click
  709.                  on the background
  710.    Rightbutton   popup menu with actions you can apply to a object or
  711.                  item
  712.  Keyboard users
  713.  --------------
  714.    Alt+F5   Pop-up local position menu for
  715.             positioning the Z-order of the
  716.             current object
  717.    Shift+F5 Move the current object
  718.    Ctrl+F5  Move the current dialog or popup
  719.    Ctrl+F7  Delete current object/item
  720.    Ctrl+F8  Edit current object/item
  721.    Ctrl+F9  Link other objects to your object
  722.    Alt+F10  Pop-up local menu
  723.    Ins      Insert an item
  724.    Del      Delete an item
  725. OK, now you now enough to start with the first tutorial: creating of statuslines. Select Statusline from the Tutorial menu.                                                                                        
  726. Note: For every application (see the user's manual too) you have to create a separate directory and copy PREAPP.PAS to it. In the current directory are all PtGen created files saved. Be sure that you are in a new directory now! Else exit and start this tutorial again. B
  727.   To create a new application: select New from the
  728.   File menu.
  729. After that you will be prompted to specify some parameters for this application.                                                                                                                                                                   
  730.  Enter as name for the application: SampleApp. Omit the preceding 'T'.
  731.    PtGen will add a 'T' to every name when creating a source file
  732.  Choose the English language
  733.  Enable the help option and enter as name for the helpfile: sample.txt.
  734.    Specify never the compiled (.HLP) version but the text file (.TXT)
  735.  That's it. Select OK to close this dialog box
  736. Press Edit (Ctrl+F8) or select Edit from the menubar to start editing your application. 
  737. Popup the local menu for your application by pressing Local Menu (Alt+F10) or clicking on the background with the left mouse button and holding that button down. 
  738. Choose statusline from this menu. 
  739. On the right side of the screen is now the statusline edit dialog box displayed. This dialog box represents the statusline. You can insert, edit or delete statusline definitions and items by pressing Ins, Ctrl+F8 and Delete respectively. 
  740. Press Tab to go to the Keys for the selected status definition, press the down arrow key and press Ins or click on the New button. 
  741. You can specify in this dialog box the same parameters as when calling the NewStatusKey function. f
  742.  Type after Text:
  743.      ~F2~ Save
  744.  Type after Keycode
  745.      kbF2
  746.  Type after Command
  747.      cmSave
  748. Next click on OK to close the dialog box. 
  749. If the ListBox is selected, you will see that the statusline has changed according to the information you specified. O
  750. Type now a F3 statusitem by pressing Ins again or clicking on the New button. 
  751. P.S. if you made a mistake in the previous statusitem, move the lightbar to that item and press Edit (Ctrl+F8) or click on Edit. 
  752.  Type after Text
  753.      ~F3~ Open
  754.  Type after Keycode
  755.      kbF3
  756.  Type after Command
  757.      cmOpen
  758. And select the OK button. 
  759. Type now the Alt+F3 statusitem by pressing Ins again or selecting the New button. 
  760.  Leave Text empty
  761.  Type after Keycode
  762.      kbAltF3
  763.  Type after Command
  764.      cmClose
  765. and select the OK button to close the dialog box. 
  766.                                                                                                                                                                                                                                                              
  767. If you look at the statusline you will see that the statusline has changed according to your input. 
  768. Select now the OK button to close the statusitem dialog box.                                                                                                                                                                                                  
  769. Exit now the application you created by pressing Exit (Alt-X).                                                                                                                                                                                                
  770. You have now finished creating your first application. But is has to be saved now in a pascal source file. PtGen is able to read that source file if you want to expand or change your application later on. 
  771. You are prompted to specify a filename as this application has not yet a filename. If that file already exists, PtGen prompts you if you want to replace it. The previous file is then saved as .BAK. 
  772. To save your application: B
  773.   Select Save from the File menu.                               
  774. Specify as filename: SAMPLE1 (PtGen will add the .PAS) and select OK. 
  775.                                                                                                                                                                                                                                                              
  776. This is the end of your first tutorial. You may either proceed with the second tutorial or do that a next time. 
  777. Close this window by clicking on the close icon.                                                                                                                                                                                                              
  778. Welcome to the second tutorial! 
  779. You are going to learn how to build your own menubar. You will do this by extending the application you saved after the first tutorial. 5
  780. Load that application by selecting Open from the File menu.                                                                                                                                                                                                                                                         
  781. Type as filename SAMPLE1 and select the OPEN button to load it                                                                                                                                                                                                
  782. Press Edit (Ctrl+F8) or select Edit from the menubar to start editting your application. 
  783.                                                                                                                                                                                                                                                              
  784. Press Menu (F10) to select the menubar                                                                                                                                                                                                                        
  785. You selected the system menu. But if you take a look at the statusline you will see that it remains the same. But in the TP60 IDE (disappeared from BP70) a helptext appeared. You want that too? E
  786. Press Edit (Ctrl+F8) to edit the system menu (no mouse equivalent). 
  787. The menuitem dialog box has appeared. In this dialog box you can edit a menuitem's parameters. Except for helptext and window helptext the parameters are the same as for the NewItem function. !
  788. Enter in the helptext inputline 
  789.   system commands
  790. and select OK to close this dialog box.                                                                                                                                                                                                                       
  791. If you now look at the statusline, you will see that the statusline has changed and now shows the desired text. /
  792. Editing a menuitem is simple. Adding one too! P
  793. Place the lightbar on the End mark (
  794. ) symbol and press Ins to add a menuitem. 
  795.                                                                                                                                                                                                                                                              
  796. You will add the File menu, just like the one in Turbo IDE. y
  797.  Enter after Name
  798.      ~F~ile
  799.  Enter after Help text
  800.      File management
  801.      commands (Open,
  802.      New, Save, etc.)
  803. Leave the other fields empty and select OK to close this dialogbox. 
  804.                                                                                                                                                                                                                                                              
  805. The File menu has been added. Because you didn't specify a command, the File menu will contain a submenu. -
  806. Place the lightbar on File and press Enter. D
  807. An empty submenu will appear. Press Ins to insert the first menuitem of this submenu.                                                                                                                                                                                                                                              
  808.  Enter after Name
  809.      ~O~pen
  810.  After Command
  811.      cmOpen
  812.  After Keycode
  813.      kbF3
  814.  After Param
  815.      F3
  816. Skip hcConstant and R
  817.  enter after Help text
  818.      Locate and open a
  819.      file in an Edit
  820.      window
  821. Select OK to close this dialogbox.                                                                                                                                                                                                                            
  822. Exit now the application you created by selecting Exit from the statusline or by pressing Alt-X.                                                                                                                                                                                                                              
  823. You have now finished creating your second application. Save this application now by selecting  
  824.   Save as...
  825. from the File menu. If you had choosen Save you would have overwritten the code of the first tutorial.                                                                                                                                                                                                                               
  826. Specify as filename: SAMPLE2 and select OK to save your application. 
  827. This is the end of your second tutorial. You may either proceed with the third tutorial: creating dialogboxes or do that a next time. O
  828. **Bug in PtGen** Please exit and restart PtGen before going to third tutorial 
  829. You can close this window by clicking on the close icon.                                                                                                                                                                                                      
  830.  Welcome to the third tutorial
  831. You are going to learn how to create dialog boxes. You will do this by extending the application you saved after the second tutorial. )
  832. Load that application by selecting Open from the File menu.                                                                                                                                                                                                                                             
  833. Type as filename SAMPLE2 and select the OPEN button to load it                                                                                                                                                                                                
  834. Press Edit (Ctrl+F8) or select Edit from the menubar to start editing your application. 
  835.                                                                                                                                                                                                                                                              
  836. Press Menu (F10) to select the menubar                                                                                                                                                                                                                        
  837.  Press Enter to show the About menuitem, then
  838.    read on.
  839. You can "link" objects to menuitems. You will now link a dialog box object to the About menuitem. W
  840.  Press Link (Ctrl+F9) to pop-up a list of
  841.    objects you can link to this menuitem.
  842. There is no mouse equivalent to link objects.                                                                                                                                                                                                  
  843. There are two types of objects: predefined such as a calculator and user-defined. As you will define a dialog box, a user-defined object, 
  844.  select Define
  845. to pop up a list of objects which can be user-defined. %
  846.  From this list select Dialogbox.
  847. The dialog box settings dialog box appears in the upper right corner. You can specify a Name and a Title. You can also specify if you want a record to be created or if you want it to be centered. And full help text support of course. #
  848.  Enter after Name
  849.      AboutDlg
  850.  Enter after Title
  851.      About
  852.  Press OK to close the dialog box.
  853. You can place objects, like TStaticText or TButton, in the empty dialog box. 
  854.   Keyboard users:
  855. Pop up a list of objects you can place in this dialog box by pressing Local Menu (Alt+F10). 
  856.   Mouse users:
  857. Pop up a list of objects you can place in this dialog box by placing the mouse on the dialogbox background and pressing the left mouse button. The mouse location will form the upperleft corner of the view you select.                                                                       
  858. Select Static text from the pop-up.                                                                                                                                                                                                                           
  859. You are prompted to specify the static text. Enter the following text just as it appears. So enter for ^C first a "^" than a "C": #
  860.   ^CTurbo Pascal^M^M^CVersion 7.0
  861. and select the OK button.                                                                                                                                                                                                                                     
  862. You will now place an OK button in this dialog box. 
  863.   Keyboard users:
  864. Pop up the local menu to select an object by pressing Local Menu (Alt+F10). 
  865.   Mouse users:
  866. Pop up the local menu by placing the mouse on the dialog box background and pressing the left mouse button.                                                                                                                                                                                                                
  867. Select Button and next select OK to insert an OK button in this dialog box. 
  868.                                                                                                                                                                                                                                                              
  869. Press Enter or select the OK button to close this dialog box. 
  870.                                                                                                                                                                                                                                                              
  871. Press Alt-X to exit your application. 
  872. You have now finished creating your third application. We will save this one under a new name. *
  873.  Select Save as... from the File menu.
  874. Specify as filename: SAMPLE3 and select OK to save your application. 
  875.                                                                                                                                                                                                                                                              
  876. This is the end of your third and last tutorial! Congratulations! To become a real PtGen master I advise you to study the same tutorials in the User Manual too. The User Manual will offer more explanation and mention some more advanced concepts for which in this introductionary tutorial there was no room. 2
  877. Close this window by clicking on the close icon. 
  878.                                                                                                                                                
  879.  File
  880. Change Dir...
  881. Change Dir brings up the Change Directory dialog box, where you can specify a directory to make current. R
  882. The current directory is the one PtGen uses to save files and to look for files. 
  883.  File
  884. DOS Shell
  885. With the DOS Shell command, you can leave PtGen temporarily to perform a DOS command or enter another program. D
  886. To return to PtGen, type EXIT at the DOS prompt, then press Enter. 
  887.