home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / GPF.ZIP / HELP / GPFEDT.HLP (.txt)
OS/2 Help File  |  1991-04-02  |  236KB  |  10,306 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Gpf - Gui Programming Facility ΓòÉΓòÉΓòÉ
  3.  
  4. Gpf Extended Help: 
  5.  
  6.  o Press here for Introduction. 
  7.  o Press here for Help on Keys. 
  8.  
  9.  
  10. ΓòÉΓòÉΓòÉ 1.1. Introduction ΓòÉΓòÉΓòÉ
  11.  
  12. INTRODUCTION 
  13.  
  14. Scope of This Product 
  15.  
  16. Gpf is the most comprehensive tool available today for the creation and 
  17. integration of a Presentation Manager Graphic User Interface into your 
  18. application. With the common exception of naming your objects and screens, the 
  19. bulk of the work is done with the point-and-click method; screens are presented 
  20. to you in a logical fashion for a complete interface definition. 
  21.  
  22. The definition (stored in a .ORC file) is reentrant, so you can incrementally 
  23. modify or improve your GUI as often as you like. All secondary files can always 
  24. be re-generated from this one file, and it is the only GUI file you need to 
  25. maintain during your development cycle. 
  26.  
  27. Gpf Features     
  28.  
  29. Common PM objects 
  30.  
  31. Gpf allows you to define any and all objects known to PM, with a variety of 
  32. different parameters which modify the behavior or appearance of the object 
  33. being constructed. There is no practical limit to the number of 
  34. windows\controls you can create. 
  35.  
  36.  o Windows and Dialog Boxes 
  37.  o Message boxes, with several standard icons, warning beeps, and response 
  38.    modes 
  39.  o List boxes, combo boxes 
  40.  o All button and checkbox types 
  41.  o Vertical and horizontal scroll bars 
  42.  o Menu bars with unlimited hierarchies for each entry 
  43.  o System menu button, maximize/minimize buttons 
  44.  o Static text fields, with numerous variants 
  45.  o Entry and MLE fields 
  46.  o Several border types 
  47.  
  48.  In addition to these standard objects, all of which can be created in seconds, 
  49.  Gpf has installed many additional aids. 
  50.  
  51.  Generating HELP Screens 
  52.  
  53.  The creation of a complete HELP system for your application is so easy with 
  54.  Gpf that it would be a shame not to enhance your product with this facility. 
  55.  By default, Gpf installs the system HELP menu recommended by CUA into your 
  56.  entry screen. Creating a help panel for any screen or control is no more than 
  57.  a click of a button away from the object being defined. Press this button and 
  58.  you can easily 
  59.  
  60.  o type in, install an import statement, or drop in via the clipboard the 
  61.    relevant text for the object 
  62.  o designate a CONTENT title, which will be incorporated into the complete HELP 
  63.    system 
  64.  o similarly designate an INDEX title 
  65.  o create a small, one-line help or prompt which will be visible on your 
  66.    application screen, and will dynamically change as the cursor traverses an 
  67.    object so defined. 
  68.  
  69.  The text installed into the main panel can include any and all macros known to 
  70.  IPFC; so bitmaps can be included, lists generated, text can be highlighted, 
  71.  cross references are possible, and so on. 
  72.  
  73.  Presentation Parameters 
  74.  
  75.  Gpf allows you to easily specify a set of visual properties (border colors, 
  76.  text color foreground/background, highlighting, etc). Such a set (create as 
  77.  many as you want) are all stored, under  a name of your choice, and can be 
  78.  recalled and applied at any time, to any number of compatible objects. 
  79.  
  80.  The creation and use of the Presentation Objects is similar to the use of TAGS 
  81.  in a Desktop Publishing package. Most objects, during initial definition, will 
  82.  present you with a list of all defined Presentation Objects.  Point-and-click, 
  83.  then inspect the results and repeat until the desired effect is achieved. What 
  84.  could be simpler? Expand the list at any time, of course. 
  85.  
  86.  SQL Support 
  87.  
  88.  Gpf can read in, log, and decompose any DBM databases located on your system 
  89.  if you signal your intention to create an SQL application. Several of the PM 
  90.  objects, notably List/Combo boxes, can be defined to automatically load and 
  91.  display the contents of that database, down to the field level. Items are 
  92.  selectable for further processing by your application. 
  93.  
  94.  Other Features 
  95.  
  96.  Once you define all your screens and controls Gpf provides facilities for 
  97.  logical linkage, again through a point-and-click mechanism. This procedure, 
  98.  called Defining an Action, is very easy to use. Besides pre-defining most of 
  99.  the common control and window messages, selectable in a set of two or three 
  100.  FROM-TO lists, you can install code or calls to your code via this mechanism. 
  101.  
  102.  Gpf can include bitmaps and icons, as user defined buttons or in menus. 
  103.  
  104.  Gpf completely automates the compile/link steps. If done properly, you need 
  105.  never leave Gpf while completing your interface, in fact while completing your 
  106.  entire application.  All necessary files are created for you, and all 
  107.  necessary utilities (including the Resource compiler, IPFC, etc) are invoked 
  108.  when required. 
  109.  
  110.  
  111. ΓòÉΓòÉΓòÉ 1.2. Keys Help ΓòÉΓòÉΓòÉ
  112.  
  113. The frequent user can use the following key combinations to access GPF 
  114. functions directly: 
  115.  
  116. Note:  Click on the menu name to see the accelerator keys for items within that 
  117.        menu. 
  118.  
  119.  Menu Name           Key 
  120.  File Menu           ALT+F 
  121.  Create Menu         ALT+C 
  122.  Object Menu         ALT+B 
  123.  Options Menu        ALT+O 
  124.  Toolkit Menu        ALT+T 
  125.  Help Menu           ALT+H 
  126.  Window Menu         ALT+W 
  127.  
  128.  
  129. ΓòÉΓòÉΓòÉ 1.2.1. File Menu Keys ΓòÉΓòÉΓòÉ
  130.  
  131.  Function            Key 
  132.  New                 CTRL+N 
  133.  Open                CTRL+O 
  134.  Properties 
  135.  Save                CTRL+S 
  136.  Save As             CTRL+A 
  137.  Exit                F3 (CUA) 
  138.  
  139.  
  140. ΓòÉΓòÉΓòÉ 1.2.2. Create Menu Keys ΓòÉΓòÉΓòÉ
  141.  
  142.  Function            Key 
  143.  Window\Dialog       CTRL+W 
  144.  Menu                CTRL+M 
  145.  Text Static         CTRL+T 
  146.  Button              CTRL+B 
  147.  ListBox             CTRL+L 
  148.  ComboBox            CTRL+C 
  149.  Entry Field         CTRL+E 
  150.  Multiple LE         CTRL+U 
  151.  Vert Scroll Bar     CTRL+V 
  152.  Horz Scroll Bar     CTRL+H 
  153.  
  154.  
  155. ΓòÉΓòÉΓòÉ 1.2.3. Object Menu Keys ΓòÉΓòÉΓòÉ
  156.  
  157.  Function            Key 
  158.  MessageBox          CTRL+X 
  159.  Presentation        CTRL+P 
  160.  Icon                CTRL+I 
  161.  User Function       --none-- 
  162.  Find PM             CTRL+F 
  163.  
  164.  
  165. ΓòÉΓòÉΓòÉ 1.2.4. Options Menu Keys ΓòÉΓòÉΓòÉ
  166.  
  167.  Function            Key 
  168.  Grid                CTRL+G 
  169.  View Grid           --none-- 
  170.  View Tracking       CTRL+K 
  171.  Group Move          --none-- 
  172.  Bypass CUA          CTRL+Y 
  173.  Statistics          --none-- 
  174.  Clean Desktop       CTRL+D 
  175.  
  176.  
  177. ΓòÉΓòÉΓòÉ 1.2.5. Toolkit Menu Keys ΓòÉΓòÉΓòÉ
  178.  
  179.  Function            Key 
  180.  Animator            CTRL+R 
  181.  Generator           --none-- 
  182.  Compiler            --none-- 
  183.  Test                --none-- 
  184.  
  185.  
  186. ΓòÉΓòÉΓòÉ 1.2.6. Help Menu Keys ΓòÉΓòÉΓòÉ
  187.  
  188.  Function            Key 
  189.  Help for Help       SHIFT+F10 (CUA) 
  190.  Extended Help       F2 (CUA) 
  191.  Keys Help           F9 (CUA) 
  192.  Help Index          F11 (CUA) 
  193.  Help Contents       SHIFT+F2 (CUA) 
  194.  About               --none-- 
  195.  
  196.  
  197. ΓòÉΓòÉΓòÉ 2. MainWindow ΓòÉΓòÉΓòÉ
  198.  
  199. The Gpf Interface 
  200.  
  201. The Gpf interface is based on two (2) major components: the Menu Bar of Gpf 
  202. pull-downs, and Pop-up Dialog Windows. Each of the components is described 
  203. below. 
  204.  
  205. Pull-downs 
  206.  
  207. When you select one of the Gpf menu bar commands, the actions available for 
  208. that selected command are displayed in a 'pull-down' list. The pull-downs 
  209. provide actions that can be chosen by dragging the pointer to the desired 
  210. action and releasing a mouse button. Each action can also be chosen by using 
  211. the ALT+l command, where l is the letter in the action command that is 
  212. underlined. 
  213.  
  214. Check Marks 
  215.  
  216. A check mark preceding a pull-down action indicates the action is active for 
  217. the currently selected window, object, or option. 
  218.  
  219. Greyed Actions 
  220.  
  221. A greyed action on a pull-down indicates the action is currently unavailable. 
  222.  
  223. Pop-up Dialog Windows 
  224.  
  225. When you choose a pull-down action that is followed by an ellipses (...), a 
  226. pop-up dialog window is invoked. Pop-up dialog windows prompt you to specify 
  227. various settings and conditions, or choose from a list of options. You respond 
  228. to a pop-up dialog window by typing in a text entry or clicking the appropriate 
  229. pushbutton, list box, combination box, or bar. 
  230.  
  231. Common Gpf Dialog Windows 
  232.  
  233. The Entry Extended Help Dialog Window 
  234.  
  235. The Entry Extended Help dialog window is available when defining either a 
  236. window, menu pull-down list, dialog box, message box, or individual control 
  237. that will be visible in your final application. With Extended Entry Help you 
  238. can define the text that you want displayed if the user presses F1. There is 
  239. also an optional Informational Message for providing terse, one line text. This 
  240. message will be displayed at the bottom of the application client window 
  241. whenever the user passes the mouse over a particular item, or selects the item 
  242. with the cursor keys. 
  243.  
  244. A detailed explanation of the Entry Extended Help dialog window can be found in 
  245. the Common Gpf Dialog Window section in this reference. 
  246.  
  247. The Gpf Menu Bar 
  248.  
  249. The Gpf menu bar appears above the Gpf client window area and contains the 
  250. names of the seven (7) Gpf pull-downs. 
  251.  
  252. File Pull-down 
  253.  
  254. The File pull-down actions create, open, save, and set the properties of Gpf 
  255. definition files. The Exit action, used to exit Gpf, is also found in this 
  256. pull-down. For a detailed explanation of the actions that are available in the 
  257. File pull-down, refer to The File Pull-Down Actions. 
  258.  
  259. Create Pull-down 
  260.  
  261. The Create pull-down actions provide a list of Presentation Manager control 
  262. windows ( i.e.. Buttons, Scroll Bars, etc ) that you can select from when 
  263. creating your Gpf definition. For a detailed explanation of the actions and 
  264. control windows that are available in the Create pull-down, refer to The Create 
  265. Pull-down Actions. 
  266.  
  267. Objects Pull-down 
  268.  
  269. The Objects pull-down actions provide a list of Presentation Manager object 
  270. types ( i.e.. Icons, Bitmaps, Fonts, Message Boxes ) that you can incorporate 
  271. into your Gpf definition. Explanations for the actions and available objects 
  272. can be found in The Objects Pull-down Actions. 
  273.  
  274. Options Pull-down 
  275.  
  276. The Options pull-down actions allow you to modify the general appearance and 
  277. operations of your Gpf edit session. For a detailed explanation of the actions 
  278. that are available in the Options pull-down, refer to the Options Pull-down 
  279. Actions. 
  280.  
  281. Window Pull-down 
  282.  
  283. The Window pull-down action allows you to selectively choose which application 
  284. windows or dialog windows are visible on the screen. 
  285.  
  286. Toolkit Pull-down 
  287.  
  288. The Toolkit pull-down actions allow you to test, generate, or compile the 
  289. current Gpf definition. Please refer to The Toolkit Pull-down Actions, for a 
  290. detailed explanation of the available actions. 
  291.  
  292. Help Pull-down 
  293.  
  294. The Help pull-down provides entry into the apllication specific help system 
  295. and, through it, into the general PM help system and services. 
  296.  
  297.  
  298. ΓòÉΓòÉΓòÉ 2.1. ActionBar File ΓòÉΓòÉΓòÉ
  299.  
  300. File Pull-Down 
  301.  
  302. The first pull-down on the Gpf menu bar is the File pull- down. The pull-down 
  303. actions create, open, modify, or save Gpf definitions. In addition the Exit 
  304. pull-down will allow you to exit the current Gpf session. 
  305.  
  306. As with other Gpf pull-down actions, you can either select the action with a 
  307. mouse click, or by using the  (ALT+X,Y) keyboard combination, where X is the 
  308. underlined letter of the menu bar identifier and Y is the underlined letter of 
  309. the pull-down action that you wish to execute. Each of the File pull-down 
  310. actions will be described in general, and will then be covered in detail in the 
  311. order in which they appear on the pull-down. 
  312.  
  313. PULL-DOWN  : review 
  314.  
  315. File New (ALT+F,N) 
  316.  
  317. The first action available on the File pull-down is the New action. When you 
  318. choose File New, Gpf creates a new application definition for you to work with. 
  319.  
  320. File Open (ALT+F,O) 
  321.  
  322. The next action for the File pull-down is the Open action. File Open allows you 
  323. to open an existing Gpf application definition. 
  324.  
  325. File Properties (ALT+F,P) 
  326.  
  327. The File Properties action allows you to create or modify general 
  328. characteristics of the current Gpf definition.  The Program Property dialog box 
  329. invoked is the same as the second dialog window you encounter from either the 
  330. File New action or the File Open action. 
  331.  
  332. File Save (ALT+F,S) 
  333.  
  334. After you have modified or created a definition, the File Save action will 
  335. allow you to save your results to a Gpf definition file. 
  336.  
  337. File Save As (ALT+F,A) 
  338.  
  339. The File Save As action enables you to change the name of the file where you 
  340. will save your current Gpf definition.  This action is helpful when you want to 
  341. preserve the contents of the original Gpf definition. 
  342.  
  343. File Exit (ALT+F,X) 
  344.  
  345. When you want to exit your current Gpf session, the File Exit action will allow 
  346. you to do so. If there are any open Gpf definitions at the time, Gpf will 
  347. prompt you whether or not to save the current file. 
  348.  
  349.  
  350. ΓòÉΓòÉΓòÉ 2.1.1. PullDown New ΓòÉΓòÉΓòÉ
  351.  
  352. The File New Pull-down Action 
  353.  
  354. When you select the File New (ALT+F,N) action, you are indicating to Gpf that 
  355. you want to create a new Gpf definition. 
  356.  
  357. Gpf definitions is where Gpf saves all the controls and windows that you create 
  358. for your application within the editing session. It is from this definition 
  359. file that Gpf generates the C language source code and supporting files for 
  360. compilation. The definition files are in a binary format, and are readable only 
  361. by the Gpf system utilities. 
  362.  
  363. If you do not have a definition loaded in the current editing session, Gpf will 
  364. automatically display the Create New Application dialog window as shown in 
  365. Figure 3-1. Otherwise Gpf will query you to save the definition before 
  366. continuing.  If you have made changes to the definition and have not saved 
  367. them, it is a good idea to save it now because your changes will be lost if you 
  368. reply NO to the "Save the current file?" option. 
  369.  
  370. You are now ready to create a new application definition. 
  371.  
  372. Creating a new application definition is a two step process: 
  373.  
  374.            1. Name the definition and identify what drive/directory to record 
  375.            it in 
  376.  
  377.            2. Specify the program properties of the new definition. 
  378.  
  379.  Naming the New Application Definition File 
  380.  
  381.  The New Application dialog window will allow you to define the name of the new 
  382.  definition file as well as identifying which drive and directory to store it 
  383.  in. Each of the controls in the File New Dialog Window will be explained 
  384.  below: 
  385.  
  386.  File Name 
  387.  
  388.  When the dialog windows appears, specify the name that you want to save the 
  389.  Gpf definition to in this entry field. 
  390.  
  391.  When naming a definition, follow these guidelines: 
  392.  
  393.            The file name can be no longer than eight characters long. Gpf will 
  394.            automatically add an identifying three- character extension unless 
  395.            you add one yourself. Gpf's default extension is '.ORC'. 
  396.  
  397.            If desired, you can add other extensions by typing a period, and 
  398.            then the extension-for example, FIRSTONE.TST. Files with extensions 
  399.            other than .ORC don't appear in the Files box in the File Open 
  400.            dialog window. You must explicitly state the extension that you 
  401.            added during future sessions when you open a file using a non-ORC 
  402.            extension. 
  403.  
  404.            You can use any characters in a filename except spaces and the 
  405.            following characters: 
  406.  
  407.            * ? . , ; [ ] +  =  \ : | 
  408.  
  409.  Directory is : 
  410.  
  411.  This is a read-only field which informs you where the file named above will be 
  412.  stored. You can change the directory from the Directories list box, and change 
  413.  the drive using the icons at the top of the window. 
  414.  
  415.  If you decide to save the definition on a different drive or directory, 
  416.  remember where you placed it for later retrieval. 
  417.  
  418.  OK             Once you have filled in the File Name field and have chosen the 
  419.                 drive and directory where you will place the new definition, 
  420.                 you can signal Gpf that you are ready to begin by selecting the 
  421.                 OK (ALT+O) button. Another way to signal Gpf to begin is by 
  422.                 pressing the ENTER key. 
  423.  
  424.            Gpf will append the .ORC extension to the name that you have 
  425.            specified in the File Name entry field if you have not specified 
  426.            your own extension. A  search for the filename specified is then 
  427.            conducted to insure that the new file name is indeed unique. If Gpf 
  428.            finds another file of the name specified in the working directory 
  429.            you will be presented with an error message.  You are then given the 
  430.            option to overwrite the existing file.  If you do not want to 
  431.            destroy an existing file, you can cancel the overwrite and use a 
  432.            different name in the File Name entry field. 
  433.  
  434.  CANCEL         If you wish to cancel the operation at anytime during the 
  435.                 naming of the New Gpf definition, click on the CANCEL button in 
  436.                 the dialog window. This will signal Gpf that you do not want to 
  437.                 continue and you will be returned to the Gpf session window. 
  438.                 Another way to signal Gpf that you want to cancel the current 
  439.                 operation is by pressing the ESC key. 
  440.  HELP           Clicking on the HELP button will invoke the Presentation 
  441.                 Manager Help Facility. The Help window will provide you with 
  442.                 information on options available for creating a New Application 
  443.                 definition. 
  444.  
  445.  New Application Program Properties 
  446.  
  447.  Once you have given your new application definition a valid file name and have 
  448.  elected to continue creating the definition, Gpf will display the Program 
  449.  Property dialog window as shown in Figure 3-2. 
  450.  
  451.  
  452. ΓòÉΓòÉΓòÉ 2.1.2. PullDown Open ΓòÉΓòÉΓòÉ
  453.  
  454. The File Open Pull-down Action 
  455.  
  456. The next pull-down action on the File menu is the Open action. 
  457.  
  458. When you choose the File Open (ALT+F,O) action, you are indicating to Gpf that 
  459. you want to open an existing application definition file.  Gpf definitions are 
  460. where Gpf saves all the controls and windows that you create for your 
  461. application. By default Gpf files have the following syntax: 
  462.  
  463. filename.ORC 
  464.  
  465. where filename is the eight character name that you originally assigned to the 
  466. file when it was created. 
  467.  
  468. If you have a Gpf definition loaded in the current editing session, you will be 
  469. prompted to save the definition before continuing. If you have made changes to 
  470. the definition, and have not saved them, it is a good idea to save it now 
  471. because they will be lost if you reply no to the save option. 
  472.  
  473. Gpf will then display the File Open dialog window, as shown in Figure 3-3. If 
  474. you did not have a Gpf definition loaded, this dialog window would have 
  475. appeared automatically. 
  476.  
  477. The File Open dialog window will allow you to enter the name of the target Gpf 
  478. definition, as well as providing controls for locating other directories where 
  479. the file may be located. Each of the controls in this dialog window will be 
  480. discussed. 
  481.  
  482. Directory Is 
  483.  
  484. This is an informational, read only, display of the current working directory. 
  485. If you change the target drive and directory with the Directories list box, 
  486. this field will reflect the new target. 
  487.  
  488. File Name 
  489.  
  490. This entry field is where you can enter the name of the Gpf definition file you 
  491. want to open. This field can be filled a number of ways; either by keying in 
  492. the filename explicitly, or by making a selection from the FILES list box with 
  493. the mouse. If you choose the latter, Gpf will automatically fill the File Name 
  494. entry field with your list selection. 
  495.  
  496. By default Gpf will search for all files in the current working directory that 
  497. have the following form: 
  498.  
  499. *.ORC 
  500.  
  501. where the '*' is the OS/2 wildcard character which means 'find all files with 
  502. the ORC extension that can contain any characters before the extension'. 
  503.  
  504. Files 
  505.  
  506. This list box contains all the files that Gpf has found using the file name 
  507. default pattern described above. You can use wild cards for searching file 
  508. names with extensions other than the Gpf default by entering the pattern in the 
  509. File Name field and pressing the ENTER key. The Files list box will display all 
  510. the files that it finds that match the File Name pattern. 
  511.  
  512. You can select a filename from this list box by double clicking your selection. 
  513. To use the keyboard in this list box, first use the TAB key to highlight the 
  514. filename at the top of the list, and then use the UP and DOWN cursor keys to 
  515. highlight different entries. Pressing the ENTER key will automatically load the 
  516. selected entry in the Files list box. 
  517.  
  518. Directories 
  519.  
  520. If the file you want to open is not available in the current directory you can 
  521. select a different drive or directory from the Directories list box. 
  522.  
  523. For example, if you want to load a file that has been stored to a floppy disk 
  524. using drive A:, click on the drive identifier [A:] and Gpf will automatically 
  525. search the drive with the pattern or explicit filename listed in the File Name 
  526. field. 
  527.  
  528.  OK             By clicking on the OK button (ALT+O) you will signal Gpf that 
  529.                 you are ready to load the current file that is listed in the 
  530.                 File Name field. Gpf will check the drive and directory for 
  531.                 that file's existence.  If the file does not exist, Gpf will 
  532.                 notify you with a 'Requested File Not Found' message, otherwise 
  533.                 the file will be loaded.  Another way to signal Gpf to load the 
  534.                 file is by pressing the ENTER key. 
  535.  CANCEL         Clicking on the CANCEL button will signal to Gpf that you want 
  536.                 to abort  the File Load operation and ignore the settings in 
  537.                 the File Open dialog window.  Another way to signal Gpf that 
  538.                 you want to cancel the current operation is by pressing the ESC 
  539.                 key. 
  540.  
  541.            Note that if you had saved and closed a Gpf definition when you 
  542.            invoked the File Open dialog window, that definition is still 
  543.            closed.  When you abort the File Open operation, Gpf will not have 
  544.            any definitions loaded at all. 
  545.  
  546.  HELP           Clicking on the HELP button will invoke the Presentation 
  547.                 Manager Help Facility. The Help window will provide you with 
  548.                 information for options available when opening a Gpf definition 
  549.                 file. 
  550.  
  551.  
  552. ΓòÉΓòÉΓòÉ 2.1.3. PullDown Properties ΓòÉΓòÉΓòÉ
  553.  
  554. The File Properties Pull-down Action 
  555.  
  556. At any time during your Gpf edit session you can modify the Program Properties 
  557. as described in the File New Pull-down Action section. 
  558.  
  559. When you choose File Properties (ALT+F,P), Gpf displays the Program Properties 
  560. dialog window as shown in Figure 3-4. From this dialog window you can modify 
  561. the name of the main source code file that will be generated by Gpf, the 
  562. version or revision number of the definition, copyright information, 
  563. Presentation Manager task list entry, the target programming language, what SQL 
  564. databases are to be used by the new application, as well as text to display for 
  565. the application help windows. 
  566.  
  567. Main Source Name 
  568.  
  569. In this field specify the name of the source code file, and all supporting 
  570. files needed for compilation, that will be generated by Gpf when you are ready 
  571. to compile a Gpf defined application. The name entered here does not have to be 
  572. the same as the name specified as the Gpf definition file, but the naming 
  573. convention guidelines are the same. 
  574.  
  575. Actually Gpf will limit you to entering a maximum of eight characters without 
  576. an extension. Gpf will automatically generate the extension based on the target 
  577. language used and whether or not SQL data bases will be accessed. 
  578.  
  579. Examples of Gpf generated source code files: 
  580.  
  581.  FIRSTONE.C     C   Source code generated by Gpf 
  582.  FIRSTONE.SQC   SQL embedded C source code generated by Gpf 
  583.  
  584.  Level 
  585.  
  586.  Gpf allows you to track the number of revisions you may make to the 
  587.  application definition through the Level field. For example, if you have made 
  588.  minor modifications you may want to change the Level number from 1.0 to 1.1. 
  589.  You can enter any combination of letters, numbers, or punctuation marks. 
  590.  
  591.  The maximum length for the Level field is four (4) characters. 
  592.  
  593.  Copyright 
  594.  
  595.  The copyright field can be used to enter the name of the person or company 
  596.  that will hold the copyright of the application being generated. The text that 
  597.  is entered here will be placed in the generated source code, as well as the 
  598.  other supporting compilation files generated by Gpf. 
  599.  
  600.  The maximum length for the Copyright field is sixty-three (63) characters. 
  601.  
  602.  Task List Title 
  603.  
  604.  The Task List title is entered into the Presentation Manager Task List box 
  605.  when the compiled Gpf application is actually running.  Users can move between 
  606.  active applications running under OS/2 by selecting a name from the task list. 
  607.  A short, descriptive, line of text is recommended for this entry. 
  608.  
  609.  The maximum length for the Task List Title field is sixty-three (63) 
  610.  characters. 
  611.  
  612.  Language 
  613.  
  614.  The Language field is actually what is known as a Presentation Manager 
  615.  combination box. A combination box looks like an entry field with the 
  616.  exception that there is a downward-pointing arrow control on the far right 
  617.  side. By clicking this down arrow, a list of possible entries will be 
  618.  displayed. You can then choose an item from the list to fill in the top part 
  619.  of the combination box. You cannot enter text directly into the field for this 
  620.  combination box. 
  621.  
  622.  Currently Gpf generates only 'C' language source code, subsequently it is the 
  623.  only available option for the Language field. 
  624.  
  625.  Database Name 
  626.  
  627.  The Database Name field is another combination box where you can choose which, 
  628.  if any, SQL databases are to be referenced in the current Gpf application 
  629.  being defined. When you start the Gpf editor, a search is automatically 
  630.  conducted to determine if there are any SQL databases available on your 
  631.  system.  Gpf will then fill the Database Name list with the results of the 
  632.  search. 
  633.  
  634.  If  your application does not need to access information from an SQL database 
  635.  you can choose the 'No DBM' option, which is also the default.  You cannot 
  636.  enter text directly into the field for this combination box. 
  637.  
  638.  OK             By clicking on the OK button (ALT+O) you will signal Gpf that 
  639.                 you have completed any modifications in the Program Properties 
  640.                 dialog window. Gpf will check the Program Properties dialog 
  641.                 window and display an error message if there are any problems 
  642.                 with your entries. Another way to signal Gpf that you want to 
  643.                 save the changes you have made is by pressing the ENTER key. 
  644.  ACTION         The ACTION dialogs permit association of system or code 
  645.                 functions with current circumstances, control manipulations, 
  646.                 initializations, and so on. In the case of the Program 
  647.                 Properties window, you will see two default circumstances for 
  648.                 which actions can be invoked: Init Application and End 
  649.                 Application. This permits specification of items which are to 
  650.                 be performed upon program start and end. 
  651.  
  652.  Please refer to Common Dialog Windows, section 3.10.3, for a detailed 
  653.  explanation of the Action dialog window. 
  654.  
  655.  Entry Extended Help By clicking the Entry Extended Help (ALT+E) in the Program 
  656.                 Properties dialog window, you will be able to define the 
  657.                 general help text for your application. The text that you enter 
  658.                 will be displayed by the Presentation Manager Help Manager if 
  659.                 the user presses the F1 key when you finally run your compiled 
  660.                 application. 
  661.  
  662.            You can also define an informational message for the application 
  663.            from the Entry Extended Help dialog window. 
  664.  
  665.  Please refer to the Common Dialog Windows section  for a detailed explanation 
  666.  of the Entry Extended Help dialog window. 
  667.  
  668.  
  669. ΓòÉΓòÉΓòÉ 2.1.4. PullDown Save ΓòÉΓòÉΓòÉ
  670.  
  671. The File Save Pull-down Action 
  672.  
  673. The File Save pull-down (ALT+F,S) action will allow you to save the current Gpf 
  674. definition. 
  675.  
  676. When you invoke the File Save action, a message will query you whether or not 
  677. you want to continue with the save operation. You can elect to cancel the save 
  678. operation by clicking on the NO button.  Clicking on the YES button will save 
  679. the definition. 
  680.  
  681. The definition is saved to the file that you created with the File New 
  682. Pull-down Action. 
  683.  
  684.  
  685. ΓòÉΓòÉΓòÉ 2.1.5. PullDown SaveAs ΓòÉΓòÉΓòÉ
  686.  
  687. The File Save-As Pull-down Action 
  688.  
  689. The File Save As (ALT+F,A) pull-down action is similar to the File Save action, 
  690. but instead allows you to save the current definition to a file other than the 
  691. original one created. 
  692.  
  693. For example, suppose you are working on a Gpf definition from the file 
  694. "GPFTEST1.ORC", and decide after numerous changes that you want to save the 
  695. changes to a different file. By using the File Save As pull-down you can 
  696. preserve the original file by creating a new target file to save the current 
  697. changes to.  If you were to use the File Save action, you would save it to the 
  698. original file, which may not be what you desired. 
  699.  
  700. The File Save As pull-down action invokes the File Save As dialog window in 
  701. Figure 3-5. In this dialog you can enter the name of the new file where you 
  702. want to save the current definition.  Refer to the File New Pull-down action 
  703. for guidelines on using file names. The File Save As dialog window provides the 
  704. following controls: 
  705.  
  706. File Name 
  707.  
  708. The File Name field is where you enter the filename of the current Gpf 
  709. definition that you want to save.  If you do not specify an extension, Gpf will 
  710. automatically append the '.ORC' extension onto the filename before saving it. 
  711.  
  712. Directory Is 
  713.  
  714. This informational, read only field will display the current working directory. 
  715. When you choose different directories and drives from the Directories list, 
  716. this field will be updated to reflect your selection. 
  717.  
  718. Directories 
  719.  
  720. The Directories list box allows you to save the new file to a different drive 
  721. and directory by selecting from the choices available. 
  722.  
  723.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  724.                 that you want to save the current Gpf definition to the file 
  725.                 named in the File Name field. 
  726.  
  727.            If the file name you have typed is unique in the target directory, 
  728.            Gpf will create a new definition file. If the file name already 
  729.            exists in the target directory, Gpf will prompt you with a message 
  730.            to confirm that you really want to overwrite the existing file. 
  731.  
  732.            Note that even though Gpf creates and writes the current definition 
  733.            to a new filename on disk, the original definition will be retained 
  734.            in memory for your current edit session. If you want to have Gpf 
  735.            work with the newly named definition, use the File Open (ALT+F,O) 
  736.            action and reply NO when Gpf queries whether you want to save the 
  737.            current file to disk. 
  738.  
  739.            If you changed the drive and directory in the File Save As dialog 
  740.            window, Gpf will retain it as the current working directory.  The 
  741.            next time you use a file manipulation action, Gpf will use the last 
  742.            specified directory as the target. 
  743.  
  744.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  745.                 cause Gpf to abort the current operation. 
  746.  
  747.            If you have changed the drive and directory in the File Save As 
  748.            dialog window, Gpf will retain it as the current working directory. 
  749.            The next time you use a file manipulation action Gpf will use the 
  750.            last set directory as the target. 
  751.  
  752.  HELP           Clicking on the HELP button will invoke the Presentation 
  753.                 Manager Help Facility. The Help window will provide you with 
  754.                 information for options available for the File Save As pull- 
  755.                 down action. 
  756.  
  757.  
  758. ΓòÉΓòÉΓòÉ 2.1.6. PullDown Exit ΓòÉΓòÉΓòÉ
  759.  
  760. The File Exit Pull-down Action 
  761.  
  762. The final pull-down action available in File is the File Exit (ALT+F,X) action. 
  763.  
  764. When you have completed your session with Gpf and want to exit the system, use 
  765. the File Exit pull-down action. Gpf will first prompt you to save the current 
  766. definition, if any, to disk before continuing with the shutdown. The following 
  767. will occur based on the response to the file save prompt: 
  768.  
  769.  o If you answer CANCEL to the prompt, Gpf aborts the shutdown. 
  770.  o If you answer NO to the prompt, Gpf will exit and discard any changes you 
  771.    may have made to the current definition. 
  772.  o If you answer YES to the prompt, Gpf will save the current definition to 
  773.    disk before exiting. 
  774.  
  775.  
  776. ΓòÉΓòÉΓòÉ 2.2. ActionBar Create ΓòÉΓòÉΓòÉ
  777.  
  778. Create Pull-Down 
  779.  
  780. Create Pull-down Overview 
  781.  
  782. The Create pull-down actions provide a list of Presentation Manager control 
  783. windows (i.e. Windows, Buttons, Scroll Bars, etc.) that you can select from 
  784. when creating your application definition. 
  785.  
  786. When you select a Create pull-down action, the Gpf cursor will turn into a 
  787. cursor marker until you point and click where you want the control to be 
  788. placed. Once the control has been placed, an initial definitions dialog box 
  789. will appear and you can further define the characteristics of the selected 
  790. control. The target window or dialog window where you want to place the newly 
  791. created control must be visible, otherwise the control is ignored. 
  792.  
  793. As with other Gpf pull-down actions, you can either select the action with a 
  794. mouse click, or by using the (ALT+X,Y) keyboard combination, where X is the 
  795. underlined letter of the menu bar identifier and Y is the underlined letter of 
  796. the pull-down action that you want to execute. Each of the Create pull-down 
  797. actions will be described in general, and then will be covered in detail in the 
  798. order in which it  appears on the pull-down. 
  799.  
  800. Create Window/Dialog (ALT+C,W) 
  801.  
  802. The first action available on the Create pull-down is the Window/Dialog action. 
  803. When you choose Create Window/Dialog, Gpf creates a new Presentation Manager 
  804. Window. How you choose to use this window will determine whether or not it is 
  805. an independent window, child window, sibling window, or dialog window. 
  806.  
  807. By default Gpf will generate the main standard window when you create the new 
  808. application definition. Refer to the File Pull-down section for a discussion of 
  809. creating a new application definition. 
  810.  
  811. Create Menu (ALT+C,M) 
  812.  
  813. The Create Menu action will generate a Menu Bar control for the target window. 
  814. You can direct Gpf to place the new menu control on any window/dialog in the 
  815. current definition. 
  816.  
  817. By default the standard Gpf window has a menu bar already generated when you 
  818. create the new application definition. 
  819.  
  820. Create Text Static (ALT+C,T) 
  821.  
  822. The Create Text Static action will generate any type of static control (i.e. 
  823. Text, Icon, Bitmap, Groupbox) to be placed on the target window. By default, 
  824. Gpf will create a read-only static text control which can then be redefined. 
  825.  
  826. Create Button (ALT+C,B) 
  827.  
  828. The Create Button action will generate any type of button control (i.e. Push 
  829. Button, Radio Button, Check Box) to be placed on the target window. By default, 
  830. Gpf will create a pushbutton control which can then be redefined. 
  831.  
  832. Create List Box (ALT+C,L) 
  833.  
  834. The Create List Box action will generate a list box control to be placed on the 
  835. target window. The generated list box cannot be redefined to another type of 
  836. control, but the characteristics of the list box type (i.e. Sort Options, User 
  837. Drawn, etc.) may be modified. 
  838.  
  839. Create Combo Box (ALT+C,C) 
  840.  
  841. The Create Combo Box action will generate a combination box control. These 
  842. controls are actually both an entry Field control (see below), and a list box 
  843. control that act as one. Once you place the control, you can further modify its 
  844. characteristics. As with the list box control, the combination box cannot be 
  845. redefined. 
  846.  
  847. Create Entry Field (ALT+C,E) 
  848.  
  849. The Create Entry Field action will generate an entry field control on the 
  850. target window. You can set the characteristics of the entry field control, but 
  851. you cannot redefine it. 
  852.  
  853. Create Multiple LE (ALT+C,U) 
  854.  
  855. The Create Multiple LE action will generate a multiple line entry control on 
  856. the target window. The multiple line entry control is an extension of an entry 
  857. field control. With this control, the user can enter a number of lines of text 
  858. rather than the one line as in entry fields. Word wrapping, background and 
  859. foreground colors, as well as font sizes are but a few of the characteristics 
  860. available with a multiple line entry control. 
  861.  
  862. Create Vert Scroll Bar (ALT+C,V) 
  863.  
  864. The Create Vert Scroll action will generate a vertical scroll bar to be placed 
  865. on the target window. The vertical scroll bar cannot be redefined as another 
  866. type of control, but its characteristics may be modified. 
  867.  
  868. Note that Gpf will allow you to define a vertical scroll bar as part of the 
  869. main window characteristics. This control is placed along the right edge of the 
  870. client window and cannot be repositioned. Use the Create Vert Scroll Bar 
  871. (ALT+C,V) action to attain the maximum flexibility of a scroll bar control. 
  872.  
  873. Create Horz Scroll Bar (ALT+C,H) 
  874.  
  875. The Create Horz Scroll action will generate a horizontal scroll bar to be 
  876. placed on the target window. The horizontal scroll bar cannot be redefined as 
  877. another type of control, but its characteristics may be modified. 
  878.  
  879. Note that Gpf will allow you to define a horizontal scroll bar as part of the 
  880. main window characteristics. This control is placed along the bottom  edge of 
  881. the client window and can not be repositioned. Use the Create Horz Scroll Bar 
  882. (ALT+C,H) action to attain the maximum flexibility of a scroll bar control. 
  883.  
  884.  
  885. ΓòÉΓòÉΓòÉ 2.2.1. PullDown CreateWindow ΓòÉΓòÉΓòÉ
  886.  
  887. Create Window/Dialog (ALT+C,W) 
  888.  
  889. You can generate a new window for your application definition through the use 
  890. of the Create Window/Dialog action. For example, if you need to create a dialog 
  891. window for a response to a menu selection you would use this option to first 
  892. create the window template. You could then design this template to 
  893. specification, adding the additional controls and actions that you want the 
  894. window to have. 
  895.  
  896. When Gpf first generates the new window, it has the following characteristics: 
  897.  
  898.            Title Bar 
  899.            System Menu 
  900.            Minimize and Maximize Buttons 
  901.            Sizing Border 
  902.  
  903.  Unlike the standard window that Gpf generates when you use the File New 
  904.  (ALT,F,N) pull-down action, the generated window does NOT include a menu bar 
  905.  control. A menu bar can be added to this new window with the Create Menu 
  906.  (ALT+C,M) pull-down action. 
  907.  
  908.  Once the new window is generated by the Create Window/Dialog action, the 
  909.  Window/Dialog Styles dialog window will appear to allow you to set the new 
  910.  window/dialog characteristics. Following is a description of each of the 
  911.  characteristic styles available for the new window, or dialog window. Figure 
  912.  3-6 can be used as a reference. 
  913.  
  914.  As shown, the Window/Dialog Styles dialog window consists of a number of entry 
  915.  fields, combination boxes, check boxes, radio buttons, and pushbuttons. Some 
  916.  of these controls are located in group boxes and will be noted in the 
  917.  following descriptions. 
  918.  
  919.  Name 
  920.  
  921.  Each window or dialog window you create is named. This name is used as a 
  922.  reference for other controls and is also used for function naming when 
  923.  application source code is generated. By default, Gpf will name the windows in 
  924.  chronological order as follows: 
  925.  
  926.  MainWindow     This is the name given to the first window created by Gpf when 
  927.                 you use the File New (ALT+F,N) action. 
  928.  Window1        This is the name given to the first window created by Gpf when 
  929.                 you use the Create Window/Dialog (ALT+C,W) action. 
  930.  WindowX        This is the name given to each additional window created with 
  931.                 the Create Window/Dialog action, where X is equal to the next 
  932.                 sequential number of the  window created. 
  933.  
  934.  For example, if you have created two windows using the Create Window/Dialog 
  935.  action, in addition to the window create from File New, the windows that Gpf 
  936.  will have generated would be: 
  937.  
  938.            MainWindow 
  939.            Window1 
  940.            Window2 
  941.  
  942.  You can enter a different name in this field if you do not want to use the 
  943.  names generated by Gpf. If you decide to change the default name, it would be 
  944.  best if you could make the window name as descriptive as possible. It is 
  945.  easier to guess the window relationship from a name such as: 
  946.  
  947.            ListDataFieldsDialog 
  948.  
  949.     rather than 
  950.  
  951.            T5rKjd832 ! 
  952.  
  953.  Window Names can contain as many as 20 characters, including underscore 
  954.  characters (_), hyphens (-), and periods (.), as well as any letter or number. 
  955.  You cannot use spaces in the Names field. 
  956.  
  957.  Before discussing the next two controls, Parent and Owner, it is appropriate 
  958.  to examine what effect these controls have on the newly created window and the 
  959.  rest of the application. 
  960.  
  961.  Parent and Owner Window Relationships 
  962.  
  963.  There are two types of relationships that exist for Presentation Manager 
  964.  windows: parent-child, and ownership. Both will be discussed, as well as the 
  965.  effect that setting the Parent and Owner controls has on a new window or 
  966.  dialog window. 
  967.  
  968.  NOTE: The recommended Parent and Owner for MODAL dialog boxes is DESKTOP. 
  969.  
  970.  Parent-Child Relationships 
  971.  
  972.  With the exception of the Presentation Manager Desktop and Desktop-Object 
  973.  windows, most windows have a parent window. For example, the first window you 
  974.  create in an application uses the Presentation Manager Desktop window as its 
  975.  parent. This first window is considered to be a child of the Desktop window. 
  976.  
  977.  All windows are drawn  relative to its parent window. All coordinates are 
  978.  based on the lower-left (0,0) corner of its parent window. For example, a 
  979.  window whose coordinates are (20,20) is placed 20 pixels left and 20 pixels up 
  980.  from the lower-left corner of its parent window. 
  981.  
  982.  Many windows can share the same parent window; these are called sibling 
  983.  windows. Sibling windows can overlap on the screen; an application or a user 
  984.  can arrange the windows so that some appear on top of others. Each child 
  985.  window can have itself designated as a parent to a new window. Each child 
  986.  window in this chain of windows is called a descendant window of the original 
  987.  parent window. 
  988.  
  989.  All child windows are clipped to the parent window, meaning that no part of a 
  990.  child window can exist outside of the parent. If the child window is larger 
  991.  then the client area of the parent window, the system will automatically clip 
  992.  the portion of the child that extends beyond the parent so that it does not 
  993.  appear. 
  994.  
  995.  Setting the Parent control, in the Create Window/Dialog Styles dialog window, 
  996.  to DESKTOP will allow the new window to exist OUTSIDE of all the other defined 
  997.  windows in the application. The coordinate system is relative to the lower- 
  998.  left corner of the screen, which is the desktop window's lower-left corner. 
  999.  This window can be minimized, restored, or maximized, without effecting other 
  1000.  windows within the application. 
  1001.  
  1002.  Setting the Parent control in the Create Window/Dialog Styles dialog window to 
  1003.  any window other than DESKTOP will cause the new window to appear WITHIN the 
  1004.  boundaries of that designated parent. The new window will be clipped to the 
  1005.  parent window so that if you shrink the parent window you will reduce the 
  1006.  visible region of the child window. Also, if you hide or destroy the parent 
  1007.  window, the child windows are hidden or destroyed as well. 
  1008.  
  1009.  Ownership 
  1010.  
  1011.  Any window can have an owner window. An owner is a window, not necessarily a 
  1012.  parent window, that controls some aspect of another window. Ownership is 
  1013.  typically used to establish a connection between  windows so that together 
  1014.  they carry out useful tasks. This connection is usually in the form of 
  1015.  messaging communications between the window and the owner.  For example, the 
  1016.  title bar in an application's main window is owned by the frame window. 
  1017.  Together they let the user move the entire application window by clicking the 
  1018.  mouse in the title bar. 
  1019.  
  1020.  Ownership establishes a relationship between windows that is independent of 
  1021.  the parent-child relationship. Unlike parent and child windows, there are no 
  1022.  predefined rules for how the owner and owned windows interact. 
  1023.  
  1024.  Setting the Owner control in the Create Window/Dialog Styles dialog window to 
  1025.  DESKTOP will establish ownership of the newly created window to the desktop 
  1026.  window. The desktop will control the communication of messages to the newly 
  1027.  created window. 
  1028.  
  1029.  Setting the Owner control in the Create Window/Dialog Styles dialog window to 
  1030.  any window other than DESKTOP will establish ownership of the newly created 
  1031.  window to that of the designated window. The owner window will send messages 
  1032.  to, and receive messages from, the newly created window. 
  1033.  
  1034.  Window/Dialog Styles dialog window controls 
  1035.  
  1036.  Parent 
  1037.  
  1038.  The parent of the newly created window can be set from this control. The 
  1039.  Parent control is a combination box which will list all the currently defined 
  1040.  windows or dialog windows that were present when you created the new window. 
  1041.  
  1042.  By default Gpf will list the DESKTOP window as the parent. You may select 
  1043.  another window as the parent by clicking on the down arrow button on the 
  1044.  Parent control. If there are any other windows that are defined in the current 
  1045.  application, they will be listed here. 
  1046.  
  1047.  Owner 
  1048.  
  1049.  The owner of the newly created window can be set from this control. The Owner 
  1050.  control is a combination box, like the Parent control, which will list all of 
  1051.  the currently defined windows. 
  1052.  
  1053.  By default Gpf will list the DESKTOP window as the owner of the newly created 
  1054.  window. You may select another window as the owner by clicking on the down 
  1055.  arrow button on the Owner control. If there are any other windows that are 
  1056.  defined for the current application, they will be listed here. 
  1057.  
  1058.  Title 
  1059.  
  1060.  The Title control is an entry field where you can enter the text that you want 
  1061.  to have appear in the newly created window's title bar. This text is typically 
  1062.  the name of the application itself. For example, Gpf displays "Gpf Editor 
  1063.  [Filename.ORC]" in its title bar. 
  1064.  
  1065.  Title text can contain a maximum of 108 characters. 
  1066.  
  1067.  Source 
  1068.  
  1069.  The Source control is a combination box where you can select or define the 
  1070.  name of the source file where you want Gpf to generate the newly defined 
  1071.  window's source code. 
  1072.  
  1073.  The name is not required to be the same name that is entered in the Main 
  1074.  Window properties. When Gpf generates the source code for a multiple window 
  1075.  and multiple source file definition, the appropriate compilation and link 
  1076.  statements  will be generated as well. 
  1077.  
  1078.  To select an existing source file name for the window, click the down arrow 
  1079.  button on the combination box to display a list of defined source names. By 
  1080.  clicking on a selection from this list, the entry field portion of the 
  1081.  combination box will change to reflect the new choice. 
  1082.  
  1083.  If you want to create a new source file for the window, position the mouse 
  1084.  pointer at the beginning of the currently displayed source file and type the 
  1085.  new name to replace it. 
  1086.  
  1087.  Thread 
  1088.  
  1089.  The Thread control is a combination box where you can select which thread the 
  1090.  new window will execute under. 
  1091.  
  1092.  To select a thread for the window, click the downward pointing arrow button on 
  1093.  the combination box to display a list of defined thread names. By clicking on 
  1094.  a selection from this list, the entry field portion of the combination box 
  1095.  will change to reflect the chosen thread name. 
  1096.  
  1097.  If you want to create a new thread of execution for the window, position the 
  1098.  mouse pointer at the beginning of the currently displayed thread name and type 
  1099.  the new name in to replace it. 
  1100.  
  1101.  Gpf will automatically generate the necessary source code for creating an OS/2 
  1102.  thread for the window. 
  1103.  
  1104.  Presentation Client 
  1105.  
  1106.  This control is a combination box where you can select the presentation 
  1107.  parameters of the window client area, such as fonts, colors, visual frame 
  1108.  attributes, etc. 
  1109.  
  1110.  This combination box is read-only, therefore you will only be allowed to 
  1111.  select from a list of pre-defined objects. To define these objects, see 
  1112.  section 3.5.2.2. If none are defined there will be one and only one choice: 
  1113.  NULL. The NULL choice specifies system defaults, as set via the Control Panel. 
  1114.  
  1115.  To select a presentation for the window, click the downward pointing arrow 
  1116.  button on the combination box to display the list of objectss. When you click 
  1117.  on a selection from this list, the entry field portion of the combination box 
  1118.  will change to reflect the color you chose. You will notice a small box marked 
  1119.  "Color" in the Styles dialog window. As you choose a selection in the Color 
  1120.  control this box will display a sample of the basic color of the selected 
  1121.  presentation. 
  1122.  
  1123.  Presentation Frame 
  1124.  
  1125.  The Presentation control allows you to select an object from a list of 
  1126.  Presentation Objects that were predefined for this application. These objects 
  1127.  allow you to set the formatting and color of the basic frame being created. 
  1128.  
  1129.  Like the Presentation Client control, the Presentation Frame control is a 
  1130.  read-only combination box. 
  1131.  
  1132.  To select a Presentation Object for the window title text, click the downward 
  1133.  pointing arrow button on the combination box to display a list of Presentation 
  1134.  Objects. By clicking on a selection from this list, the entry field portion of 
  1135.  the combination box will change to reflect the object you chose. By default, 
  1136.  this entry contains NULL. 
  1137.  
  1138.  For a complete explanation of Presentation Objects, refer to the section 
  1139.  titled Object Pull-down ( section 3.5). 
  1140.  
  1141.  Icon 
  1142.  
  1143.  The Icon control is a read-only combination box where you can set the icon 
  1144.  that will be displayed when the window is minimized by the user. 
  1145.  
  1146.  To select an icon for the window, click the downward pointing arrow button on 
  1147.  the combination box.  A list of Icon Objects will be displayed. By clicking on 
  1148.  a selection from this list, the entry field portion of the combination box 
  1149.  will change to reflect the object you chose.  You will notice a small box 
  1150.  marked "Icon" in the Styles dialog window.  As you choose a selection in the 
  1151.  Icon control this box will display the actual icon. 
  1152.  
  1153.  Icons are defined as Objects, just like Presentation Objects.  Refer to the 
  1154.  section titled Object Pull-down, section 3.5, for a full description on 
  1155.  defining Icon and Bitmap Objects. 
  1156.  
  1157.  Choose Styles Group Box 
  1158.  
  1159.  The Choose Styles group box contains a number of check boxes that will affect 
  1160.  the appearance of your window. 
  1161.  
  1162.  Check boxes turn on the related style when there is an 'X' in the check box 
  1163.  itself. If the check box is empty, Gpf will not generate the style for the 
  1164.  window. Each of the styles available will be described. 
  1165.  
  1166.   Title Bar     This option is set to on by default.  The title bar is located 
  1167.                 at the top of the window. Besides displaying text, the title 
  1168.                 bar is used to move the entire application window around on the 
  1169.                 screen. Click this check box off if you do not want to display 
  1170.                 a window title bar. 
  1171.   Minimize Button This option is set to on by default. The minimize button 
  1172.                 allows a window to be minimized to an icon. Click this check 
  1173.                 box off if you do not want to have your window minimized. 
  1174.                 Setting this check box to off will also effectively ignore the 
  1175.                 Icon control selection. 
  1176.   Maximize Button This option is set to on by default. The maximize button 
  1177.                 allows a window to be expanded to the borders of the windows 
  1178.                 parent - the entire screen in the case of the main window. 
  1179.                 Click this check box off if you do not want your application 
  1180.                 window to be maximized. 
  1181.   System Menu   This option is set to on by default. The system menu provides 
  1182.                 the user with window sizing  and placement controls via 
  1183.                 keyboard commands and pull-down menu actions. Click this check 
  1184.                 box off if you do not want to have a system menu displayed on 
  1185.                 your application window. 
  1186.   Appl Menu     This option is set to on for the first window created in the 
  1187.                 Gpf application definition, and set to off for each window 
  1188.                 created thereafter. If this option is on, and a menu bar has 
  1189.                 been created for the window, Gpf will display a warning that 
  1190.                 the existing menu bar will be destroyed if you click this check 
  1191.                 box to off. If this check box option is off, and you later 
  1192.                 create a menu for the window, Gpf will automatically set this 
  1193.                 to on. 
  1194.   Horz Scroll Bar This option is set to off by default. If you click this check 
  1195.                 box on, Gpf will create a horizontal scroll bar along the 
  1196.                 bottom of the client window. 
  1197.   Vert Scroll Bar This option is set to off by default. If you click this check 
  1198.                 box on, Gpf will create a vertical scroll bar along the right 
  1199.                 border ( facing the screen ) of the client window. 
  1200.   Information Message This option is set to off by default. If you click this 
  1201.                 check box on, Gpf will allow you to display one line 
  1202.                 informational text in the Information message box. The 
  1203.                 Information message box is located along the bottom of the 
  1204.                 client window, above the horizontal scroll bar if one is 
  1205.                 defined. The text for the Information message box can be 
  1206.                 specified in the Entry Extended Help dialog box. Refer to the 
  1207.                 Common Dialog Window section of this document for an detailed 
  1208.                 explanation of the Information Message. 
  1209.  
  1210.   Appl Modal    This option is set to off by default. Windows with the 
  1211.                 application modal style set to ON will not allow you to access 
  1212.                 other windows, or menus, within the application until the modal 
  1213.                 window is dismissed. This style is usually found set to ON for 
  1214.                 dialog windows. 
  1215.   System Modal  This option is set to OFF by default. Windows with the system 
  1216.                 modal style set to ON will not only prevent you from accessing 
  1217.                 other windows or menus within the application, but will also 
  1218.                 prevent access to any other application on the system. The 
  1219.                 system modal style is typically set to on to signal the user of 
  1220.                 a critical error, or of some other reason that requires 
  1221.                 immediate attention. 
  1222.  
  1223.            NOTE: It is recommended that MODAL dialog boxes have the DESKTOP as 
  1224.            both owner and parent. 
  1225.  
  1226.  Choose Options Group Box 
  1227.  
  1228.  The Choose Options group box contains a number of check boxes that will effect 
  1229.  how Presentation Manager controls various aspects of your window. 
  1230.  
  1231.  Check boxes are considered to be turned ON for the related option when there 
  1232.  is an 'X' in the check box itself. If the check box is empty, Gpf will not 
  1233.  generate the option for the window. Each of the options available will be 
  1234.  described. 
  1235.  
  1236.   Logo          This option is set to OFF by default. The Logo is an opening 
  1237.                 window for your application, usually containing copyright or 
  1238.                 application specific information. Click this option ON if you 
  1239.                 want to have your application display a logo. Note that 
  1240.                 Presentation Manager can override this option if the PM Control 
  1241.                 Panel option for displaying a logo is set to OFF. 
  1242.   Save Bits     This option is set to ON by default. The Save Bits instructs 
  1243.                 Presentation Manager to save the image under the window as a 
  1244.                 bitmap. When the window is moved or hidden, the system restores 
  1245.                 the image by copying the bits. Click this option to OFF if you 
  1246.                 do not want bitmap images saved. 
  1247.   NoMoveWithOwner This option is set to OFF by default. This option will 
  1248.                 instruct Presentation Manager to create a window that will not 
  1249.                 move if the owner window moves. Click this option ON if you 
  1250.                 want your window NOT to move with the owner window. 
  1251.   Adjust        This option is set to OFF by default. This GPF feature, when 
  1252.                 set to ON, will cause all controls to re-size if the enclosing 
  1253.                 window is re-sized. This effect can be viewed in ANIMATOR mode. 
  1254.   SyncPaint     This option is set to ON by default. This option, when set to 
  1255.                 on, will cause the window to immediately receive WM_PAINT 
  1256.                 messages after a part of the window becomes invalid. When this 
  1257.                 option is set to OFF, the window receives WM_PAINT messages 
  1258.                 only if no higher priority messages are waiting to be processed 
  1259.                 in the window message queue. 
  1260.   NoByteAlign   This option is set to OFF by default. This option will instruct 
  1261.                 Presentation Manager to create a window that is not byte 
  1262.                 aligned. If this option is set to OFF, Presentation Manager 
  1263.                 will align the window on an eight byte boundary. This results 
  1264.                 in faster screen drawings in the client window. 
  1265.  
  1266.  Border Styles Group Box 
  1267.  
  1268.  The Border Styles group box contains a number of radio buttons that will 
  1269.  control the type of border your window will have. 
  1270.  
  1271.  Radio buttons in a group box are mutually exclusive. Only one can be set to on 
  1272.  in the group at one time. By clicking on the different border options, you 
  1273.  will set the radio button ON for the new option, while turning the radio 
  1274.  button OFF on the previously set option. 
  1275.  
  1276.  Sizeable Border This option is set to OFF by default. The Sizeable Border 
  1277.                 option instructs Gpf to generate a border around the window 
  1278.                 that will allow the user to size the height and width of the 
  1279.                 window with the mouse or keyboard commands. This border style 
  1280.                 is typically used in most OS/2 Presentation Manager 
  1281.                 applications. 
  1282.  Window Border  This option is set to OFF by default. The Window Border option 
  1283.                 instructs Gpf to generate a thin lined border around the 
  1284.                 window. The user cannot change the size of the window when this 
  1285.                 option is set to ON. This border type is typically used for 
  1286.                 windows that display a quick message to the user and are then 
  1287.                 dismissed. 
  1288.  Dialog Border  This option is set to OFF by default. The Dialog Border option 
  1289.                 instructs Gpf to generate a border that is thicker than the 
  1290.                 Window Border. The user is still prohibited from changing the 
  1291.                 size of the window. This border type is typically used for 
  1292.                 dialog windows. 
  1293.  No Border      This option is set to OFF by default. The No Border option 
  1294.                 instructs Gpf NOT to generate any border whatsoever around the 
  1295.                 window. This border type is typically used for windows with a 
  1296.                 parent other then the DESKTOP. 
  1297.  
  1298.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  1299.                 will signal Gpf that you have completed any changes in the 
  1300.                 Window Styles dialog window. 
  1301.  
  1302.            If any of the options you have selected will result in a change to 
  1303.            the windows appearance, Gpf will automatically update the window to 
  1304.            reflect those changes. For example, if the window was created with a 
  1305.            Sizeable Border, and you change the border type to Window Border, 
  1306.            the window's border will be changed to a Window Border type. 
  1307.  
  1308.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  1309.                 cause Gpf to abort the current operation. 
  1310.  
  1311.            If you have changed any options for the window while in the Window 
  1312.            Style dialog window, Gpf will ignore the changes and restore the 
  1313.            original control settings. 
  1314.  
  1315.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Window 
  1316.                 Styles dialog window, you will be able to define the general 
  1317.                 help text for your window. The text that you enter will be 
  1318.                 displayed by the Presentation Manager Help Manager if the user 
  1319.                 presses the F1 key when you finally run your compiled 
  1320.                 application. 
  1321.  
  1322.            You can also define an informational message for the window from the 
  1323.            Entry Extended Help dialog window. 
  1324.  
  1325.  Please refer to the Common Dialog Windows section for a detailed explanation 
  1326.  of the Entry Extended Help dialog window. 
  1327.  
  1328.  ACTION         The ACTION button (ALT+A) will invoke the Gpf Action On dialog 
  1329.                 window. From this dialog window you can set the processing 
  1330.                 actions for the window during the following stages: 
  1331.  
  1332.  Window Creation or Initialization - Presentation Manager 
  1333.  
  1334.  creates or initializes every window or dialog window. The developer can change 
  1335.  the default processing during the creation phase with either different 
  1336.  pre-defined actions, or their own source code. 
  1337.  
  1338.  Window Activation - After the above step, the window 
  1339.  
  1340.  is then activated. The developer can change the default processing during the 
  1341.  activation phase with either different pre-defined actions, or their own 
  1342.  source code. 
  1343.  
  1344.  Window DeActivation - This occurs when the user or application 
  1345.  
  1346.  has dismissed or destroyed the window. The developer can change the default 
  1347.  deactivation processing with either pre- defined actions, or their own source 
  1348.  code. 
  1349.  
  1350.  Each of the above are listed in the Action On dialog window. To select an 
  1351.  action from the list box, either click on the target phase with the mouse, or 
  1352.  use the directional keys  on the keyboard. 
  1353.  
  1354.  View/Modify Action On Once the action has been selected, and the processing 
  1355.                 for that selection are to be viewed or modified, click on the 
  1356.                 View/Modify Action On (ALT+V) button. This will invoke the 
  1357.                 Action List dialog window. 
  1358.  
  1359.  Action List dialog windows, and associated processes, are described in the 
  1360.  Common Dialog Windows section. 
  1361.  
  1362.  OK             When you are finished viewing or modifying the action 
  1363.                 processing for the window, click on the OK (ALT+O) button to 
  1364.                 return to the Window Styles dialog window. 
  1365.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  1366.                 window as well as any children windows associated with the 
  1367.                 window. This option is NOT available for the main window, as 
  1368.                 every application must have at least one window. 
  1369.  
  1370.            When you select this button, Gpf will prompt you with a message to 
  1371.            confirm that you want to destroy this window, as well as any 
  1372.            children of this window. 
  1373.  
  1374.  
  1375. ΓòÉΓòÉΓòÉ 2.2.2. PullDown CreateMenu ΓòÉΓòÉΓòÉ
  1376.  
  1377. Create Menu (ALT+C,M) 
  1378.  
  1379. The Create Menu action allows you to add a menu bar to a window. 
  1380.  
  1381. When you create a new Gpf application definition, the first window that is 
  1382. created contains a default menu bar. For each additional window created, using 
  1383. the Create Window/Dialog Window (ALT+C,W), Gpf does not generate a menu bar. 
  1384.  
  1385. Clicking on the Create Menu (ALT+C,M) action will generate a menu bar and allow 
  1386. you to attach it to any visible window. If the target window does not have a 
  1387. menu bar already defined, Gpf will immediately invoke the Menu Options dialog 
  1388. window. Refer to Figure 3-7. 
  1389.  
  1390. Gpf will allow you to define three types of menu items: top level menu items, 
  1391. pull-down actions, and submenu items. 
  1392.  
  1393. Top level menu items are those that are directly visible in the application's 
  1394. menu bar. Clicking on a top level menu item will typically display a 
  1395. 'pull-down' list of action items. Subsequently, each pull-down action item can 
  1396. have a pull-down list of menu items, called a submenu. The following text and 
  1397. control descriptions apply to all three of these menu types. 
  1398.  
  1399. As shown, the Menu Options dialog window consists of a number of entry fields, 
  1400. combination boxes, check boxes, radio buttons, and push buttons. Some of these 
  1401. controls are located in group boxes and will be noted in the following 
  1402. descriptions. 
  1403.  
  1404. Name 
  1405.  
  1406. Each menu item has an identifying name. During program execution, the 
  1407. application's window procedure receives messages generated by the menu in 
  1408. response to user input, either from the mouse or the keyboard. The application 
  1409. responds to these messages by using the identifier of the menu item that is 
  1410. contained in each menu message. 
  1411.  
  1412. Text 
  1413.  
  1414. You can specify the text that is displayed in the menu or pull-down with the 
  1415. Text entry field. 
  1416.  
  1417. You can indicate a mnemonic keystroke for the menu item by preceding that 
  1418. character in the item text with a tilde, as in "~Open". The user can choose 
  1419. that item by pressing the mnemonic key when the menu is active. 
  1420.  
  1421. A menu item can have a keyboard accelerator associated with it. Accelerators 
  1422. differ from mnemonic keystrokes in that the menu does not have to be active for 
  1423. the accelerator key to work. Typically the accelerator is displayed to the 
  1424. right of the menu item. This is done by placing a tab character (\t) in the 
  1425. menu text before the characters that should be displayed on the right. For 
  1426. example, to indicate that the F3 function key can be used to exit the 
  1427. application, the text field entry would contain: 
  1428.  
  1429.         Exit\tF3 
  1430.  
  1431. Refer to the Accelerator Key description for generating the proper accelerator 
  1432. for your menu item. 
  1433.  
  1434. Sibling 
  1435.  
  1436. The Sibling control is a combination box which displays, and allows you to 
  1437. choose, which menu item is a sibling to the currently displayed menu item. 
  1438.  
  1439. You can re-arrange the position that the menu item appears in by changing the 
  1440. sibling relationship. The siblings are listed from either the top of the 
  1441. pull-down list order or across for top level menu items. 
  1442.  
  1443. Parent and Owner 
  1444.  
  1445. The Parent and Owner controls are read-only displays which indicate the 
  1446. respective Parent and Owner of the menu bar. Gpf sets this relationship 
  1447. automatically, with the menu directly communicating (sending messages) with the 
  1448. window it is attached to. 
  1449.  
  1450. Accelerator Key 
  1451.  
  1452. The Accelerator Key control is a combination box which lists all the available 
  1453. key combinations that can be used for the current menu item definition. 
  1454.  
  1455. Keyboard accelerators provide an optional interface, the keyboard, for 
  1456. selecting menu items. Accelerators associate keystrokes with menu action items 
  1457. and therefore do not require the menu itself to be active. 
  1458.  
  1459. You can select an Accelerator Key from the Accelerator Key combination box for 
  1460. the current menu item definition by scrolling through the list of predefined 
  1461. keystroke combinations and clicking on the desired one. 
  1462.  
  1463. Submenu Presentation 
  1464.  
  1465. The Submenu Presentation combination box includes a list of all defined 
  1466. Presentation Objects.  Refer  to the Objects Pull- down (section 3.5) in this 
  1467. documentation for a description on creating Presentation Objects. 
  1468.  
  1469. The Presentation Object can change the appearance ( i.e. Foreground and 
  1470. Background Color,  Font and Font Sizes,  Borders,   etc. ) of the pull-down 
  1471. menu items. 
  1472.  
  1473. You can select a Submenu Presentation object by scrolling through the list of 
  1474. Presentation Objects and clicking on your choice. 
  1475.  
  1476. Menu Styles Group Box 
  1477.  
  1478. The Menu Styles group box contains a number of check boxes that affect how 
  1479. Presentation Manager displays the menu item. 
  1480.  
  1481. Check boxes are considered to be turned on for the related option when there is 
  1482. an 'X' in the check box itself. If the check box is empty, Gpf will not 
  1483. generate the option for the menu item.  Each of the options available will be 
  1484. described: 
  1485.  
  1486.   Break         This option is set to off by default. Presentation Manager will 
  1487.                 start a new row or column for the menu item when it encounters 
  1488.                 this style. 
  1489.   Static        This option is set to off by default. When the Static style 
  1490.                 option is set to on, the menu item is displayed as an 
  1491.                 informational item only. The user cannot select a menu item 
  1492.                 with this type, with either the mouse or keyboard. 
  1493.   Button Separator This option is set to off by default. When the Button 
  1494.                 Separator style option is set to on, the item cannot be 
  1495.                 selected by using the keyboard cursor keys. The item can only 
  1496.                 be selected with the mouse or defined accelerator keys. 
  1497.   Break Separator This option is set to off by default.  This style is the same 
  1498.                 as is described above for the Break style, with the exception 
  1499.                 that Presentation Manager will draw a separator line between 
  1500.                 the menu row or column. 
  1501.  
  1502.  Menu Attributes Group Box 
  1503.  
  1504.  The Menu Attributes group box contains a number of check boxes that control 
  1505.  the display aspects of a menu item, such as its highlighted and checked state. 
  1506.  
  1507.  Check boxes controls are considered to be turned on for the related option 
  1508.  when there is an 'X' in the check box itself. If the check box is empty, Gpf 
  1509.  will not generate the option for the menu item. Each of the options available 
  1510.  will be described. 
  1511.  
  1512.   No Dismiss    This option is set to OFF by default. When this option is set 
  1513.                 to ON, the menu which contains the current menu item will not 
  1514.                 be dismissed, even after the user makes a menu selection. The 
  1515.                 application becomes responsible for removing the menu from 
  1516.                 view. 
  1517.   Framed        This option is set to OFF by default. If this option is set to 
  1518.                 ON, the menu item will be framed by vertical lines to the left 
  1519.                 and right. 
  1520.   Checked       This option is set to OFF by default. If this option is set to 
  1521.                 ON, the menu item will have a check mark to the left of it when 
  1522.                 displayed. The application must control turning the check on 
  1523.                 and off on a menu item during program run- time. 
  1524.   Disabled      This option is set to OFF by default. The Disabled attribute, 
  1525.                 when set to ON, will gray out the menu item. The user may view 
  1526.                 a grayed menu item, but the system will issue an error beep 
  1527.                 when the menu item is clicked upon. The application is 
  1528.                 responsible for setting and clearing the disabled state of a 
  1529.                 menu item during program run-time. 
  1530.   Highlighted   This option is set to OFF by default. Presentation Manager will 
  1531.                 normally highlight the topmost pull-down item when a menu list 
  1532.                 is displayed. Set this option ON if you would rather have a 
  1533.                 different menu item highlighted at run-time. 
  1534.  
  1535.  Menu Type Group Box 
  1536.  
  1537.  The Menu Type group box contains a number of radio buttons which indicate what 
  1538.  type of object the menu item is. 
  1539.  
  1540.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  1541.  in the group. Each of the menu types will be described. 
  1542.  
  1543.  Text           This is the default menu type. The menu item is displayed as a 
  1544.                 text string. 
  1545.  Bitmap         This menu type allows you to include a bitmap drawing as the 
  1546.                 menu item. When you enable this option, Gpf will activate the 
  1547.                 bitmap display box and the bitmap object combination box. The 
  1548.                 display box is located to the right of the bitmap option, and 
  1549.                 the combination box is at the bottom of the Type group box. The 
  1550.                 bitmaps must have been previously identified as an object to 
  1551.                 appear in the combination box list. Refer to the Objects 
  1552.                 Pull-down section (Section 3.5) for information on defining 
  1553.                 bitmap objects. 
  1554.  Separator      This menu type is set to off by default. The Separator type 
  1555.                 will generate a non-selectable horizontal  line in the menu 
  1556.                 pull-down list. This is helpful for separating logical groups 
  1557.                 of pull-down actions in the same menu. Any text entered in the 
  1558.                 Text Entry Field is ignored when the Separator type is 
  1559.                 selected. 
  1560.  
  1561.  Owner Draw     This menu type is set to off by default. When a menu type is 
  1562.                 defined to be of type Owner Draw, then the application is 
  1563.                 responsible for drawing, redrawing, and dismissing the menu. 
  1564.                 The application receives notification messages from the menu 
  1565.                 bar each time a draw request needs to be serviced. 
  1566.  
  1567.  OK             Click on the OK (ALT+O) button when you are finished viewing or 
  1568.                 modifying the top level, pull-down, or submenu item, and want 
  1569.                 to save the item definitions or changes. 
  1570.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  1571.                 cause Gpf to abort the current operation. 
  1572.  
  1573.            If you have changed any options for the menu item while in the Menu 
  1574.            Options dialog window, Gpf will ignore the changes and restore the 
  1575.            original menu settings. 
  1576.  
  1577.  PULLDOWN       Top level menu items can have a pull-down action list of menu 
  1578.                 items associated with them. The PULLDOWN (ALT+P) button will 
  1579.                 allow you to add, edit, or remove pull-down action items. 
  1580.  
  1581.            Clicking on the PULLDOWN button will invoke the Selection Pull-down 
  1582.            dialog window. The Selection Pull-down dialog window will list the 
  1583.            pull-down action items already defined for the top level. 
  1584.  
  1585.            Double clicking on an available pull-down item in the list will 
  1586.            invoke a nested Menu Options dialog window. The control options are 
  1587.            the same as the ones used when defining the top level menu item with 
  1588.            the exception that the PULLDOWN button is renamed to SUBMENU. 
  1589.  
  1590.            If no pull-down items have been defined, you must first add one with 
  1591.            the ADD ITEM (ALT+A) button. 
  1592.  
  1593.            Each pull-down menu item can have a submenu associated with it. 
  1594.            Submenus typically provide 'in line' menu options for the particular 
  1595.            pull-down action, as opposed to invoking dialog boxes for user 
  1596.            input. 
  1597.  
  1598.            Submenu items are defined using the Menu Options dialog window, just 
  1599.            like the pull-down and top level menu items. 
  1600.  
  1601.  ENTRY HELP     By clicking the Entry Help (ALT+E) button in the Menu Options 
  1602.                 dialog window, you will be able to define the general help text 
  1603.                 for your menu item. The text that you enter will be displayed 
  1604.                 by the Presentation Manager Help Manager if the user presses 
  1605.                 the F1 key when the menu is the active selection. 
  1606.  
  1607.            You can also define an informational message for the menu item from 
  1608.            the Entry Extended Help dialog window. 
  1609.  
  1610.  Please refer to the Common Dialog Windows section for a detailed explanation 
  1611.  of the Entry Help dialog window. 
  1612.  
  1613.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  1614.                 window. From this dialog window you can set the processing 
  1615.                 actions desired for the menu item when the user selects it. The 
  1616.                 Action On dialog window allows you to define processing for the 
  1617.                 following user action: 
  1618.  
  1619.                Click 
  1620.  
  1621.  When the user clicks on the menu item with the mouse, or invokes the menu item 
  1622.  with an accelerator key. You can define the action associated with the menu 
  1623.  item selection with pre-defined, or user developed source code. 
  1624.  
  1625.  The click option is listed in the Action On dialog window. To select an action 
  1626.  from the list box, either click on the target with the mouse, or use the 
  1627.  directional keys on the keyboard. 
  1628.  
  1629.  View/Modify Action On Once the action has been selected, and the processing 
  1630.                 for that selection is to be viewed or modified, click on the 
  1631.                 View/Modify Action On (ALT+V) button. This will invoke the 
  1632.                 Action List dialog window. 
  1633.  
  1634.  Action List dialog windows, and associated processes, are described in the 
  1635.  Common Dialog Windows section. 
  1636.  
  1637.  OK             Once you are finished viewing or modifying the action 
  1638.                 processing for the menu, click on the OK (ALT+O) button to 
  1639.                 return to the Menu Options Styles dialog window. 
  1640.  
  1641.            If you are nested in defining pull-down menu items, or submenus, Gpf 
  1642.            will return to the next highest level. Continue  to click the OK 
  1643.            button until you return to the Gpf edit screen. 
  1644.  
  1645.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  1646.                 menu item as well as any pull-down menu items associated with 
  1647.                 the menu. 
  1648.  
  1649.            When you select this button, Gpf will prompt you with a message to 
  1650.            confirm that you want to destroy this menu item, as well as any 
  1651.            pull-down children of this menu item. 
  1652.  
  1653.  
  1654. ΓòÉΓòÉΓòÉ 2.2.3. PullDown CreateStatic ΓòÉΓòÉΓòÉ
  1655.  
  1656. Create Text Static (ALT+C,T) 
  1657.  
  1658. Clicking on the Create Text Static (ALT+C,T) action will generate a static text 
  1659. control item and allow you to attach it to any visible window. Once the control 
  1660. is placed on the target window or dialog window, Gpf will invoke the Static 
  1661. Control Styles dialog window. Refer to Figure 3-8. 
  1662.  
  1663. Static controls are simple text fields, bitmaps, or icons that can be used to 
  1664. label, enclose, or separate other window control windows. Static controls do 
  1665. not accept user input and they do not send notification messages to their 
  1666. owning applications. 
  1667.  
  1668. As shown, the Static Control Styles dialog window consists of a number of entry 
  1669. fields, combination boxes, check boxes, radio buttons, and push buttons. Some 
  1670. of these controls are located in group boxes and will be noted in the following 
  1671. descriptions: 
  1672.  
  1673. Name 
  1674.  
  1675. Each static text control item has an identifying name. During program 
  1676. execution, the application's window procedure can manipulate the item using 
  1677. this name as an argument to the OS/2 Presentation Manager API functions. 
  1678.  
  1679. Sibling 
  1680.  
  1681. The Sibling control is a combination box which displays and allows you to 
  1682. choose which control item or window will be a sibling of the item currently 
  1683. being defined. 
  1684.  
  1685. Text 
  1686.  
  1687. The Text control is an entry field where you can type in the text associated 
  1688. with the currently created item. 
  1689.  
  1690. Item definitions where text entries are ignored will be identified at the 
  1691. appropriate control item description. 
  1692.  
  1693. Presentation 
  1694.  
  1695. The Presentation control is a combination box which displays and allows you to 
  1696. choose a presentation object for setting the font size, foreground, background, 
  1697. and border colors for the static control being defined. 
  1698.  
  1699. The Presentation object must have been previously identified as an object to 
  1700. Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  1701. defining presentation objects. 
  1702.  
  1703. Static Control Styles Group Box 
  1704.  
  1705. The Static Control Styles group box contains a number of radio buttons that 
  1706. define  what type of control the newly created item is. 
  1707.  
  1708. Radio buttons in a group box are mutually exclusive, only one can be set to on 
  1709. in the group at one time. Each of the control styles are described as follows: 
  1710.  
  1711.  Text           This option is set to on by default. With the control style of 
  1712.                 Text, various formatting options are available to produce 
  1713.                 formatted text in the boundaries of the control. The text 
  1714.                 entered in the text entry field control is displayed. Refer to 
  1715.                 the discussions of Horizontal and Vertical Options following 
  1716.                 this (Static Control Styles Group Box) section. 
  1717.  Group Box      This option is set to off by default. Group boxes are useful 
  1718.                 for grouping other kinds of control items, such as radio 
  1719.                 buttons and check boxes. The text entered in the text entry 
  1720.                 field control is displayed in the upper left corner of the 
  1721.                 group box when displayed in the application or dialog window. 
  1722.  ForeGround Frame This option is set to off by default. A control with this 
  1723.                 style is drawn as a rectangular frame with the current 
  1724.                 foreground color. Any text entered in the Text entry field is 
  1725.                 ignored with this option. 
  1726.  BackGround Frame This option is set to off by default. A control with this 
  1727.                 style draws a filled rectangle with the current background 
  1728.                 color. Any text entered in the Text entry field is ignored with 
  1729.                 this option. 
  1730.  Half Tone Frame This option is set to off by default. Half tone frames draw a 
  1731.                 rectangular frame with a halftone pattern in the current 
  1732.                 foreground color. Any text entered in the Text entry field is 
  1733.                 ignored with this option. 
  1734.  
  1735.  Icon           This option is set to off by default. Click on this style if 
  1736.                 you want to display an icon on the application or dialog 
  1737.                 window. The icon must have been previously identified as an 
  1738.                 object to Gpf. Refer to the Objects Pull- down section (Chapter 
  1739.                 3.5) for information on defining icon objects. 
  1740.  Bitmaps        This option is set to off by default. Click on this style if 
  1741.                 you want to display a bitmap on the application or dialog 
  1742.                 window. The bitmap must have been previously identified as an 
  1743.                 object to Gpf. Refer to the Objects Pull-down section (Chapter 
  1744.                 3.5) for information on defining bitmap objects. 
  1745.  
  1746.  If either Icon or Bitmap is selected as a style, the Icon/Bitmap combination 
  1747.  box will become  active with a list of defined Icon/Bitmap objects. Selecting 
  1748.  an object from the combination box will also fill in the Icon/Bitmap view box 
  1749.  located to the right of the Icon and Bitmap style radio button. 
  1750.  
  1751.  ForeGround Rect This option is set to off by default. This style draws a 
  1752.                 rectangle filled with the current foreground color. Any text 
  1753.                 entered in the Text entry field is ignored with this option. 
  1754.  BackGround Rect This option is set to off by default. This style draws a 
  1755.                 rectangle filled with the current background color. Any text 
  1756.                 entered in the Text entry field is ignored with this option. 
  1757.  Half Tone Rect This option is set to off by default. This style will draw a 
  1758.                 rectangle filled with a halftone pattern with the current 
  1759.                 foreground color. Any text entered in the Text entry field is 
  1760.                 ignored with this option. 
  1761.  
  1762.  Horz Options Group Box 
  1763.  
  1764.  The horizontal placement of the text in the Text field entry is controlled by 
  1765.  the options in this group box. These options are only available if the style 
  1766.  for the static control is marked Text. 
  1767.  
  1768.  Being radio button options, the horizontal controls are mutually exclusive. 
  1769.  
  1770.  Left Aligned   This option is set to on by default. Setting the Left Aligned 
  1771.                 option will draw the text entered in the text entry field flush 
  1772.                 left with the text box border. 
  1773.  Horizontal Centered This option is set to off by default. This option will 
  1774.                 center the text between the left and right boundaries of the 
  1775.                 text box. 
  1776.  Right Aligned  This option is set to off by default. Setting the Right Aligned 
  1777.                 option will draw the text entered in the text entry field flush 
  1778.                 right with the text box border. 
  1779.  
  1780.  Vert Options Group Box 
  1781.  
  1782.  The vertical placement of the text in the Text field entry is controlled by 
  1783.  the options in this group box. As with the horizontal controls, the style of 
  1784.  the static control must be set at Text. 
  1785.  
  1786.  Being radio button options, the vertical controls are mutually exclusive. 
  1787.  
  1788.  Top Aligned    This option is set to off by default. The Top Aligned option 
  1789.                 will draw the text entered in the Text entry field, starting in 
  1790.                 the top line of the text box. 
  1791.  Vert Centered  This option is set to on by default. Vertical centering will 
  1792.                 align the text between the top and bottom borders of the text 
  1793.                 box. This is typically used for single line text entries. 
  1794.  Bottom Aligned This option is set to off by default.  This option will draw 
  1795.                 the text entered in the Text entry field, starting along the 
  1796.                 bottom border of the text box. 
  1797.  
  1798.  Text Options Group Box 
  1799.  
  1800.  The Text Options group box contains a number of check boxes that will effect 
  1801.  the overall appearance of your text. 
  1802.  
  1803.  Check boxes are considered to turn on the related style when there is an 'X' 
  1804.  in the check box itself. If the check box is empty, Gpf will not generate the 
  1805.  option for the text. Each of the styles available will be described. 
  1806.  
  1807.   Word Wrap     This option is set to off by default. Click on this option if 
  1808.                 the text entry extends for more than one line, or if the text 
  1809.                 box is too small. Word wrap will automatically wrap the text to 
  1810.                 fit into the defined text box boundary. 
  1811.   Half Tone     This option is set to off by default. Setting this option on 
  1812.                 will display the text in a halftone pattern with the current 
  1813.                 text color. 
  1814.  
  1815.  Dialog Styles Group Box 
  1816.  
  1817.  The Dialog Styles group box contains a number of check boxes that will set 
  1818.  characteristics of the current static control. Typically these options are 
  1819.  used for defining characteristics of a control in dialog windows. 
  1820.  
  1821.   Group         This option is set to on by default. With this style set to on, 
  1822.                 the static control will act as the first member of a number of 
  1823.                 other controls in a group.  It will also be able to receive the 
  1824.                 keyboard or mouse focus. The group style remains in effect 
  1825.                 until the next control with a style such as this is found. 
  1826.   Tabstop       This option is set to off by default. This style is typically 
  1827.                 used in conjunction with the Group style. When set to on, the 
  1828.                 current control will be able to receive the focus when the user 
  1829.                 presses the TAB key to move between dialog controls. 
  1830.  
  1831.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  1832.                 will signal Gpf that you have completed any changes in the 
  1833.                 Static Control Styles dialog window and save your changes. 
  1834.  
  1835.            If any of the options you have selected will result in a change to 
  1836.            the controls appearance, Gpf will automatically update the control 
  1837.            to reflect those changes. 
  1838.  
  1839.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  1840.                 cause Gpf to abort the current operation. 
  1841.  
  1842.            If you have changed any options for the control while in the Static 
  1843.            Control Styles dialog window, Gpf will ignore the changes and 
  1844.            restore the original control settings. 
  1845.  
  1846.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  1847.                 Control Styles dialog window, you will be able to define the 
  1848.                 general help text for your control. The text that you enter 
  1849.                 will be displayed by the Presentation Manager Help Facility  if 
  1850.                 the user presses the F1 key when you finally run your compiled 
  1851.                 application. 
  1852.  
  1853.            You can also define an informational message for the control from 
  1854.            the Entry Extended Help dialog window. 
  1855.  
  1856.  Please refer to the Common Dialog Windows section (Chapter 3.10) for a 
  1857.  detailed explanation of the Entry Extended Help dialog window. 
  1858.  
  1859.  ACTION         Because static controls do not allow user input, the ACTION 
  1860.                 button is disabled. 
  1861.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  1862.                 static control. 
  1863.  
  1864.            When you select this button, Gpf will prompt you with a message to 
  1865.            confirm that you want to destroy this control, as well as any 
  1866.            children of this control. 
  1867.  
  1868.  
  1869. ΓòÉΓòÉΓòÉ 2.2.4. PullDown CreateButton ΓòÉΓòÉΓòÉ
  1870.  
  1871. Create Button (ALT+C,B) 
  1872.  
  1873. Clicking on the Create Button (ALT+C,B) action will generate a push button 
  1874. control item and allow you to attach it to any visible window. Once the control 
  1875. is placed on the target window or dialog window, Gpf will invoke the Button 
  1876. Control Styles dialog window. Refer to Figure 3-9. 
  1877.  
  1878. There are four main types of buttons: push buttons, radio buttons, check boxes, 
  1879. and three-state check boxes. The appearance and behavior of button controls is 
  1880. determined by the style of the button. There is also the user defined, or 
  1881. 'owner drawn' button which allows you to place a bitmap or icon on the window 
  1882. which will send notification messages to the application. The owner of the user 
  1883. defined button is responsible for the appearance of the button. 
  1884.  
  1885. As shown, the Button Control Styles dialog window consists of a number of entry 
  1886. fields, combination boxes, check boxes, radio buttons, and push buttons. Some 
  1887. of these controls are located in group boxes and will be noted in the following 
  1888. descriptions: 
  1889.  
  1890. Name 
  1891.  
  1892. Each button control has an identifying name. During program execution, the 
  1893. application's window procedure receives messages generated by the button in 
  1894. response to user input, either from the mouse or the keyboard. The application 
  1895. responds to these messages by using the identifier of the button control. 
  1896.  
  1897. Sibling 
  1898.  
  1899. The Sibling control is a combination box which displays, and allows you to 
  1900. choose which control item or window is a sibling of the item currently being 
  1901. defined. 
  1902.  
  1903. Text 
  1904.  
  1905. The Text control is an entry field where you specify the text that will appear 
  1906. inside, or next to, the button. Typically you can set a mnemonic character in 
  1907. the text so the user can select the button with the keyboard. For example, a 
  1908. button with the following text: 
  1909.  
  1910.            ~Select Me 
  1911.  
  1912.  would allow the user to select the button by pressing ALT+S. Use the tilde 
  1913.  character (~) to identify the mnemonic character. 
  1914.  
  1915.  Presentation 
  1916.  
  1917.  The Presentation control is a combination box which displays, and allows you 
  1918.  to choose, a presentation object for setting the font size, foreground and 
  1919.  background, and border colors of the button control. 
  1920.  
  1921.  The Presentation object must have been previously identified as an object to 
  1922.  Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  1923.  defining presentation objects. 
  1924.  
  1925.  Control Styles Group Box 
  1926.  
  1927.  The Control Styles group box contains a number of radio buttons that define 
  1928.  what type of button the newly created control is. 
  1929.  
  1930.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  1931.  in the group at one time. Each of the control styles will be described: 
  1932.  
  1933.  Radio Button   This option is set to off by default. Radio buttons are 
  1934.                 typically used in a mutually exclusive group. The application 
  1935.                 is responsible for responding to state changes (i.e. button 
  1936.                 clicked messages) for this button as well as other radio 
  1937.                 buttons within the group. 
  1938.  Auto Radio Button This option is set to off by default. This style is similar 
  1939.                 to the Radio Button, but the state changes are handled 
  1940.                 automatically by the system. The state of the button can be 
  1941.                 checked with OS/2 Presentation Manager API calls. 
  1942.  Check Box      This option is set to off by default. A check box is a small 
  1943.                 square that is empty when it is not selected, and contains a 
  1944.                 small 'x' when selected. The text for the check box is 
  1945.                 displayed to the right of the small square. As with the Radio 
  1946.                 Button, the owner application window is responsible for 
  1947.                 changing the check box state. 
  1948.  Auto Check Box This option is set to off by default. This style is similar to 
  1949.                 the Check Box, but the state changes are handled automatically 
  1950.                 by the system. As with auto radio buttons, the state of the 
  1951.                 check box can be queried and set with OS/2 Presentation Manager 
  1952.                 API calls. 
  1953.  3 State        This option is set to off by default. The 3 State check box 
  1954.                 extends the normal check box, except that it toggles  between 
  1955.                 selected, unselected, and halftone states. The owner 
  1956.                 application window is responsible for changing the 3 state 
  1957.                 appearance. 
  1958.  Auto 3 State   This option is set to off by default. The Auto 3 State check 
  1959.                 box is similar to the 3 State check box, but the state changes 
  1960.                 are handled automatically by the system. There are API calls 
  1961.                 available for checking the current status of the Auto 3 State. 
  1962.  Push Button    This option is set to on by default. The Push Button is the 
  1963.                 classic button style. When the user clicks on this button, or 
  1964.                 optionally uses a mnemonic key, the button sends notification 
  1965.                 messages to the owner window. 
  1966.  User Button    This option is set to off by default. The User Button can be a 
  1967.                 bitmap object drawn by the user. As with the normal push 
  1968.                 button, notification messages are sent to the owner window when 
  1969.                 the button is selected. When this option is selected, both the 
  1970.                 Normal and Hilited Bitmap combination boxes are enabled. You 
  1971.                 can select a defined bitmap object for both the normal and 
  1972.                 highlighted state of the button. Bitmaps must have been 
  1973.                 identified as an object to appear in the combination box list. 
  1974.                 Refer to the Objects Pull-down section (Chapter 3.5) for 
  1975.                 information on defining bitmap objects. 
  1976.  
  1977.  Button Options Group Box 
  1978.  
  1979.  The Button Options group box contains a number of check boxes that define the 
  1980.  operational characteristics of the button. This group box is only enabled when 
  1981.  the Push Button or User Button styles have been chosen. 
  1982.  
  1983.  Being check boxes, Gpf will generate the option if set to ON, and you may 
  1984.  combine more than one option per button. Each of the options will be described 
  1985.  below: 
  1986.  
  1987.   Default       This option is set to off by default. A button with this style 
  1988.                 is outlined with a heavy black border. A user can select this 
  1989.                 button by pressing the ENTER key. 
  1990.   No Focus      This option is set to off by default. A button with this style 
  1991.                 does not receive the focus, even when selected. 
  1992.   No Cursor     This option is set to off by default. With this style set the 
  1993.                 user will be unable to move the focus to this button using the 
  1994.                 keyboard cursor keys. 
  1995.   No Border     This option is set to off by default. With this style set, the 
  1996.                 button is drawn without a border, in effect removing the 
  1997.                 'button' look and feel. These buttons, when selected, will 
  1998.                 still send notification messages to the application. 
  1999.  
  2000.  Alias Group Box 
  2001.  
  2002.  Presentation Manager maintains certain default notification messages for 
  2003.  pushbuttons. The Alias group box allows you to define one of these for the 
  2004.  current button control. 
  2005.  
  2006.  Being radio buttons, these options are mutually exclusive. Note that Aliasing 
  2007.  is only allowed for buttons with the Push Button style set. 
  2008.  
  2009.  None           This option is set to on by default. The currently defined 
  2010.                 button does not send an aliased notification message to the 
  2011.                 application window. In this case, the message sent is the 
  2012.                 contents of the name entered in the Name entry field. 
  2013.  Ok             This option is set to off by default. With this button option, 
  2014.                 the defined button will send the application window a DID_OK 
  2015.                 message. 
  2016.  Cancel         This option is set to off by default. With this button option, 
  2017.                 the defined button will send the application window a 
  2018.                 DID_CANCEL message. 
  2019.  
  2020.  Dialog Styles Group Box 
  2021.  
  2022.  The Dialog Styles group box contains a number of check boxes that will set 
  2023.  characteristics of the current button control. Typically these options are 
  2024.  used for defining characteristics of a control in dialog windows. 
  2025.  
  2026.   Group         This option is set to off by default. With this style set to 
  2027.                 on, the button control will act as the first member of a number 
  2028.                 of other buttons in a group. It will receive the keyboard or 
  2029.                 mouse focus. The group style remains in effect until the next 
  2030.                 control with a style such as this is found. 
  2031.   Tabstop       This option is set to on by default. This style is typically 
  2032.                 used in conjunction with the Group style. When set to on, the 
  2033.                 current control will receive the focus when the user presses 
  2034.                 the TAB key to move between dialog controls. 
  2035.  
  2036.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2037.                 will signal Gpf that you have completed any changes in the 
  2038.                 Button Control Styles dialog window and will save your changes. 
  2039.  
  2040.            If any of the options you have selected will result in a change  to 
  2041.            the button control appearance, Gpf will automatically update the 
  2042.            button to reflect those changes. 
  2043.  
  2044.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  2045.                 cause Gpf to abort the current operation. 
  2046.  
  2047.            If you have changed any options for the button control while in the 
  2048.            Button Control Styles dialog window, Gpf will ignore the changes and 
  2049.            restore the original settings. 
  2050.  
  2051.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  2052.                 Control Styles dialog window, you will be able to define the 
  2053.                 general help text for your control. The text that you enter 
  2054.                 will be displayed by the Presentation Manager Help Facility if 
  2055.                 the user presses the F1 key when you finally run your compiled 
  2056.                 application. 
  2057.  
  2058.            You can also define an informational message for the control from 
  2059.            the Entry Extended Help dialog window. 
  2060.  
  2061.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2062.  detailed explanation of the Entry Extended Help dialog window. 
  2063.  
  2064.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  2065.                 window. From this dialog window you can set the processing 
  2066.                 actions desired for the button control item when the user 
  2067.                 selects it. The Action On dialog window allows you to define 
  2068.                 processing for the following user action: 
  2069.  
  2070.            Click- This user action occurs when the user clicks on the button 
  2071.            control item with the mouse, or invokes the button control item with 
  2072.            an accelerator key. You can define the action associated with the 
  2073.            button control item selection from a list of pre-defined actions, or 
  2074.            with user developed source code. 
  2075.            The click option is listed in the Action On dialog window. To select 
  2076.            an action from the list box, either click on the target with the 
  2077.            mouse, or use the cursor keys on the keyboard. 
  2078.  
  2079.  View/Modify Action On Once the action has been selected, and the processing 
  2080.                 for that selection is to be viewed or modified, click on the 
  2081.                 View/Modify Action On (ALT+V) button. This will invoke the 
  2082.                 Action List dialog window. 
  2083.  
  2084.  Action List dialog windows, and associated processes, are described in the 
  2085.  Common Dialog Windows section (section 3.10). 
  2086.  
  2087.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2088.                 button control item. 
  2089.  
  2090.            When you select this option, Gpf will prompt you with a message to 
  2091.            confirm that you want to destroy this button, as well as any 
  2092.            children of this control. 
  2093.  
  2094.  
  2095. ΓòÉΓòÉΓòÉ 2.2.5. PullDown CreateListBox ΓòÉΓòÉΓòÉ
  2096.  
  2097. Create Listbox (ALT+C,L) 
  2098.  
  2099. Clicking on the Create Listbox (ALT+C,L) action will generate a list box 
  2100. control and allow you to attach it to any visible window. Once the control is 
  2101. placed on the target window or dialog window, Gpf will invoke the Listbox 
  2102. Control Styles dialog window. Refer to Figure 3-10. 
  2103.  
  2104. As shown, the Listbox Control Styles dialog window consists of a number of 
  2105. entry fields, combination boxes, check boxes, radio buttons, and pushbuttons. 
  2106. Some of these controls are located in group boxes and will be noted in the 
  2107. following descriptions: 
  2108.  
  2109. Name 
  2110.  
  2111. Each listbox has an identifying name. During program execution, the 
  2112. application's window procedure receives messages generated by the listbox in 
  2113. response to user input. The application responds to these messages by using 
  2114. this identifier of the listbox control. 
  2115.  
  2116. OS/2 Presentation Manager also has a set of functions which can manipulate 
  2117. items in a list box using the Name identifier as an argument. 
  2118.  
  2119. Sibling 
  2120.  
  2121. The Sibling control is a combination box which displays, and allows you to 
  2122. choose which control item, or window, will be a sibling of the listbox 
  2123. currently being defined. 
  2124.  
  2125. Presentation 
  2126.  
  2127. The Presentation control is a combination box which displays and allows you to 
  2128. choose a presentation object for setting the font size, foreground and 
  2129. background, and border colors of the listbox items. 
  2130.  
  2131. The Presentation object must have been previously identified as an object to 
  2132. Gpf. Refer to the Objects Pull-down section for information on defining 
  2133. presentation objects. 
  2134.  
  2135. Control Styles Group Box 
  2136.  
  2137. The Control Styles group box contains a number of check boxes that define what 
  2138. type of attributes can be applied to the listbox control. 
  2139.  
  2140. Being check boxes, Gpf will generate the option if it is set to on. You may 
  2141. combine more than one option per listbox. Each of the options will be described 
  2142. below: 
  2143.  
  2144.   Horizontal Scroll Bar This option is set to off by default. When Gpf 
  2145.                 generates the listbox control, it is automatically drawn with a 
  2146.                 vertical scroll bar. Click this option on if you want a 
  2147.                 horizontal scroll bar drawn on this listbox as well. 
  2148.   Multiple Selection This option is set to off by default. With this option on, 
  2149.                 a user can select multiple listbox items as opposed to just one 
  2150.                 item. 
  2151.  
  2152.   Owner Draw    This option is set to on by default. When the listbox must be 
  2153.                 redrawn, Presentation Manager will send a notification message 
  2154.                 to the owner window of the list box. This includes when items 
  2155.                 must be hilited ( selected ). Another important effect of Owner 
  2156.                 Draw is the proper columnar alignment of proportional font 
  2157.                 text, e.g. when several fields of a DBM table is displayed in 
  2158.                 the listbox. 
  2159.   No Adjust Position This option is off by default. With this option set to on, 
  2160.                 the listbox height will automatically adjust to a multiple of 
  2161.                 the height of a listbox selection. 
  2162.  
  2163.  Sort Options Group Box 
  2164.  
  2165.  The Sort Options group box contains a number of radio buttons that define how 
  2166.  text items that fill the listbox should be sorted. This option is active only 
  2167.  if the items being loaded are done so via SQL\DBM table functions, i.e. these 
  2168.  must be columns from the database selected in the Program Properties screen. 
  2169.  
  2170.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  2171.  in the group at one time . Each of the sort options will be described as 
  2172.  follows: 
  2173.  
  2174.  None           This option is on by default. Text items in a listbox are 
  2175.                 listed in the order that they were inserted in. 
  2176.  Ascending      This option is set to off by default. This option will cause 
  2177.                 text items to be inserted in ascending alphabetical order into 
  2178.                 the listbox. 
  2179.  Descending     This option is set to off by default. This option will cause 
  2180.                 text items to be inserted in descending alphabetical order into 
  2181.                 the listbox. 
  2182.  
  2183.  Dialog Styles Group Box 
  2184.  
  2185.  The Dialog Styles group box contains a number of check boxes that will set 
  2186.  characteristics of the current listbox control. Typically these options are 
  2187.  for defining characteristics of a control in dialog windows. 
  2188.  
  2189.   Group         This option is set to on by default. With this style set to on, 
  2190.                 the listbox control will act as an encapsulated group. It will 
  2191.                 receive the keyboard or mouse focus. The group style remains in 
  2192.                 effect until the next control with a style such as this is 
  2193.                 found. 
  2194.   Tabstop       This option is set to on by default. This style is typically 
  2195.                 used in conjunction with the Group style. When set to on, the 
  2196.                 current control will receive the focus when the user presses 
  2197.                 the TAB key to move between dialog controls. 
  2198.  
  2199.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2200.                 will signal Gpf that you have completed any changes in the 
  2201.                 Listbox Control Styles dialog window. 
  2202.  
  2203.            If any of the options you have selected will result in a change to 
  2204.            the listbox control appearance, Gpf will automatically update the 
  2205.            listbox to reflect those changes. 
  2206.  
  2207.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  2208.                 cause Gpf to abort the current operation. 
  2209.  
  2210.            If you have changed any options for the button control while in the 
  2211.            Listbox Control Styles dialog window, Gpf will ignore the changes 
  2212.            and restore the original settings. 
  2213.  
  2214.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) button in the 
  2215.                 Static Control Styles dialog window, you will be able to define 
  2216.                 the general help text for your control. The text that you enter 
  2217.                 will be displayed by the Presentation Manager Help Facility if 
  2218.                 the user presses the F1 key when you finally run your compiled 
  2219.                 application. 
  2220.  
  2221.            You can also define an informational message for the control from 
  2222.            the Entry Extended Help dialog window. 
  2223.  
  2224.  Please refer to the Common Dialog Windows (section 3.10) for a detailed 
  2225.  explanation of the Entry Extended Help dialog window. 
  2226.  
  2227.  ASSOCIATE      This button is active if you have specified a database in the 
  2228.                 Program Properties (see Files pulldown) screen. If active, 
  2229.                 pressing this button will place you in the Associate dialog, as 
  2230.                 described in the Common Dialog Windows section, 3.10. Briefly 
  2231.                 speaking, from here you can specify which tables\columns to 
  2232.                 extract from your DB, and what is to be done with them. 
  2233.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  2234.                 window. From this dialog window you can set the processing 
  2235.                 actions for the listbox control item when the user selects it. 
  2236.                 The Action On dialog window allows you to define processing for 
  2237.                 the following user actions: 
  2238.  
  2239.            Click - Presentation Manager generates a notification message to the 
  2240.            owning window when the user clicks on any item in the list box. 
  2241.  
  2242.            Double Click - Double clicking on an item in a listbox will cause 
  2243.            Presentation Manager to send a LN_ENTER notification message to the 
  2244.            listbox owner. This message, in effect, simulates a user pressing 
  2245.            the ENTER key. 
  2246.  
  2247.            Set and Kill Focus - When an item in a listbox is selected, the 
  2248.            listbox is given focus by the system. When another control, menu, 
  2249.            button, etc., is chosen outside of the listbox, the listbox loses 
  2250.            the focus. 
  2251.  
  2252.  The above options are listed in the Action On dialog window. To select an 
  2253.  action from the list box, either click on the target with the mouse, or use 
  2254.  the cursor keys on the keyboard. 
  2255.  
  2256.  View/Modify Action On Once the action has been selected, and the processing 
  2257.                 for that selection is to be viewed or modified, click on the 
  2258.                 View/Modify Action On (ALT+V) button. This will invoke the 
  2259.                 Action List dialog window. 
  2260.  
  2261.  Action List dialog windows, and associated processes, are described in the 
  2262.  Common Dialog Windows section (section 3.10). 
  2263.  
  2264.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2265.                 listbox control. 
  2266.  
  2267.            When you select this button, Gpf will prompt you with a message to 
  2268.            confirm that you want to destroy this listbox control, as well as 
  2269.            any children of this listbox. 
  2270.  
  2271.  
  2272. ΓòÉΓòÉΓòÉ 2.2.6. PullDown CreateComboBox ΓòÉΓòÉΓòÉ
  2273.  
  2274. Create Combobox (ALT+C,C) 
  2275.  
  2276. Clicking on the Create Combobox (ALT+C,C) action will generate a combination 
  2277. box control and allow you to attach it to any visible window. Once the control 
  2278. is placed on the target window or dialog window, Gpf will invoke the Combobox 
  2279. Control Styles dialog window. Refer to Figure 3-11. 
  2280.  
  2281. Combobox controls are combination boxes. A combination box is two controls in 
  2282. one: an entry field and a list box. Combination boxes let the user enter data 
  2283. by typing in the entry field or by choosing from a list in the list box. 
  2284.  
  2285. As shown, the Combobox Control Styles dialog window consists of entry fields, 
  2286. combination boxes, check boxes, radio buttons, and pushbuttons. Some of these 
  2287. controls are located in group boxes and will be noted in the following 
  2288. descriptions: 
  2289.  
  2290. Name 
  2291.  
  2292. Each combobox has an identifying name. During program execution, the 
  2293. application's window procedure receives messages generated by the combination 
  2294. box in response to user input. The application responds to these messages by 
  2295. using this identifier of the combination box control. 
  2296.  
  2297. OS/2 Presentation Manager also has a set of functions which can manipulate 
  2298. items in a combination box using the Name identifier as an argument. 
  2299.  
  2300. Sibling 
  2301.  
  2302. The Sibling control is a combination box which displays and allows you to 
  2303. choose which control item or window will be a sibling of the Combobox currently 
  2304. being defined. 
  2305.  
  2306. Presentation 
  2307.  
  2308. The Presentation control is a combination box which displays and allows you to 
  2309. choose a presentation object for setting the font size and the foreground, 
  2310. background and border colors of the Combobox items. 
  2311.  
  2312. The Presentation object must have been previously identified as an object to 
  2313. Gpf. Refer to the Objects Pull-down section for information on defining 
  2314. presentation objects. 
  2315.  
  2316. Control Styles Group Box 
  2317.  
  2318. The Control Styles group box contains a number of radio buttons that define the 
  2319. Combobox style. 
  2320.  
  2321. Radio buttons are mutually exclusive; only one option can be set at one time. 
  2322. Each of the combination box options will be described below: 
  2323.  
  2324.  Simple         This option is set to OFF by default. A simple combination box 
  2325.                 displays its list box. The user can enter and edit text in the 
  2326.                 entry field or choose items from the list box. 
  2327.  Drop Down      This option is set to OFF by default. A simple drop down 
  2328.                 combination box displays its list box only if the user clicks 
  2329.                 the drop down button at the right end of the entry field. It 
  2330.                 hides the list box when the user clicks the drop down button a 
  2331.                 second time. In a drop down combination box, the user can enter 
  2332.                 and edit text in the entry field or choose items from the list 
  2333.                 box. 
  2334.  Drop Down List This option is set to ON by default. A drop down list 
  2335.                 combination box is similar to the simple drop down combination 
  2336.                 box, but the user cannot enter or edit text in the entry field. 
  2337.                 The user can only choose items from the list box. 
  2338.  
  2339.  Dialog Styles Group Box 
  2340.  
  2341.  The Dialog Styles group box contains a number of check boxes that will set 
  2342.  characteristics of the current Combobox control. Typically these options are 
  2343.  used for defining characteristics of a control in dialog windows. 
  2344.  
  2345.   Group         This option is set to on by default. With this style set to on, 
  2346.                 the Combobox control will act as an encapsulated group. It will 
  2347.                 receive the keyboard or mouse focus. The group style remains in 
  2348.                 effect until the next control with a style such as this is 
  2349.                 found. 
  2350.   Tabstop       This option is set to on by default. This style is typically 
  2351.                 used in conjunction with the Group style. When set to on, the 
  2352.                 current control will receive the focus when the user presses 
  2353.                 the TAB key to move between dialog controls. 
  2354.  
  2355.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2356.                 will signal Gpf that you have completed any changes in the 
  2357.                 Combobox Control Styles dialog window. 
  2358.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  2359.                 cause Gpf to abort the current operation. 
  2360.  
  2361.            If you have changed any options for the Combobox control while in 
  2362.            the Combobox Control Styles dialog window, Gpf will ignore the 
  2363.            changes and restore the original settings. 
  2364.  
  2365.  ENTRY HELP     By clicking  the Entry Extended Help (ALT+E) in the Static 
  2366.                 Control Styles dialog window, you will be able to define the 
  2367.                 general help text for your control. The text that you enter 
  2368.                 will be displayed by the Presentation Manager Help Facility if 
  2369.                 the user presses the F1 key when you finally run your compiled 
  2370.                 application. 
  2371.  
  2372.            You can also define an informational message for the control with 
  2373.            the Entry Extended Help dialog window. 
  2374.  
  2375.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2376.  detailed explanation of the Entry Extended Help dialog window. 
  2377.  
  2378.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  2379.                 window. From this dialog window you can set the processing 
  2380.                 actions for the Combobox control item when the user selects it. 
  2381.                 The Action On dialog window allows you to define processing for 
  2382.                 the following user actions: 
  2383.  
  2384.            Click - Presentation Manager generates a notification message to the 
  2385.            owning window when the user clicks on any item in the list box. 
  2386.            Double Click - Double clicking on an item in a Combobox will cause 
  2387.            Presentation Manager to send a notification message to the Combobox 
  2388.            owner. This message, in effect, simulates a user pressing the ENTER 
  2389.            key. 
  2390.            Change Data - When an item in a Combobox entry field is changed, the 
  2391.            Combobox sends a notification message to the owner window. 
  2392.  
  2393.  The above options are listed in the Action On dialog window. To select an 
  2394.  action from the list box, either click on the target with the mouse, or use 
  2395.  the cursor keys on the keyboard. 
  2396.  
  2397.  View/Modify Action On Once the action has been selected, and the processing 
  2398.                 for that selection is to be viewed or modified, click on the 
  2399.                 View/Modify Action On (ALT+V) button. This will invoke the 
  2400.                 Action List dialog window. 
  2401.  
  2402.  Action List dialog windows, and associated processes, are described in the 
  2403.  Common Dialog Windows section (Chapter 3.10). 
  2404.  
  2405.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2406.                 Combobox control. 
  2407.  
  2408.            When you select this button, Gpf will prompt you with a message to 
  2409.            confirm that you want to destroy this Combobox control, as well as 
  2410.            any children of this Combobox. 
  2411.  
  2412.  
  2413. ΓòÉΓòÉΓòÉ 2.2.7. PullDown CreateEntryField ΓòÉΓòÉΓòÉ
  2414.  
  2415. Create Entry Field (ALT+C,E) 
  2416.  
  2417. Clicking on the Create Entry Field (ALT+C,E) action will generate an entry 
  2418. field control and allow you to attach it to any visible window. Once the 
  2419. control is placed on the target window or dialog window, Gpf will invoke the 
  2420. Entry Field Control Styles dialog window. Refer to Figure 3-12. 
  2421.  
  2422. Entry fields are rectangular windows that display a single line of text a user 
  2423. can edit. When an entry field has the focus, it displays a flashing bar, called 
  2424. the cursor, that marks the current point where text can be entered. Entry 
  2425. fields send notification messages to the owner window when gaining or losing 
  2426. focus, or when the contents of the entry field have changed. 
  2427.  
  2428. As shown, the Entry Field Control Styles dialog window consists of entry 
  2429. fields, combination boxes, check boxes, radio buttons, and pushbuttons. Some of 
  2430. these controls are located in group boxes and will be noted in the following 
  2431. descriptions: 
  2432.  
  2433. Name 
  2434.  
  2435. Each entry field has an identifying name. During program execution, the 
  2436. application's window procedure receives messages generated by the entry field 
  2437. in response to user input. The application responds to these messages by using 
  2438. this identifier of the entry field control. 
  2439.  
  2440. OS/2 Presentation Manager also has a set of functions which can manipulate text 
  2441. in the entry field using the Name identifier as an argument. 
  2442.  
  2443. Sibling 
  2444.  
  2445. The Sibling control is a combination box which displays and allows you to 
  2446. choose which control item or window will be a sibling of the entry field 
  2447. currently being defined. 
  2448.  
  2449. Text 
  2450.  
  2451. You can specify the text that is displayed in the entry field with this option. 
  2452. The application can replace this default text during runtime as well using OS/2 
  2453. Presentation Manager API calls. 
  2454.  
  2455. Presentation 
  2456.  
  2457. The Presentation control is a combination box which displays and allows you to 
  2458. choose a presentation object for setting the font size, as well as the 
  2459. foreground, background, and border colors of the entry field text. 
  2460.  
  2461. The Presentation object must have been previously identified as an object to 
  2462. Gpf. Refer to the Objects Pull-down section (Chapter 3.X.X) for information on 
  2463. defining presentation objects. 
  2464.  
  2465. Text Styles Group Box 
  2466.  
  2467. The Text Styles group box contains a number of radio buttons that define how 
  2468. the text in the entry field will be drawn. 
  2469.  
  2470. Radio buttons are mutually exclusive; only one option can be set at one time. 
  2471. Each of the entry field options will be described below. 
  2472.  
  2473.  Left Aligned   This option is set to on by default. Entry field controls with 
  2474.                 this style will display text flush left within the control 
  2475.                 window. 
  2476.  Centered       This option is set to off by default. Click this option on if 
  2477.                 you want to center the text in the entry field control window. 
  2478.  Right Aligned  This option is set to off by default. Entry field controls with 
  2479.                 this style will display text flush right within the control 
  2480.                 window. 
  2481.  
  2482.  Entry Field Options Group Box 
  2483.  
  2484.  The Entry Field Options group box contains a number of check boxes that 
  2485.  control the display and formatting of text in the entry field control. 
  2486.  
  2487.  Being check boxes, Gpf will generate the option if set to on. You may combine 
  2488.  more than one option with the entry field control.    Each of the options are 
  2489.  described as follows: 
  2490.  
  2491.   Margin        This option is set to ON by default. The margin option will 
  2492.                 paint a wide border around the entry field control window. 
  2493.   Command       ** currently undefined except in PM SDK header files.  Reserved 
  2494.                 for future expansion. 
  2495.   Autoscroll    This option is set to on by default. With this option set to 
  2496.                 on, the entry field control will scroll lengthy text within the 
  2497.                 control window horizontally. 
  2498.   Unreadable    This option is set to off by default. When this option is 
  2499.                 selected,  any text entered in the entry field control will be 
  2500.                 masked with asterisk '*' characters. This is a useful option 
  2501.                 for entering passwords, or other sensitive data entry items. 
  2502.   Autotab       ** currently undefined. 
  2503.   Read Only     This option is off by default. When this option is set to on, 
  2504.                 the user cannot change the text within the entry field. 
  2505.  
  2506.  Dialog Styles Group Box 
  2507.  
  2508.  The Dialog Styles group box contains a number of check boxes that will set 
  2509.  characteristics for the current entry field control. Typically, these options 
  2510.  are for defining characteristics of a control in dialog windows. 
  2511.  
  2512.   Group         This option is set to on by default. With this style set to on, 
  2513.                 the entry field control will act as an encapsulated group. It 
  2514.                 will receive the keyboard or mouse focus. The group style 
  2515.                 remains in effect until the next control with a similar style 
  2516.                 is found. 
  2517.   Tabstop       This option is set to on by default. This style is typically 
  2518.                 used in conjunction with the Group style. When set to on, the 
  2519.                 current control will receive the focus when the user presses 
  2520.                 the TAB key to move between dialog controls. 
  2521.  
  2522.  Control Window Group Box 
  2523.  
  2524.  The Control Window group box provide additional options for setting 
  2525.  characteristics of an entry field control. 
  2526.  
  2527.   Max Length    This option is off by default. When the check box is set, a 
  2528.                 text length entry field is displayed. You can set the maximum 
  2529.                 length of characters that the user may enter with this option. 
  2530.  
  2531.                 NOTE: this function is disabled if the current field is 
  2532.                 associated with a database (selected in the Program Properties 
  2533.                 dialog.) 
  2534.  
  2535.   Picture Mask  ** currently undefined. 
  2536.  
  2537.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2538.                 will signal Gpf that you have completed any changes in the 
  2539.                 Entry Field Control Styles dialog window. 
  2540.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  2541.                 cause Gpf to abort the current operation. 
  2542.  
  2543.            If you have changed any options for the Entry Field control while in 
  2544.            the Entry Field Control Styles dialog window, Gpf will ignore the 
  2545.            changes and restore the original settings. 
  2546.  
  2547.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Entry Field 
  2548.                 Control Styles dialog window, you will be able to define the 
  2549.                 general help text for your control. The text that you enter 
  2550.                 will be displayed by the Presentation Manager Help Facility if 
  2551.                 the user presses the F1 key when you finally run your compiled 
  2552.                 application. 
  2553.  
  2554.            You can also define an informational message for the control from 
  2555.            the Entry Extended Help dialog window. 
  2556.  
  2557.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2558.  detailed explanation of the Entry Extended Help dialog window. 
  2559.  
  2560.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  2561.                 window. From this dialog window you can set the processing 
  2562.                 actions for the Entry Field control item when the user selects 
  2563.                 it. The Action On dialog window allows you to define processing 
  2564.                 for the following user actions: 
  2565.  
  2566.            Kill Focus - When the entry field loses the keyboard focus, a 
  2567.            notification message is sent to the owner window. 
  2568.            Set Focus - When the entry field receives the keyboard focus, a 
  2569.            notification message is sent to the owner window. 
  2570.            Change Data - When the contents of the entry field changes, a 
  2571.            notification message is sent to the owner window. 
  2572.            The above options are listed in the Action On dialog window. To 
  2573.            select an action from the list box, either click on the target with 
  2574.            the mouse, or use the cursor keys on the keyboard. 
  2575.  
  2576.  View/Modify Action On Once the action has been selected, and the processing 
  2577.                 for that selection are to be viewed or modified, click on the 
  2578.                 View/Modify Action On (ALT+V) button. This will invoke the 
  2579.                 Action List dialog window. 
  2580.  
  2581.  Action List dialog windows and associated processes are described in the 
  2582.  Common Dialog Windows section (Chapter 3.10). 
  2583.  
  2584.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2585.                 Entry Field control. 
  2586.  
  2587.            When you select this button, Gpf will prompt you with a message to 
  2588.            confirm  that you want to destroy this Entry Field control, as well 
  2589.            as any children of this Entry Field. 
  2590.  
  2591.  
  2592. ΓòÉΓòÉΓòÉ 2.2.8. PullDown CreateMLE ΓòÉΓòÉΓòÉ
  2593.  
  2594. Create Multiple LE (ALT+C,U) 
  2595.  
  2596. Clicking on the Create Multiple LE (ALT+C,U) action will generate a Multiple 
  2597. Line Entry Field (MLE) control and allow you to attach it to any visible 
  2598. window. Once the control is placed on the target window or dialog window, Gpf 
  2599. will invoke the Multiple Line Entry Control Styles dialog window. Refer to 
  2600. Figure 3-13. 
  2601.  
  2602. A Multiple Line Entry Field is a sophisticated entry field control window that 
  2603. the user can use to view and edit multiple lines of text. In addition, a 
  2604. multiple line entry field provides all the text editing capability of a simple 
  2605. text editor, making these features readily available to applications. 
  2606.  
  2607. As shown, the Multiple Line Entry Field Control Styles dialog window consists 
  2608. of entry fields, combination boxes, check boxes, radio buttons, and 
  2609. pushbuttons. Some of these controls are located in group boxes and will be 
  2610. noted in the following descriptions: 
  2611.  
  2612. Name 
  2613.  
  2614. Each Multiple LE control has an identifying name. During program execution, the 
  2615. application's window procedure receives messages generated by the Multiple LE 
  2616. control in response to user input. The application responds to these messages 
  2617. by using this identifier of the Multiple LE control. 
  2618.  
  2619. OS/2 Presentation Manager also has a set of functions which can manipulate text 
  2620. in the Multiple Line Entry field using the handle of the MLE as an argument. 
  2621.  
  2622. Sibling 
  2623.  
  2624. The Sibling control is a combination box which displays and allows you to 
  2625. choose which control item or window will be a sibling of the Multiple Line 
  2626. Entry field currently being defined. 
  2627.  
  2628. Text 
  2629.  
  2630. You can specify the text that is initially displayed in the Multiple Line Entry 
  2631. field with this option. The application can replace this default text during 
  2632. runtime as well by using OS/2 Presentation Manager API calls. 
  2633.  
  2634. Presentation 
  2635.  
  2636. The Presentation control is a combination box which displays and allows you to 
  2637. choose a presentation object for setting the font size, as well as foreground, 
  2638. background, and border colors of the Multiple Line Entry field text. 
  2639.  
  2640. The Presentation object must have been previously identified as an object to 
  2641. Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  2642. defining presentation objects. 
  2643.  
  2644. Control Styles Group Box 
  2645.  
  2646. The Control Styles group box contains a number of check boxes which allow you 
  2647. to set a number of characteristic styles for the Multiple LE field control. 
  2648. Each of the Multiple LE options will be described below. 
  2649.  
  2650. Check boxes are considered to be set to on when a small 'x' appears in the 
  2651. check box. 
  2652.  
  2653.   Border        This option is set to ON by default. With this option set to 
  2654.                 on, the Multiple LE field will have a black border drawn around 
  2655.                 it. 
  2656.   Vert Scroll Bar This option is set to on by default. A vertical scroll bar is 
  2657.                 added to the Multiple LE. The initial state of the scroll bar 
  2658.                 is disabled until the number of lines of text exceed the 
  2659.                 Multiple LE height. 
  2660.   Word Wrap     This option is set to ON by default. When a line of text 
  2661.                 exceeds the length ( width ) of the Multiple LE, lines will 
  2662.                 automatically break at a convenient place in the text and wrap 
  2663.                 to the next line. 
  2664.   Horz Scroll Bar This option is set to OFF by default. A horizontal scroll bar 
  2665.                 is added to the Multiple LE. The initial state of the scroll 
  2666.                 bar is disabled until the width of the text line exceeds the 
  2667.                 Multiple LE width. 
  2668.   Read Only     This option is set to OFF by default. With this option set, the 
  2669.                 Multiple LE will not accept any date edit or entries. This is 
  2670.                 typically used to display static text. 
  2671.   Ignore Tab    This option is set to on by default. This directs the Multiple 
  2672.                 LE to ignore tabs entered by the user. 
  2673.  
  2674.  Dialog Styles Group Box 
  2675.  
  2676.  The Dialog Styles group box contains a number of check boxes that will set 
  2677.  characteristics of the current Multiple LE field control. Typically these 
  2678.  options are for defining characteristics of a control in dialog windows. 
  2679.  
  2680.   Group         This option is set to on by default. With this style set to on, 
  2681.                 the Multiple LE field control will act as an encapsulated 
  2682.                 group. It will receive the keyboard or mouse focus. The group 
  2683.                 style remains in effect until the next control with a style 
  2684.                 such as this is found. 
  2685.   Tabstop       This option is set to on by default. This style is typically 
  2686.                 used in conjunction with the Group style. When set to on, the 
  2687.                 current control will receive the focus when the user presses 
  2688.                 the TAB key to move between dialog controls. 
  2689.  
  2690.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2691.                 will signal Gpf that you have completed any changes in the 
  2692.                 Multiple Line Entry Control Styles dialog window. 
  2693.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  2694.                 cause Gpf to abort the current operation. 
  2695.  
  2696.            If you have changed any options for the Multiple LE Field control 
  2697.            while in the Control Styles dialog window, Gpf will ignore the 
  2698.            changes and restore the original settings. 
  2699.  
  2700.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Multiple 
  2701.                 Line Entry Control Styles dialog window, you will be able to 
  2702.                 define the general help text for your control. The text that 
  2703.                 you enter will be displayed by the Presentation Manager Help 
  2704.                 Facility if the user presses the F1 key during application run 
  2705.                 time. 
  2706.  
  2707.            You can also define an informational message for the control from 
  2708.            the Entry Extended Help dialog window. 
  2709.  
  2710.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2711.  detailed explanation of the Entry Extended Help dialog window. 
  2712.  
  2713.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  2714.                 window. From this dialog window you can set the processing 
  2715.                 actions for the Multiple LE field control item when the user 
  2716.                 selects it. The Action On dialog window allows you to define 
  2717.                 processing for the following user actions: 
  2718.  
  2719.            Kill Focus - When the Multiple LE field loses the keyboard focus, a 
  2720.            notification message is sent to the owner window. 
  2721.  
  2722.            Set Focus- When the Multiple LE field receives the keyboard focus, a 
  2723.            notification message is sent to the owner window. 
  2724.  
  2725.            Change Data- When the contents of the Multiple LE field have 
  2726.            changed, a notification message is sent to the owner window. 
  2727.  
  2728.            The above options are listed in the Action On dialog window. To 
  2729.            select an action from the list box, either click on the target with 
  2730.            the mouse, or use the cursor keys on the keyboard. 
  2731.  
  2732.  View/Modify Action On Once the action has been selected, and the processing 
  2733.                 for that selection are to be viewed or modified, click the 
  2734.                 View/Modify Action On (ALT+V) button. This will invoke the 
  2735.                 Action List dialog window. 
  2736.  
  2737.  Action List dialog windows, and associated processes, are described in the 
  2738.  Common Dialog Windows section (section 3.10). 
  2739.  
  2740.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2741.                 current Multiple LE field control. 
  2742.  
  2743.            When you select this button, Gpf will prompt you with a message to 
  2744.            confirm that you want to destroy this Multiple LE Field, as well as 
  2745.            any children of this control. 
  2746.  
  2747.  
  2748. ΓòÉΓòÉΓòÉ 2.2.9. PullDown Create Vert Scroll Bar ΓòÉΓòÉΓòÉ
  2749.  
  2750. Create Vertical Scroll Bar (ALT+C,V) 
  2751.  
  2752. Clicking on the Create Vertical Scroll Bar (ALT+C,V) action will generate a 
  2753. vertical scroll bar control and allow you to attach it to any visible window. 
  2754. Once the control is placed on the target window or dialog window, Gpf will 
  2755. invoke the Scroll Bar Control Styles dialog window. Refer to Figure 3-14. 
  2756.  
  2757. Scroll bars are controls that take mouse and keyboard input and generate 
  2758. notification messages to the owner window. Applications typically use scroll 
  2759. bars to scroll the contents of a client window. 
  2760.  
  2761. As shown, the Scroll Bar Control Styles dialog window consists of entry fields, 
  2762. combination boxes, check boxes, and pushbuttons. Some of these controls are 
  2763. located in group boxes and are noted in the following descriptions: 
  2764.  
  2765. Name 
  2766.  
  2767. Each scroll bar control has an identifying name. During program execution, the 
  2768. application's window procedure receives messages generated by the scroll bar in 
  2769. response to user input. The application responds to these messages by using 
  2770. this identifier of the scroll bar control. 
  2771.  
  2772. OS/2 Presentation Manager also has a set of functions which can manipulate the 
  2773. slider portion, and the active/inactive state of the scroll bar control, using 
  2774. the Name identifier as an argument. 
  2775.  
  2776. Sibling 
  2777.  
  2778. The Sibling control is a combination box which displays and allows you to 
  2779. choose which control item, or window will be a sibling of the scroll bar 
  2780. currently being defined. 
  2781.  
  2782. Presentation 
  2783.  
  2784. The Presentation control is a combination box which displays and allows you to 
  2785. choose a presentation object for setting the font size, as well as the 
  2786. foreground, background, and border colors of the scroll bar control. 
  2787.  
  2788. The Presentation object must have been previously identified as an object to 
  2789. Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  2790. defining presentation objects. 
  2791.  
  2792. Control Styles Group Box 
  2793.  
  2794. The Control Styles group box contains a number of check boxes that will set the 
  2795. style for the current control. 
  2796.  
  2797. Check boxes are considered to be set to on when a small 'x' appears in the 
  2798. check box. Each of the control styles will be defined as follows: 
  2799.  
  2800.   Horizontal Scroll Bar This option is set to off by default. Setting this 
  2801.                 option to on will cause the created Vertical Scroll Bar to 
  2802.                 change appearance to a Horizontal Scroll Bar. 
  2803.   Thumb Size    This option is set to OFF by default. With this option set to 
  2804.                 on, the scroll bar slider will change its height to reflect the 
  2805.                 percentage of data visible and thus the percentage of the 
  2806.                 scroll bar that the slider should occupy. 
  2807.   Auto Track    ** currently undefined 
  2808.  
  2809.  Dialog Styles Group Box 
  2810.  
  2811.  The Dialog Styles group box contains a number of check boxes that will set 
  2812.  characteristics of the current scroll bar control. Typically these options are 
  2813.  used for defining characteristics of a control in dialog windows. 
  2814.  
  2815.   Group         This option is set to on by default. With this style set to on, 
  2816.                 the scroll bar control will act as an encapsulated group. It 
  2817.                 will receive the keyboard or mouse focus. The group style 
  2818.                 remains in effect until the next control with a style such as 
  2819.                 this is found. 
  2820.   Tabstop       This option is set to on by default. This style is typically 
  2821.                 used in conjunction with the Group style. When set to on, the 
  2822.                 current control will receive the focus when the user presses 
  2823.                 the TAB key to move between dialog controls. 
  2824.  
  2825.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2826.                 will signal Gpf that you have completed any changes in the 
  2827.                 Scroll Bar Control Styles dialog window. 
  2828.  
  2829.            If any of the options you have selected will result in a change to 
  2830.            the scroll bar control appearance, Gpf will automatically update the 
  2831.            control to reflect those changes. 
  2832.  
  2833.  ENTRY HELP     By clicking the Entry Extended  Help (ALT+E) in the Scroll bar 
  2834.                 Control Styles dialog window, you will be able to define the 
  2835.                 general help text for your control. The text that you enter 
  2836.                 will be displayed by the Presentation Manager Help Facility if 
  2837.                 the user presses the F1 key when you finally run your compiled 
  2838.                 application. 
  2839.  
  2840.            You can also define an informational message for the control from 
  2841.            the Entry Extended Help dialog window. 
  2842.  
  2843.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2844.  detailed explanation of the Entry Extended Help dialog  window. 
  2845.  
  2846.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2847.                 scroll bar control. 
  2848.  
  2849.            When you select this button, Gpf will prompt you with a message to 
  2850.            confirm that you want to destroy this Scroll bar control, as well as 
  2851.            any children of this scroll bar. 
  2852.  
  2853.  
  2854. ΓòÉΓòÉΓòÉ 2.2.10. PullDown Create Horz Scroll Bar ΓòÉΓòÉΓòÉ
  2855.  
  2856. Create Horizontal Scroll Bar (ALT+C,H) 
  2857.  
  2858. Clicking on the Create Horizontal Scroll Bar (ALT+C,H) action will generate a 
  2859. horizontal scroll bar control and allow you to attach it to any visible window. 
  2860. Once the control is placed on the target window or dialog window, Gpf will 
  2861. invoke the Scroll Bar Control Styles dialog window. Refer to Figure 3-15. 
  2862.  
  2863. Scroll bars are controls that take mouse and keyboard input and generate 
  2864. notification messages to the owner window. Applications typically use scroll 
  2865. bars to scroll the contents of a client window. 
  2866.  
  2867. As shown, the Scroll Bar Control Styles dialog window consists of entry fields, 
  2868. combination boxes, check boxes, and pushbuttons. Some of these controls are 
  2869. located in group boxes and will be noted in the following descriptions: 
  2870.  
  2871. Name 
  2872.  
  2873. Each scroll bar control has an identifying name. During program execution, the 
  2874. application's window procedure receives messages generated by the scroll bar in 
  2875. response to user input. The application responds to these messages by using 
  2876. this identifier of the scroll bar control. 
  2877.  
  2878. OS/2 Presentation Manager also has a set of functions which can manipulate the 
  2879. slider portion and the active/inactive state of the scroll bar control by using 
  2880. the Name identifier as an argument to OS/2 API functions. 
  2881.  
  2882. Sibling 
  2883.  
  2884. The Sibling control is a combination box which displays and allows you to 
  2885. choose which control item or window will be a sibling of the scroll bar 
  2886. currently being defined. 
  2887.  
  2888. Presentation 
  2889.  
  2890. The Presentation control is a combination box which displays and allows you to 
  2891. choose a presentation object for setting the font size as well as the 
  2892. foreground, background, and border colors of the scroll bar control. 
  2893.  
  2894. The Presentation object must have been previously identified as an object to 
  2895. Gpf. Refer to the Objects Pull-down section (section 3.10) for information on 
  2896. defining presentation objects. 
  2897.  
  2898. Control Styles Group Box 
  2899.  
  2900. The Control Styles group box contains a number of check boxes that will set the 
  2901. style for the current control. 
  2902.  
  2903. Check boxes are considered to be set to on when a small 'x' appears in the 
  2904. check box. Each of the control styles are defined as follows: 
  2905.  
  2906.   Horizontal Scroll Bar This option is set to on by default. Setting this 
  2907.                 option to off will cause the created Horizontal Scroll Bar to 
  2908.                 change appearance to a Vertical Scroll Bar. 
  2909.   Thumb Size    This option is set to off by default. With this option set to 
  2910.                 on, the scroll bar slider will change its height to reflect the 
  2911.                 percentage of data visible and thus the percentage of the 
  2912.                 scroll bar that the slider should occupy. 
  2913.   Auto Track    ** currently undefined 
  2914.  
  2915.  Dialog Styles Group Box 
  2916.  
  2917.  The Dialog Styles group box contains a number of check boxes that will set 
  2918.  characteristics of the current scroll bar control. Typically these options are 
  2919.  used for defining characteristics of a control in dialog windows. 
  2920.  
  2921.   Group         This option is set to on by default. With this style set to on, 
  2922.                 the scroll bar control will act as an encapsulated group. It 
  2923.                 will receive the keyboard or mouse focus. The group style 
  2924.                 remains in effect until the next control with a style such as 
  2925.                 this is found. 
  2926.   Tabstop       This option is set to on by default. This style is typically 
  2927.                 used in conjunction with the Group style. When set to on, the 
  2928.                 current control will receive the focus when the user presses 
  2929.                 the TAB key to move between dialog controls. 
  2930.  
  2931.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  2932.                 will signal Gpf that you have completed any changes in the 
  2933.                 Scroll Bar Control Styles dialog window. 
  2934.  
  2935.            If any of the options you have selected will result in a change to 
  2936.            the scroll bar control appearance, Gpf will automatically update the 
  2937.            control to reflect those changes. 
  2938.  
  2939.  ENTRY HELP     By clicking the Entry Extended Help  (ALT+E) in the Scroll bar 
  2940.                 Control Styles dialog window, you will be able to define the 
  2941.                 general help text for your control. The text that you enter 
  2942.                 will be displayed by the Presentation Manager Help Facility if 
  2943.                 the user presses the F1 key when you finally run your compiled 
  2944.                 application. 
  2945.  
  2946.            You can also define an informational message for the control from 
  2947.            the Entry Extended Help dialog window. 
  2948.  
  2949.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  2950.  detailed explanation of the Entry Extended Help dialog window. 
  2951.  
  2952.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  2953.                 scroll bar control. 
  2954.  
  2955.            When you select this button, Gpf will prompt you with a message to 
  2956.            confirm that you want to destroy this Scroll bar control, as well as 
  2957.            any children of this scroll bar. 
  2958.  
  2959.  
  2960. ΓòÉΓòÉΓòÉ 2.3. ActionBar Object ΓòÉΓòÉΓòÉ
  2961.  
  2962. The Objects Pull-down Actions 
  2963.  
  2964. The Objects pull-down actions provide a list of object types (i.e. Icons, 
  2965. Bitmaps, Fonts, Message Boxes) that can be defined and then incorporated into 
  2966. your Gpf application definition. 
  2967.  
  2968. The available Objects pull-down actions will first be described in the 
  2969. following general overview, followed by a detailed descriptions of each: 
  2970.  
  2971. PULL-DOWN  : review 
  2972.  
  2973. Object Message Box Object (ALT+B,M) 
  2974.  
  2975. The first action available in the Object pull-down is the Message Box Object. 
  2976. Message boxes provide an easy way to display simple messages without having to 
  2977. create dialog windows. A message box is easy to use and is appropriately used 
  2978. when an application requires a clearly defined response to a static message. 
  2979. Typically message boxes consist of an Icon, message text, and the response 
  2980. pushbuttons. 
  2981.  
  2982. An example of typical message box usage would be for prompting the user if they 
  2983. want to continue with an operation.  The message box itself would have a YES 
  2984. and NO pushbutton for a response. 
  2985.  
  2986. Object Presentation Object (ALT+B,P) 
  2987.  
  2988. A Presentation Object allows you to define any combination of specific font, 
  2989. foreground, background, or border color as an object. This object can then be 
  2990. applied when creating other windows or controls when custom presentation is 
  2991. desired. 
  2992.  
  2993. For example, consider the use of different font sizes for menu pull-down 
  2994. actions, dialog window text, or list box items. 
  2995.  
  2996. Object Icon/Bitmap/Pointers Object (ALT+B,I) 
  2997.  
  2998. Icons, Bitmaps, or Pointers can also be incorporated into your application 
  2999. definition in different ways. Once defined as an object, they can be set onto 
  3000. the window as user drawn buttons, or can be used as the minimize icon. 
  3001.  
  3002. Object User Function Object (ALT+B,U) 
  3003.  
  3004. Although Gpf creates a substantial amount of source code, thereby increasing 
  3005. the productivity of the developer, it cannot generate code specific to the 
  3006. stratagem of the target application. With this pull-down action, you can define 
  3007. or even type in source code which will be incorporated into the Gpf definition. 
  3008.  
  3009. All objects are either accessible from a specific Control Style dialog window 
  3010. (e.g. Presentation), or via the ACTION button in the same dialog window. For 
  3011. example, when you use the Create Button pull-down action you can use a 
  3012. Icon/Bitmap/Pointer object as the button itself, or optionally associate the 
  3013. button click action with a user defined source code object. 
  3014.  
  3015.  
  3016. ΓòÉΓòÉΓòÉ 2.3.1. PullDown Message Box ΓòÉΓòÉΓòÉ
  3017.  
  3018. Object Message Box Object (ALT+B,M) 
  3019.  
  3020. Message boxes provide an easy way to display simple messages without creating 
  3021. dialog windows. A message box is easy to use and is appropriately used when an 
  3022. application requires a clearly defined response to a static message. Typically, 
  3023. message boxes consist of an Icon, message text, and the response pushbuttons. 
  3024.  
  3025. An example of a typical message box would be for querying the user if they want 
  3026. to continue with an operation.  The message box itself would have a YES and NO 
  3027. pushbutton for a response. 
  3028.  
  3029. Clicking on the Object Message Box Object (ALT+B,M) pull-down action will 
  3030. invoke the Message Box list dialog window. 
  3031.  
  3032. The Message Dialog window contains a list of all currently defined Message Box 
  3033. Objects for the current application definition. The following will describe how 
  3034. to add, edit, or delete Message Box objects: 
  3035.  
  3036.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  3037.                 will signal Gpf that you have completed any changes in the 
  3038.                 Message Dialog window. 
  3039.  View/Modify Msg Box Click on this button (ALT+V) to display or modify any 
  3040.                 previously defined message box objects. The current selection 
  3041.                 in the Message Dialog list will be chosen for the operation. 
  3042.                 This will invoke the Message Box Object dialog window for 
  3043.                 modification of the selected object. The Message Box Object 
  3044.                 dialog window is described in the following section. 
  3045.  Add Msg Box    Clicking on the Add Msg Box (ALT+A) button will invoke the 
  3046.                 Message Box Object dialog window for defining the controls of 
  3047.                 the new message box object. 
  3048.  
  3049.  Message Box Object Dialog Window 
  3050.  
  3051.  The Message Box Object dialog window contains combination boxes, radio 
  3052.  buttons, check boxes, multiple line entry fields, and pushbuttons to assist 
  3053.  you in defining the message box object. Each of the controls will be described 
  3054.  below. Options located in a group box will be noted. 
  3055.  
  3056.  Text 
  3057.  
  3058.  The Text control is a multiple line entry field where you enter the message 
  3059.  text for the message box. The text entered here is displayed to the user when 
  3060.  the message box is invoked during application runtime. The multiple line entry 
  3061.  will automatically word wrap your line of text if it is greater then the width 
  3062.  of this control. 
  3063.  
  3064.  Reply Button   The Reply Button is a combination list box with the available 
  3065.                 button combinations that will be displayed with your message 
  3066.                 box. The list of button combinations are standard message box 
  3067.                 responses and should be diverse enough to suit your needs. 
  3068.  
  3069.            To select a button combination, either click on the selection with 
  3070.            the mouse, or use the cursor keys to go up and down through the 
  3071.            list. 
  3072.  
  3073.  Default Button Group Box 
  3074.  
  3075.  The Default Button group box contains a number of radio buttons that will 
  3076.  allow you to define which button of the Reply Button combination will be set 
  3077.  as the default button. Default buttons are drawn with a thick black border. 
  3078.  
  3079.  Radio buttons are mutually exclusive; only one may be selected at one time. 
  3080.  
  3081.  No 1           This option is set to on by default. This option designates the 
  3082.                 first button in the Reply Button group as the default button. 
  3083.  No 2           This option is set to off by default. This selection will 
  3084.                 choose the second button in the Reply Button group as the 
  3085.                 default button. 
  3086.  No 3           This option is set to off by default. This selection will 
  3087.                 choose the third button in the Reply Button group as the 
  3088.                 default button. 
  3089.  
  3090.  If a default button position is chosen, and the Reply button group does not 
  3091.  contain as many buttons, the first button will be used as the default button. 
  3092.  For example, if you choose the YES and NO Reply Button group, and indicate 
  3093.  that the third button will be the default, then YES will default. 
  3094.  
  3095.  Icon Group Box 
  3096.  
  3097.  The Icon group box contains a number of radio buttons which allow you to 
  3098.  choose an icon to be displayed in the current message box object. When you 
  3099.  change a selection from this group, an icon representing the selection will be 
  3100.  displayed in the lower right corner of the Icon group box. 
  3101.  
  3102.  Radio buttons are mutually exclusive; only one may be selected at one time. 
  3103.  
  3104.  No Icon        This option is set to off by default. When selected, the 
  3105.                 defined message box will not have an icon displayed during 
  3106.                 runtime. 
  3107.  
  3108.  
  3109.  Warning        This option is set to off by default. The Warning icon displays 
  3110.                 an exclamation point ("!") in the defined message box. 
  3111.  Information    This option is set to on by default. The Information icon 
  3112.                 displays the letter ('i') in the defined message box. 
  3113.  Error          This option is set to off by default. The Error icon displays a 
  3114.                 stop sign in the defined message box. 
  3115.  Question       This option is set to off by default. The Question icon 
  3116.                 displays a question mark ("?") in the defined message box. 
  3117.  
  3118.  Alarm Option Group Box 
  3119.  
  3120.  The Alarm Option group box contains a number of radio buttons which allow you 
  3121.  to sound an audible tone upon creation of the message box object. When the 
  3122.  message box is displayed, during application runtime, the tone will sound. 
  3123.  Note that certain selections from the Icon group box will set tones of 
  3124.  different frequencies. These will be identified in the following text. 
  3125.  
  3126.  No Alarm       With this selection set to on, no tone will be emitted with the 
  3127.                 message box appearance. This option is automatically selected 
  3128.                 when the No Icon option is chosen from the Icon group box. 
  3129.  Note           This option will cause a high toned beep to sound when the 
  3130.                 message box is displayed. Setting either Information or 
  3131.                 Question icons from the Icon group box will automatically 
  3132.                 select this option. 
  3133.  Warning        This option will cause a beep (an octave lower in pitch than 
  3134.                 the Note beep) to be emitted when the message box is displayed. 
  3135.                 Setting the Warning icon from the Icon group box will 
  3136.                 automatically select this option. 
  3137.  Error          This option will cause a beep (an octave lower in pitch than 
  3138.                 the Warning beep) to be emitted when the message box is 
  3139.                 displayed. Setting the Error icon from the Icon group box will 
  3140.                 automatically select this option. 
  3141.  
  3142.  Modal Group Box 
  3143.  
  3144.  The Modal group box contains two radio buttons that will set the modal style 
  3145.  of the message box. 
  3146.  
  3147.  Appl           This option is set to off by default. When the Appl modal 
  3148.                 option is selected, the message box must be dismissed before 
  3149.                 input is allowed into any other window in the owner 
  3150.                 application. Other applications running under Presentation 
  3151.                 Manager may be accessed without responding to this message box. 
  3152.  System         This option is set to on by default. The System modal option 
  3153.                 requires that the message box is dismissed before any other 
  3154.                 application running under Presentation Manager can be accessed. 
  3155.  
  3156.  Options Group Box 
  3157.  
  3158.  The Options group box contains two check boxes that allow you to set 
  3159.  additional message box controls. 
  3160.  
  3161.   Help          This option is set to OFF by default. With this option set to 
  3162.                 on, a "Help" button will be added to the existing Reply Button 
  3163.                 combination. This is to provide the user with extended help 
  3164.                 information on why or what the message box may be indicating. 
  3165.   Moveable      This option is set to ON by default. This option provides a 
  3166.                 title bar to the message box. This allows the user to move the 
  3167.                 message box around the Presentation Manager desktop by dragging 
  3168.                 it with the mouse. 
  3169.  
  3170.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  3171.                 Gpf that you have completed any changes in the Message Box 
  3172.                 Object dialog window. 
  3173.  
  3174.            If any of the options you have selected will result in a change to 
  3175.            the message box appearance, you will have to run the Animate mode of 
  3176.            Gpf to view the changes. Refer to the Toolkit Pull-down section for 
  3177.            information on the Animate function (Chapter 3.10). 
  3178.  
  3179.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Scroll bar 
  3180.                 Control Styles dialog window, you will be able to define the 
  3181.                 general help text for your message box. The text that you enter 
  3182.                 will be displayed by the Presentation Manager Help Facility if 
  3183.                 the user presses the F1 key or "Help" button when you finally 
  3184.                 run your compiled application. 
  3185.  
  3186.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  3187.  detailed explanation of the Entry Extended Help dialog window. 
  3188.  
  3189.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  3190.                 message box window. 
  3191.  
  3192.            When you select this button, Gpf will prompt you with a message to 
  3193.            confirm that you want to destroy this message box window, as well as 
  3194.            any children of the message box. 
  3195.  
  3196.  
  3197. ΓòÉΓòÉΓòÉ 2.3.2. PullDown Presentation ΓòÉΓòÉΓòÉ
  3198.  
  3199. Object Presentation Object (ALT+B,P) 
  3200.  
  3201. Clicking on the Object Presentation Object (ALT+B,P) pull-down action will 
  3202. invoke the Presentation Parameter List dialog window. 
  3203.  
  3204. A Presentation Object allows you to define any combination of specific font, 
  3205. foreground, background, or border color, as an object. This object can then be 
  3206. applied when creating other windows or controls when a custom presentation is 
  3207. desired. 
  3208.  
  3209. For example, consider the use of different font sizes for menu pull-down 
  3210. actions, dialog window text, or list box items. 
  3211.  
  3212. The Presentation Parameter List dialog window contains a list of all currently 
  3213. defined Presentation Objects for the current application definition. Once 
  3214. defined, such objects can be invoked from the 'Presentation' list boxes 
  3215. contained in most control\dialog definition screens.  The following will 
  3216. describe adding, editing, or deleting Presentation objects: 
  3217.  
  3218.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  3219.                 will signal Gpf that you have completed any changes in the 
  3220.                 Presentation Parameter List dialog window. 
  3221.  View/Modify    Click on this button (ALT+V) to display or modify any defined 
  3222.                 presentation objects. The current selection in the dialog list 
  3223.                 will be chosen for this operation. This will invoke the 
  3224.                 Presentation Object Parameters dialog window for modifying the 
  3225.                 selected object. The Presentation Object Parameters dialog 
  3226.                 window is described in the following section. 
  3227.  Add            Clicking on the Add (ALT+A) button will invoke the Presentation 
  3228.                 Object Parameters dialog window for defining the controls of 
  3229.                 the new presentation object. 
  3230.  
  3231.  Presentation Object Parameters Dialog Window 
  3232.  
  3233.  The Presentation Object Parameters dialog window contains combination boxes, 
  3234.  entry fields, and pushbuttons to assist you in defining the presentation 
  3235.  object. Each of the controls will be described below: 
  3236.  
  3237.  Name 
  3238.  
  3239.  Each presentation object has an identifying name. During the Gpf edit session, 
  3240.  when you are setting a presentation object to a particular window, menu, or 
  3241.  other control, this name will appear in the Presentation combination box of 
  3242.  the particular control setting dialog. 
  3243.  
  3244.  By default Gpf will insert a Name for you: 
  3245.  
  3246.            PresParmsx 
  3247.  
  3248.  where x is the sequential number of the next presentation object to be 
  3249.  defined. Generally speaking, you should probably edit this field to a more 
  3250.  useful name, such as "BlueListBox" or "LargeRedFont". 
  3251.  
  3252.  Font Name Size 
  3253.  
  3254.  The Font Names Size control is a combination box which will list all the 
  3255.  different sized fonts that Gpf finds installed on your system. You can select 
  3256.  a font and font size for the current presentation object from this list. 
  3257.  
  3258.  To display the list with the mouse, click on the downward pointing arrow to 
  3259.  the right of the entry field portion of the combination box. While holding the 
  3260.  mouse button down, drag the highlight selector through the font names in the 
  3261.  list. Release the mouse button to select the current highlighted font. 
  3262.  
  3263.  To display the list with the keyboard, first use the TAB key to move the focus 
  3264.  to the Font Named Size combination box, then press ALT+DOWNARROW. You can then 
  3265.  use the keyboard cursor keys to move the highlight selector through the list. 
  3266.  To make a font selection, use the RIGHTARROW key when the highlight selector 
  3267.  is on the font of your choice. 
  3268.  
  3269.  As you move the highlight selector, a sample of the font will be displayed in 
  3270.  both the Font Sample and Overpaint display windows. These windows are located 
  3271.  at the bottom of the Presentation Object Parameters dialog window. If the list 
  3272.  of fonts is being displayed you will not be able to view the Overpaint display 
  3273.  window. 
  3274.  
  3275.  Background Color 
  3276.  
  3277.  The Background Color control is a combination box which lists the available 
  3278.  background colors available for the presentation object. 
  3279.  
  3280.  To list the available background colors with the mouse or keyboard, follow the 
  3281.  instructions as explained in the Font Named Size description above. 
  3282.  
  3283.  As you move the highlight selector, a sample of the background color will be 
  3284.  displayed in the Font Sample display windows. 
  3285.  
  3286.  Foreground Color 
  3287.  
  3288.  The Foreground Color control is a combination box which lists the available 
  3289.  foreground colors available for the presentation object. 
  3290.  
  3291.  To list the available foreground colors with the mouse or keyboard, follow the 
  3292.  instructions as explained in the Font Named Size description above. 
  3293.  
  3294.  As you move the highlight selector, a sample of the foreground color will be 
  3295.  displayed in the Font Sample display windows. 
  3296.  
  3297.  Background Hilite 
  3298.  
  3299.  Selects the background color attribute for a selected item. 
  3300.  
  3301.  Foreground Hilite 
  3302.  
  3303.  Selects the foreground color attribute for a selected item. 
  3304.  
  3305.  Background Disabled 
  3306.  
  3307.  Selects the background color attribute for the disabled state of an item. 
  3308.  
  3309.  Foreground Disabled 
  3310.  
  3311.  Selects the foreground color attribute for the disabled state of an item. 
  3312.  
  3313.  Border  Color 
  3314.  
  3315.  The Border Color control is a combination box which lists the border colors 
  3316.  available for the presentation object. 
  3317.  
  3318.  To list the available border colors with the mouse or keyboard, follow the 
  3319.  instructions as explained in the Font Named Size description above. 
  3320.  
  3321.  As you move the highlight selector, a sample of the border color will be 
  3322.  displayed in both the Font Sample display windows. 
  3323.  
  3324.  Font Sample Display 
  3325.  
  3326.  The Font Sample Display window is where the presentation object definition can 
  3327.  be displayed. This enables you to test a multitude of selections before saving 
  3328.  the Presentation Object definition. 
  3329.  
  3330.  Overpaint Display 
  3331.  
  3332.  The Overpaint Display window is where the presentation object definition can 
  3333.  be displayed. This enables you to test a multitude of selections before saving 
  3334.  the Presentation Object definition. 
  3335.  
  3336.  
  3337. ΓòÉΓòÉΓòÉ 2.3.3. PullDown Icon Bitmap Pointer ΓòÉΓòÉΓòÉ
  3338.  
  3339. Object Icon/Bitmap/Pointer Objects (ALT+B,I) 
  3340.  
  3341. Icons, Bitmaps, or Pointers can be incorporated into your application 
  3342. definition. Once defined as an object they can be set onto the window in the 
  3343. form of user drawn buttons, static text controls, or even used as the minimize 
  3344. icon. 
  3345.  
  3346. Clicking on the Object Icon/Bitmap/Pointer Object (ALT+B,I) pull-down action 
  3347. will invoke the Icon/Bitmap/Pointer list dialog window. 
  3348.  
  3349. The Icon/Bitmap/Pointer List dialog window contains a list of all currently 
  3350. defined Icon/Bitmap/Pointer Objects for the current application definition. The 
  3351. following will describe adding, editing, or deleting these objects: 
  3352.  
  3353.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  3354.                 will signal Gpf that you have completed any changes in the 
  3355.                 Icon/Bitmap/Pointer List dialog window. 
  3356.  View/Modify Object Click on this button (ALT+V) to display or modify any 
  3357.                 pre-defined Icon/Bitmap/Pointer objects. The current selection 
  3358.                 in the list will be chosen for this operation. This will invoke 
  3359.                 the Icon/Bitmap Object dialog window for modifying the selected 
  3360.                 object. The Icon/Bitmap Object dialog window is described in 
  3361.                 the following section. 
  3362.  Add Object     Clicking on the Add Object (ALT+A) button will invoke the 
  3363.                 Icon/Bitmap Object dialog window for defining the controls of 
  3364.                 the new object. 
  3365.  
  3366.  Icon/Bitmap Object Dialog Window 
  3367.  
  3368.  The Icon/Bitmap Object dialog window contains radio buttons, entry fields, and 
  3369.  pushbuttons to assist you in defining the Icon/Bitmap/Pointer object. Each of 
  3370.  the controls will be described below. Options located in a group box will be 
  3371.  noted. 
  3372.  
  3373.  Name 
  3374.  
  3375.  Each Icon/Bitmap/Pointer object has an identifying name. During the Gpf edit 
  3376.  session, when you are setting an Icon/Bitmap/Pointer object to a particular 
  3377.  window, menu, or other control, this name will appear in the 
  3378.  Icon/Bitmap/Pointer combination box of the particular control setting dialog. 
  3379.  
  3380.  By default Gpf will insert a Name for you as: 
  3381.  
  3382.            Iconx 
  3383.  
  3384.  where x is the sequential number of the next Icon/Bitmap/Pointer object to be 
  3385.  defined. 
  3386.  
  3387.  File Name 
  3388.  
  3389.  The actual file that contains the icon, bitmap, or pointer needs to be 
  3390.  identified to Gpf. The File Name entry field allows you to type in the name of 
  3391.  the file created by the Microsoft or IBM Icon Editor, or by a similar bitmap 
  3392.  creation utility. 
  3393.  
  3394.  File Type Group Box 
  3395.  
  3396.  The File Type group box contains a number of radio buttons for indicating what 
  3397.  type of object is being defined. The options will be described below. 
  3398.  
  3399.  Radio buttons are mutually exclusive; only one can be selected at a time. 
  3400.  
  3401.  Icon           This option is set to on by default. This option indicates that 
  3402.                 you are identifying an Icon drawing as the current object. Gpf 
  3403.                 will search for the file: 
  3404.  
  3405.            filename.ICO 
  3406.            where filename is the name of the file as specified in the File Name 
  3407.            entry field. 
  3408.  
  3409.  Bitmap         This option is set to off by default. This option indicates 
  3410.                 that you are identifying a Bitmap drawing as the current 
  3411.                 object. Gpf will search for the file: 
  3412.  
  3413.            filename.BMP 
  3414.            where filename is the name of the file as specified in the File Name 
  3415.            entry field. 
  3416.  
  3417.  Pointer        This option is set to off by default. This option indicates 
  3418.                 that you are identifying a Pointer drawing as the current 
  3419.                 object. Gpf will search for the file: 
  3420.  
  3421.            filename.PTR 
  3422.            where filename is the name of the file as specified in the File Name 
  3423.            entry field. 
  3424.  
  3425.  Bitmap, pointer, and icon files are closely related.  You may specify an  icon 
  3426.  to be used as a pointer object and vice-versa. You may also define an icon or 
  3427.  a pointer as a bitmap object. 
  3428.  
  3429.  Path 
  3430.  
  3431.  The Path control is an entry box where you must type in the full path to the 
  3432.  target icon, bitmap, or pointer file. Gpf will search the path for the above 
  3433.  described filename and extension. 
  3434.  
  3435.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  3436.                 Gpf that you have completed the current definition in the 
  3437.                 Icon/Bitmap Object dialog window. 
  3438.  
  3439.            This will return you to the Icon/Bitmap/Pointer List dialog window, 
  3440.            where you will be able to view the graphic object as it will appear 
  3441.            in your application. 
  3442.  
  3443.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  3444.                 signal Gpf that you want to exit the Icon/Bitmap Object dialog 
  3445.                 window without saving any changes made. 
  3446.  
  3447.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  3448.                 Icon/Bitmap/Pointer object. 
  3449.  
  3450.            Gpf will prompt you with a message to confirm that you want to 
  3451.            destroy this object, as well as any children of the object. 
  3452.  
  3453.  
  3454. ΓòÉΓòÉΓòÉ 2.3.4. PullDown User Function ΓòÉΓòÉΓòÉ
  3455.  
  3456. Object User Function Object (ALT+B,U) 
  3457.  
  3458. User objects are defined source code statements or references to external 
  3459. library functions that can be embedded into the Gpf application definition. 
  3460.  
  3461. This provides a 'safe' method for inserting source code into the definition. 
  3462. Source code that is entered directly into the Gpf generated source files will 
  3463. be overwritten the next time a Toolkit Generate action is performed. For a 
  3464. detailed description of the Gpf source generation function, refer to the 
  3465. Toolkit Pull-down Actions section (Chapter 3.8) in this document. 
  3466.  
  3467. Clicking on the Object User Function Object (ALT+B,U) pull-down action will 
  3468. invoke the User Function Object List dialog window. 
  3469.  
  3470. The User Object Function List dialog window contains a list of all currently 
  3471. defined User Objects for the current application definition. The following 
  3472. section will describe adding, editing, or deleting these objects. 
  3473.  
  3474.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  3475.                 will signal Gpf that you have completed any changes in the User 
  3476.                 Object Function List dialog window. 
  3477.  View/Modify    Click on this button (ALT+V) to display or modify any defined 
  3478.                 user defined source or function objects. The current selection 
  3479.                 in the User Function list will be chosen for this operation. 
  3480.                 This will invoke the User Function Editor dialog window for 
  3481.                 modification of the selected object. The User Function Editor 
  3482.                 dialog window is described in the following section. 
  3483.  Add            Clicking on the Add (ALT+A) button will invoke the User 
  3484.                 Function Editor dialog window for creating and editing the 
  3485.                 source code function object. 
  3486.  
  3487.  The User Function Editor Dialog Window 
  3488.  
  3489.  The User Function Editor dialog window contains an entry field, a multiple 
  3490.  line entry field, and pushbuttons that allow you to define and type in source 
  3491.  code comprising the User Function object. 
  3492.  
  3493.  The User Function editor is not meant to replace high level program editors or 
  3494.  word processors, but to provide you with a convenient way to insert source 
  3495.  code functions into your application definition. 
  3496.  
  3497.  Name 
  3498.  
  3499.  Each User Function object has an identifying name. During the Gpf edit 
  3500.  session, when you are applying a User Function object to a particular action, 
  3501.  you would associate the action with this identifying object name. 
  3502.  
  3503.  For information on associating User Function objects with actions, refer to 
  3504.  the Common Dialog Window section (section 3.10). 
  3505.  
  3506.  User Function Multiple LE Edit Box 
  3507.  
  3508.  Below the Name entry field is the User Function edit box. This is where you 
  3509.  can enter either a reference to a pre- existing function, or raw source code 
  3510.  statements. Whatever statements are entered here will be generated into the 
  3511.  source code generated from your application definition. 
  3512.  
  3513.  Modifying any source statements here, as opposed to making changes in the 
  3514.  actual source file, will insure that Gpf will not overwrite these statements. 
  3515.  Gpf will overwrite any statements entered directly into the source code file 
  3516.  because your additions will be unknown to both Gpf and the definition file. 
  3517.  Ideally, you should save making modifications directly to the source code as 
  3518.  the last step you perform before actual compilation. 
  3519.  
  3520.  The edit box itself contains text editing features. Although they are not as 
  3521.  extensive as a specialized programmers editor, it will sufficiently facilitate 
  3522.  statement coding. Besides the basic features provided (i.e. Delete, Insert, 
  3523.  etc...) the following controls are available: 
  3524.  
  3525.            Cut And Paste - The standard cut and paste operations from the 
  3526.            Presentation Manager clipboard are supported which allow you to copy 
  3527.            source code from another file into the Gpf edit box. 
  3528.  
  3529.            Tabs- Tab characters are supported for the purpose of indenting 
  3530.            source code statements. 
  3531.  
  3532.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  3533.                 Gpf that you have completed any additions or changes to the 
  3534.                 User Function Editor dialog window. 
  3535.  
  3536.  If any of the options you have selected will result in a change to the 
  3537.  application definition file, you will have to run the Toolkit Generate action 
  3538.  in Gpf to view the changes that occur in the target source code. Refer to the 
  3539.  Toolkit Pull-down section (section 3.8) for information on the Generate 
  3540.  function. 
  3541.  
  3542.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  3543.                 signal Gpf that you want to dismiss the User Function Editor 
  3544.                 dialog window without retaining any changes you have made. 
  3545.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove this 
  3546.                 User Function object. 
  3547.  
  3548.            When you select this button, Gpf will prompt you with a message to 
  3549.            confirm that you want to destroy this object, as well as any 
  3550.            children of the object. 
  3551.  
  3552.  
  3553. ΓòÉΓòÉΓòÉ 2.3.5. PullDown Find PM Cntrol ΓòÉΓòÉΓòÉ
  3554.  
  3555. Object Find PM Control  (ALT+B,F) 
  3556.  
  3557. The Gpf Find PM Control function is a control management utility.  With the 
  3558. Find PM Control dialog box you can search for or destroy controls (e.g. 
  3559. Buttons, List Boxes, Icons) defined in windows. 
  3560.  
  3561. Clicking on the Find PM Control (ALT+B,F) pull-down action will invoke the 
  3562. Search Object dialog window. All currently visible Gpf application windows will 
  3563. be dismissed from view when this dialog box is invoked. 
  3564.  
  3565. Search Object Dialog Window 
  3566.  
  3567. The Search Object dialog window contains a list of all windows defined in the 
  3568. current application. For each defined window there is also a list of controls 
  3569. associated with the window. The following is a description of each of the 
  3570. available options in the dialog window: 
  3571.  
  3572. Window List Box 
  3573.  
  3574. The Window list box contains a list of all windows created in the current 
  3575. application definition. By default the Main Window, or whatever you may have 
  3576. named it, will always be listed first in this list. 
  3577.  
  3578. Selecting a window from this list will cause Gpf to search through and display 
  3579. any of the controls or objects, associated with the selection in the Object 
  3580. list box. 
  3581.  
  3582. Object List Box 
  3583.  
  3584. The Object list box lists all of the controls and objects associated with the 
  3585. currently selected window in the Window list box. 
  3586.  
  3587.  SEARCH         Clicking on the SEARCH button will cause Gpf to search for and 
  3588.                 display the window that contains the currently selected object. 
  3589.                 If found, the window owning the object will be brought to the 
  3590.                 foreground, and the target object will be highlighted.  This 
  3591.                 will also dismiss the Search Object dialog window. 
  3592.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  3593.                 signal Gpf that you want to dismiss the Search Object dialog 
  3594.                 window. 
  3595.  DESTROY        Clicking on the DESTROY button (ALT+D), will cause Gpf to 
  3596.                 remove the currently selected object. You will first be 
  3597.                 prompted to confirm that you want to destroy the object as well 
  3598.                 as any children of the object. 
  3599.  
  3600.  
  3601. ΓòÉΓòÉΓòÉ 2.4. ActionBar Options ΓòÉΓòÉΓòÉ
  3602.  
  3603. The Options Pull-down Actions 
  3604.  
  3605. The Options pull-down actions allow you to modify the general appearance and 
  3606. operation of your Gpf session, as well as the current application definition. 
  3607.  
  3608. The available Options pull-down actions will be given a general overview, 
  3609. followed by detailed descriptions of each. 
  3610.  
  3611. PULL-DOWN  : review 
  3612.  
  3613. Options Grid (ALT+O,G) 
  3614.  
  3615. Gpf will allow you to set an alignment grid pattern onto windows in your 
  3616. current Gpf application definition. This option is useful in insuring that 
  3617. controls within windows are aligned with each other. 
  3618.  
  3619. Options View Grid (ALT+O,V) 
  3620.  
  3621. The Options View Grid will make the grid specified in the Option Grid pull-down 
  3622. visible on the application window. 
  3623.  
  3624. Options View Tracking (ALT+O,K) 
  3625.  
  3626. The View Tracking option, when ON, will display a small window in which size 
  3627. and location coordinates for a selected object appear. 
  3628.  
  3629. Options Group Move (ALT+O,M) 
  3630.  
  3631. With the Options Group Move pull-down action, you can move a group of controls 
  3632. within the application window all at once. This is helpful for keeping the 
  3633. relative distances between two or more controls constant. 
  3634.  
  3635. Option Bypass CUA (ALT+O,Y) 
  3636.  
  3637. When your application deviates from strict CUA compliance, this option will 
  3638. allow you to suppress the Gpf CUA warning messages.  By default, Gpf will check 
  3639. each of your control definitions for CUA conformance. 
  3640.  
  3641. Option Statistics (ALT+O,S) 
  3642.  
  3643. With this option, Gpf will display a number of statistics about your current 
  3644. application definition as well as a resource usage graph. 
  3645.  
  3646. Option Clean Desktop (ALT+O,D) 
  3647.  
  3648. All the windows in your current application definition can be hidden from view 
  3649. by selecting this option. 
  3650.  
  3651.  
  3652. ΓòÉΓòÉΓòÉ 2.4.1. PullDown Grid ΓòÉΓòÉΓòÉ
  3653.  
  3654. Options Grid (ALT+O,G) 
  3655.  
  3656. The Options Grid pull-down action will allow you to set an alignment grid for 
  3657. windows in the current application definition.  This is useful for insuring 
  3658. that all controls created are aligned properly within the target window. 
  3659.  
  3660. Clicking on this option will invoke the Grid Values dialog window.  Please 
  3661. refer to Figure 3-24 for the following dialog control descriptions: 
  3662.  
  3663. The Grid Values Dialog Window 
  3664.  
  3665. The Grid Values dialog windows contain a number of entry fields and pushbuttons 
  3666. that will allow you to set the grid dimensions for your application windows. 
  3667. When placed on the window, Gpf will automatically align a control to the 
  3668. nearest grid coordinates.  This is often referred to in other software packages 
  3669. as a "snap to" grid. 
  3670.  
  3671. For the following grid settings, Gpf will allow a maximum dimension size of 5. 
  3672. All measurements are in relative increments, and the settings entered here will 
  3673. be reflected in all current application window definitions. 
  3674.  
  3675. Horizontal (x) 
  3676.  
  3677. The default is one (1) increment. To have the horizontal grid in your 
  3678. application window spaced by more than 1 increment, enter the number in this 
  3679. entry field. The maximum increment is 5. 
  3680.  
  3681. Vertical (y) 
  3682.  
  3683. The default is one (1) increment. In this entry field you can set the number of 
  3684. increments that you would like the vertical grid set to within your application 
  3685. window. 
  3686.  
  3687.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  3688.                 Gpf that you have completed any changes in the Grid Values 
  3689.                 dialog window and are ready to exit. 
  3690.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  3691.                 signal Gpf that you want to exit the Grid Values dialog window 
  3692.                 without saving any changes made. 
  3693.  HELP           This is the standard gateway button, permitting entry into the 
  3694.                 full HELP system. 
  3695.  
  3696.  
  3697. ΓòÉΓòÉΓòÉ 2.4.2. PullDown View Grid ΓòÉΓòÉΓòÉ
  3698.  
  3699. Options View Grid (ALT+O,V) 
  3700.  
  3701. The Options View Grid pull-down will cause the grid line pattern in your 
  3702. application windows to be displayed. The increments defined in the Grid Values 
  3703. dialog window are used for setting the grid width and height. 
  3704.  
  3705. Clicking on the View Grid pull-down action does not invoke a dialog window, but 
  3706. sets the viewing state to on or off. The state of the Grid View pull-down will 
  3707. be indicated by a check mark for on, or no check mark for off. 
  3708.  
  3709. When the View Grid pull-down action state is on, all of the windows in your 
  3710. application definition will display the grid pattern. 
  3711.  
  3712.  
  3713. ΓòÉΓòÉΓòÉ 2.4.3. PullDown View Tracking ΓòÉΓòÉΓòÉ
  3714.  
  3715. Options View Tracking (ALT+O,K) 
  3716.  
  3717. If checked, the option is active. A small window will display, showing two sets 
  3718. of data for a selected object: 
  3719.  
  3720.  o Xxxxx, Yyyy: the lower left corner coordinates of the object, as measured in 
  3721.    absolute coordinates of the parent object. For objects owned by the DESKTOP, 
  3722.    the (0,0) point is the lower left screen corner, with positive Y in the 
  3723.    vertical direction, positive X in the horizontal. All other objects are 
  3724.    measured with respect to the lower left corner of their parent, also the 
  3725.    (0,0) origin. 
  3726.  o CXxxxx, CYyyyy: the current size of the object, measured with respect to its 
  3727.    own lower left corner. Positive directions are as above. 
  3728.  
  3729.  This pulldown option is a toggle, and is selected\de-selected with each 
  3730.  successive menu invocation. 
  3731.  
  3732.  
  3733. ΓòÉΓòÉΓòÉ 2.4.4. PullDown Group Move ΓòÉΓòÉΓòÉ
  3734.  
  3735. Option Group Move (ALT+O,G) 
  3736.  
  3737. With the Options Group Move pull-down action (ALT+O,G), you can move an entire 
  3738. group of controls within the application window. This is helpful for keeping 
  3739. the relative distance between two or more controls constant. 
  3740.  
  3741. Clicking on the Group Move pull-down action does not invoke a dialog window, 
  3742. but instead sets the Group Move state to on or off. The state of the Group Move 
  3743. pull-down will be indicated by a check mark for on, or no check mark for off. 
  3744.  
  3745. Setting and Moving a Group 
  3746.  
  3747. Click on the Group Move pull-down action to set the state to on. Once this is 
  3748. done, the first control you select in the window will be the leading object for 
  3749. the group. After selecting the leading object, click on the other controls you 
  3750. would like included in this group move. 
  3751.  
  3752. When you have completed forming the group, select the group leading object and 
  3753. move it on the window by holding down the mouse button and dragging the object. 
  3754. When you release the leading object, all members of the group will reposition 
  3755. themselves, maintaining the same relative distances that existed prior to the 
  3756. move. 
  3757.  
  3758. Click on the Group Move pull-down again to set the state to off. 
  3759.  
  3760.  
  3761. ΓòÉΓòÉΓòÉ 2.4.5. PullDown Bypass CUA ΓòÉΓòÉΓòÉ
  3762.  
  3763. Option Bypass CUA (ALT+O,Y) 
  3764.  
  3765. By default, Gpf will check each of your control definitions for CUA compliance. 
  3766. If Gpf finds that you have deviated from the CUA guidelines while creating or 
  3767. modifying an object or control in your application definition, a warning 
  3768. message box will be displayed informing you of impending deviation. 
  3769.  
  3770. Gpf will allow you to selectively bypass CUA compliance during the instances 
  3771. when it detects an errant control. A message box will appear requesting and 
  3772. answer for bypassing this control only. 
  3773.  
  3774. Through the Option Bypass CUA pull-down action, Gpf will allow you to set CUA 
  3775. checking off for the entire Gpf session. 
  3776.  
  3777. Clicking on the Bypass CUA pull-down action (ALT+O,Y) does not invoke a dialog 
  3778. window, but sets the bypass state to on or off. The state of the Bypass CUA 
  3779. pull-down will be indicated by a check mark for on, or no check mark if CUA 
  3780. checking is in effect. 
  3781.  
  3782.  
  3783. ΓòÉΓòÉΓòÉ 2.4.6. PullDown Statistics ΓòÉΓòÉΓòÉ
  3784.  
  3785. Option Statistics (ALT+O,S) 
  3786.  
  3787. Each time you create a window, control, or object, you are using some of the 
  3788. available Presentation Manager resources. Under versions 1.1 and 1.2 of OS/2 
  3789. Presentation Manager, there are a limited number of resources available. 
  3790.  
  3791. Gpf keeps track of how many resources of each type are being used by your 
  3792. current application definition. With the Option Statistics (ALT+O,S) pull-down, 
  3793. you can view the current state of resource consumption. 
  3794.  
  3795. Clicking on the Option Statistics pull-down action (ALT+O,S) will invoke the 
  3796. Statistics Dialog Window. This dialog window, and the resource indicators are 
  3797. described as follows: 
  3798.  
  3799. Statistics Dialog Window 
  3800.  
  3801. The Statistics dialog window is a read-only group of identifiers which indicate 
  3802. the current state of application definition resource usage. As a read-only 
  3803. dialog window, you will not be able to modify any of the values displayed. This 
  3804. dialog is for informational purposes only. Here are each of the identifiers: 
  3805.  
  3806.  Window         This indicates the number of windows or dialog windows 
  3807.                 currently defined for the application. By default this value 
  3808.                 will be 1 for the main window. 
  3809.  Control        This indicates the number of controls (i.e. Buttons, Static 
  3810.                 Text, List Boxes, etc.) currently defined in the application. 
  3811.  Menu           This indicates the total number of menu elements defined for 
  3812.                 the current application. Menu elements include both the high 
  3813.                 level menu bar items, as well as any pull-down or submenu 
  3814.                 items. 
  3815.  Help           This indicates the number of Entry Help descriptions defined 
  3816.                 for the current application. 
  3817.  SQL            This indicates the number of SQL associations defined in the 
  3818.                 current application. A SQL association is where you associate a 
  3819.                 control (e.g. List Box, Combobox, Entry Field) with an SQL 
  3820.                 table.column name. 
  3821.  Action         This indicates how many actions have been defined for any 
  3822.                 existing windows, menus, or other controls in the current 
  3823.                 application. 
  3824.  Source         This field indicates the number of source code files that have 
  3825.                 been identified in the current application. When you create a 
  3826.                 new window or dialog window, you have the option of having the 
  3827.                 source code generated to a file different than the main source 
  3828.                 file. 
  3829.  Threads        This indicates the number of threads that have been identified 
  3830.                 in the current application. When you create a new window or 
  3831.                 dialog window, you have the option of creating a separate 
  3832.                 thread of execution for each one. 
  3833.  Icon Bitmap    This indicates the number of Icon/Bitmap/Pointer objects that 
  3834.                 have been defined in the current application. 
  3835.  Message Box    This field indicates the number of Message Box objects that 
  3836.                 have been defined in the current application. 
  3837.  Presentation   This field indicates the number of Presentation objects that 
  3838.                 have been defined in the current application. 
  3839.  User Text      This field indicates the number of User Function objects that 
  3840.                 have been defined in the current application. 
  3841.  Resource Usage Graphic The Resource Usage graphic is a bar graph showing the 
  3842.                 ratio of the amount of resources used to the total number of 
  3843.                 resources available. 
  3844.  
  3845.  For OS/2 1.2 Extended Edition, the total number of available resources is set 
  3846.  at 8192. The resource usage field is calculated by: 
  3847.  
  3848.            THE_NUMBER_OF_USED_RESOURCE / 8192 
  3849.  
  3850.  where THE_NUMBER_OF_USED_RESOURCE is the sum total of the resource indicators. 
  3851.  
  3852.  The Resource Usage graph itself is broken into 25% quarters, where the current 
  3853.  resource usage will be graphed. 
  3854.  
  3855.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  3856.                 Gpf that you are through looking at the Statistics dialog 
  3857.                 window. 
  3858.  
  3859.  
  3860. ΓòÉΓòÉΓòÉ 2.4.7. PullDown Clean Desktop ΓòÉΓòÉΓòÉ
  3861.  
  3862. Option Clean Desktop (ALT+O,D) 
  3863.  
  3864. The Clean Desktop pull-down action will hide all visible windows in the current 
  3865. application. To display a hidden window, use the Window pull-down to select the 
  3866. desired window. 
  3867.  
  3868.  
  3869. ΓòÉΓòÉΓòÉ 2.5. ActionBar Window ΓòÉΓòÉΓòÉ
  3870.  
  3871. The Window Pull-down Actions 
  3872.  
  3873. The Window pull-down action allows you to selectively choose which application 
  3874. windows or dialog windows are visible on the screen. 
  3875.  
  3876. PULL-DOWN  : review 
  3877.  
  3878. The Window pull-down action (ALT+W) is unlike the other pull-downs in Gpf. The 
  3879. pull-down actions, in the Window pull-down, are dynamically made up of the 
  3880. windows, or dialog windows, defined in the current application. 
  3881.  
  3882. With the Window pull-down you can select a window, from the pull-down list, to 
  3883. either display or hide from view. Windows that are currently visible on the 
  3884. desktop are marked with a check next to the window name, those windows without 
  3885. the check mark are hidden. 
  3886.  
  3887. The window names used in the following example are the default names assigned 
  3888. to the windows by Gpf. 
  3889.  
  3890. Assume that your current application contains two windows: MainWindow and 
  3891. Window1. When you click on the Window pull-down, or select it with (ALT+W), Gpf 
  3892. will display the list directly below the menu item. 
  3893.  
  3894. Figure 3.26 indicates that the MainWindow is visible on the screen, as can be 
  3895. seen by the check mark next to the name of the window, and hopefully the window 
  3896. itself is visible on the screen. Window1, on the other hand, is hidden as 
  3897. indicated by the lack of the check mark. Click on Window1 in the Window 
  3898. pull-down to bring it to the foreground as well. 
  3899.  
  3900. When displaying or hiding windows with the Window pull-down, you must remember 
  3901. that if you select a window to make it visible, and the window parent is 
  3902. invisible, then it too will be brought to the foreground. Furthermore, hiding 
  3903. the parent window of one or more children windows, will hide the children as 
  3904. well. 
  3905.  
  3906.  
  3907. ΓòÉΓòÉΓòÉ 2.6. ActionBar Toolkit ΓòÉΓòÉΓòÉ
  3908.  
  3909. The Toolkit Pull-down Actions 
  3910.  
  3911. The Toolkit Pull-down Overview 
  3912.  
  3913. The Toolkit pull-down provides a set of actions which allow you to test, run a 
  3914. real time interpreter test, generate source code, or compile the current Gpf 
  3915. definition. 
  3916.  
  3917. As with other Gpf pull-down actions, you can either select the action with a 
  3918. mouse click, or by using the (ALT+X,Y) keyboard combination, where X is the 
  3919. underlined letter of the menu bar identifier and Y is the underlined letter of 
  3920. the pull-down action that you want to execute. Each of the Toolkit pull-down 
  3921. actions will be generally described, and then will be covered in detail in the 
  3922. order in which it they appear on the pull-down. 
  3923.  
  3924. Toolkit Animator (ALT+T,A) 
  3925.  
  3926. The Toolkit Animate pull-down action will cause Gpf to execute the Gpf 
  3927. real-time interpreter for your current application definition. This is a useful 
  3928. for doing a high level test of actions, menus, etc., before generating the 
  3929. actual source code. 
  3930.  
  3931. Toolkit Generate (ALT+T,G) 
  3932.  
  3933. The Toolkit Generate pull-down action will cause Gpf to invoke the Gpf Source 
  3934. Generator for your current application definition. Header files, source files, 
  3935. resource statements, and an application make file will be generated in the 
  3936. current working directory. 
  3937.  
  3938. Clicking on this option will: 
  3939.  
  3940.            - invoke a verification window, asking if you wish to save the 
  3941.            current definition.  You must answer YES in order to proceed. 
  3942.            - open an OS/2 session and run GPFGENER, the utility which 
  3943.            translates the .ORC file into the various sources and helper files. 
  3944.            - close your definition file prior to running GPFGENER.  This is 
  3945.            done in order that GPFEDIT can release all locks on the current 
  3946.            definition. This implies that you will need to re-open the file when 
  3947.            the generate phase is finished; type EXIT in the OS/2 window and you 
  3948.            return to the initial GPFEDIT screen as though just invoked. 
  3949.  
  3950.  Toolkit Compile (ALT+T,C) 
  3951.  
  3952.  The Toolkit Compile pull-down action is a two step process. The first step is 
  3953.  the generation of the source code for the current application, the second is 
  3954.  the running of the make file and creation of the application executable file. 
  3955.  
  3956.  Clicking on this option will cause essentially the same sequence of steps as 
  3957.  invoking the Generator, including the closing of all current files. You will 
  3958.  need to re-load (Open) the working file once the compilation phases are 
  3959.  complete. 
  3960.  
  3961.  Toolkit Test (ALT+T,T) 
  3962.  
  3963.  The Toolkit Test pull-down action will allow you to perform rudimentary 
  3964.  testing of the current application definition. Certain functions within your 
  3965.  application will not be tested, such as SQL calls, with this option. For a 
  3966.  more thorough testing of the application, you may consider the Toolkit Animate 
  3967.  pull-down action. 
  3968.  
  3969.  
  3970. ΓòÉΓòÉΓòÉ 2.6.1. PullDown Animator ΓòÉΓòÉΓòÉ
  3971.  
  3972. Toolkit Animator (ALT+T,A) 
  3973.  
  3974. Clicking on the Toolkit Animator pull-down action will cause Gpf to execute the 
  3975. Gpf real-time interpreter (Animator) for your current application definition. 
  3976. When the Animator is invoked, the Gpf edit window will minimize itself to an 
  3977. icon at the bottom of the Presentation Manager desktop. 
  3978.  
  3979. You are still able to use the Gpf editor while running the Animator, although 
  3980. any changes made to the application definition will not be reflected in the 
  3981. Animator. This is useful if you consider the Animator process to be a debugging 
  3982. step. If you identify a problem, or an incorrect action, you can immediately 
  3983. switch to the Gpf editor to make your modifications. 
  3984.  
  3985. The Animator is actually a separate executable file, GPFRUN.EXE, that uses the 
  3986. current definition in memory as a source for the Animator displays and actions. 
  3987. For information on using GPFRUN.EXE with stored Gpf definition files, refer to 
  3988. the Gpf Utility Files section of this documentation. 
  3989.  
  3990. The Animator runs the application as you have defined it, any actions that 
  3991. display or hide other windows, message boxes, fonts, etc., will work as 
  3992. expected. If actions occur that were not expected the Animator is simply 
  3993. proving itself as a debugging tool; it only executes what you have defined to 
  3994. execute. There are a few exceptions to this rule, as described below. 
  3995.  
  3996. Restrictions with Animation 
  3997.  
  3998. Although the Animator is intended to run your current definition as it would be 
  3999. run as the final stand alone application executable, there are a few 
  4000. restrictions that apply. 
  4001.  
  4002. Help Functions 
  4003.  
  4004. Any help text that has been defined for windows, menu items and pull-downs, 
  4005. controls, etc., will not be run from within the Animator. Currently the only 
  4006. way to test the help actions is by running a compiled version of the 
  4007. definition. 
  4008.  
  4009. Informational messages, on the other hand, will be displayed during the 
  4010. Animator run. 
  4011.  
  4012. User Function Objects 
  4013.  
  4014. If you have associated a User Function object as an action to a window control, 
  4015. menu item, etc., the Animator will not run the object. Currently the only way 
  4016. to test the User Function object is by running a compiled version of the 
  4017. definition. 
  4018.  
  4019. Exiting The Animator 
  4020.  
  4021. When you have completed your testing of the application, you can exit the 
  4022. Animator. This can be done in a number of ways: 
  4023.  
  4024. Specify an Exit Menu Option 
  4025.  
  4026. The standard main window creates a menu bar by default. The menu bar consists 
  4027. of a File and Help pull-down. The File pull-down contains an Exit pull-down 
  4028. action that has a Quit Application associated with its action. If you run the 
  4029. Animator and click on the Exit pull-down action, you will signal the Animator 
  4030. to stop running the application and exit the system. 
  4031.  
  4032. If you have changed the standard menu bar it is a good idea to have an Exit 
  4033. action located somewhere in your application definition. 
  4034.  
  4035. Using the System Menu Close Option 
  4036.  
  4037. The standard main window creates a System Menu. This menu is actually hidden in 
  4038. the top left corner of the main window, underneath the bitmap that is visible. 
  4039. This menu contains a Close pull-down action that, when clicked or selected with 
  4040. the keyboard, will signal the Animator to stop running the application and exit 
  4041. the system. 
  4042.  
  4043. Worst Case 
  4044.  
  4045. If your application does not contain an Exit option, and you have indicated not 
  4046. to display the System Menu, you can still exit the Animator. 
  4047.  
  4048. The OS/2 Presentation Manager contains the Task Manager. This is a list box of 
  4049. applications that are currently running on the system. From this list box you 
  4050. can either Select and application to 'jump' to, or end  and remove a given 
  4051. application from the system. 
  4052.  
  4053. You can use the Task Manager to exit the Animator by highlighting the 
  4054. application name in the Task Manager list box and choosing the End Task option. 
  4055.  
  4056.  
  4057. ΓòÉΓòÉΓòÉ 2.6.2. PullDown Generator ΓòÉΓòÉΓòÉ
  4058.  
  4059. Toolkit Generate (ALT+T,G) 
  4060.  
  4061. The Toolkit Generate pull-down action will cause Gpf to invoke the Gpf Source 
  4062. Generator for your current application definition. 
  4063.  
  4064. Before Gpf actually runs the Generator, you will be prompted to save the 
  4065. current application definition to its definition file. This happens regardless 
  4066. of any changes made, or not made, to the current application. Unlike the 
  4067. Animator, the Generator works with the application file, not the in memory 
  4068. definition. 
  4069.  
  4070. Unlike the Animator pull-down action, the Generator causes the Gpf editor to 
  4071. close the current application definition file, and remove it from memory. This 
  4072. is because the Gpf editor locks the definition file while in memory and other 
  4073. applications cannot access the file. 
  4074.  
  4075. This Generator is actually a separate executable file, GPFGENER.EXE, that will 
  4076. use the definition file as a source for creating the source, header, resource, 
  4077. and make files for the application. For information on using GPFGENER.EXE with 
  4078. stored Gpf definition files, refer to the Gpf Utility Files section of this 
  4079. documentation. 
  4080.  
  4081. Generator Processing Steps 
  4082.  
  4083. The Generator actually performs two steps when generating the source for the 
  4084. application definition; generation and precompilation. 
  4085.  
  4086. Generation 
  4087.  
  4088. The Generation step for source file generation pre-allocates the files that 
  4089. will eventually be used in compiling and linking your application. If the files 
  4090. created in this step are already present when you run the Generator, they will 
  4091. be overwritten. This insures that you will be compiling the most up to date 
  4092. version of your application. The files generated during this step will be 
  4093. described. For the file descriptions, filename is the name of the source file 
  4094. indicated in the Program Properties dialog window for your application 
  4095. definition. 
  4096.  
  4097.  File Name      Description 
  4098.  
  4099.  FILENAME.C or FILENAME.SQC These files are where the actual source statements 
  4100.                 are written to. If your application definition does not contain 
  4101.                 any SQL Database associations the filename extension will be 
  4102.                 ".C", else the ".SQC" extension is used. If you have identified 
  4103.                 multiple source files in your application definition, the Gpf 
  4104.                 Generator will create a 'C' or 'SQC' file for each. 
  4105.  FILENAME.DEF    This file is the application definition file. A definition 
  4106.                 file is read during the linkage phase of the application build. 
  4107.                 This file contains information about the operating system 
  4108.                 environment, stack sizes, and callable entry points for your 
  4109.                 application. Consult your compiler, or linker, documentation 
  4110.                 for more information on application definition files. 
  4111.  FILENAME.MAK   This file is the make file definition that automates the 
  4112.                 process of compiling and linking your application. Make files 
  4113.                 typically contain rules and definitions that control the 
  4114.                 compiling and linking stages of an application creation. 
  4115.                 Consult the OS/2 toolkit documentation for more information on 
  4116.                 make files. 
  4117.  FILENAME.CMD   This file contains the OS/2 command file statements that 
  4118.                 further automate the creation of the application. Statements 
  4119.                 within this file will setup any needed environmental 
  4120.                 information as well as invoking the proper make executable for 
  4121.                 the generated make file. Consult the OS/2 Command reference for 
  4122.                 more information on command files. 
  4123.  FILENAME.SQH   This file contains a list of 'C' storage definitions for each 
  4124.                 field in the accessed SQL database table. The storage 
  4125.                 definitions are derived from the SQL stored table definitions. 
  4126.  FILENAME.EXT   This file contains a list of shared function prototypes and 
  4127.                 external global definitions. 
  4128.  FILENAME.RC    This file contains the resource definitions (e.g. windows, 
  4129.                 menus, buttons, etc. ) that are used by your application. This 
  4130.                 file is processed by the resource compiler found in the OS/2 
  4131.                 toolkit utilities. 
  4132.  FILENAME.IDS   This file contains a list of defines for names, as defined in 
  4133.                 the Name field of the Control dialog windows for each window 
  4134.                 and control. The identifiers themselves are actually numeric 
  4135.                 values, the define allows you to reference these  identifiers 
  4136.                 by name. 
  4137.  FILENAME.IPF   This file contains the help text, as defined in the Entry 
  4138.                 Extended Help fields during the application definition. The 
  4139.                 file is processed by the help compiler found in the OS/2 
  4140.                 toolkit utilities. 
  4141.  
  4142.                 Precompilation 
  4143.  
  4144.  The precompilation step for the Generator does not create any additional 
  4145.  files, but uses the existing files for filling in respective information. 
  4146.  
  4147.  The precompilation step generates the actual 'C' source statements, and 
  4148.  optionally SQL preprocess statements, as found in the application definition 
  4149.  file. As well as source statements, any id definitions, resource statements, 
  4150.  and User Defined objects are created as well. 
  4151.  
  4152.  Finally, the Generator places the relevant make and command file statements in 
  4153.  their respective files as listed above. 
  4154.  
  4155.  
  4156. ΓòÉΓòÉΓòÉ 2.6.3. PullDown Compiler ΓòÉΓòÉΓòÉ
  4157.  
  4158. Toolkit Compiler (ALT+T,C) 
  4159.  
  4160. You can compile an application definition without exiting the Gpf edit session, 
  4161. or opening another OS/2 window or full screen session. 
  4162.  
  4163. When you click on the Toolkit Compiler (ALT+T,C) action pull-down, Gpf will 
  4164. search for the FILENAME.CMD file to execute, where FILENAME.CMD is the name of 
  4165. the OS/2 command file generated with the Toolkit Generator pull-down action. 
  4166.  
  4167. The command file is loaded and executed. Statements within the command file set 
  4168. the appropriate environmental path and directory statements, as well as 
  4169. invoking the make utility for the FILENAME.MAK file. It is important to 
  4170. remember that if you change your application definition during the Gpf edit 
  4171. session, you should regenerate the source files with the Toolkit Generator 
  4172. pull-down action before compiling. 
  4173.  
  4174. During the 'building' of your application ( i.e. compilation, linking, etc. ) 
  4175. you are able to view the progress with an OS/2 session window. Any errors that 
  4176. the make utility, compiler, linker, resource compiler, or help compiler 
  4177. generate will be displayed in this window. 
  4178.  
  4179.  
  4180. ΓòÉΓòÉΓòÉ 2.6.4. PullDown Test ΓòÉΓòÉΓòÉ
  4181.  
  4182. Toolkit Test (ALT+T,T) 
  4183.  
  4184. The Toolkit Test pull-down action will allow you to perform rudimentary testing 
  4185. of the current application definition. 
  4186.  
  4187. When this action is selected, Gpf will disable all of its functions from use. 
  4188. Unlike the Animator step, you are unable to modify any of the definitions 
  4189. during the Test step. This is because the Gpf editor is running your 
  4190. application definition. 
  4191.  
  4192. Restrictions with Toolkit Test 
  4193.  
  4194. The Toolkit Test is far more restrictive in the actions allowed during the test 
  4195. mode. In general, all actions associated with a window and control are 
  4196. disabled. 
  4197.  
  4198. During test mode, you can test the effect of clicking on menu lists, buttons, 
  4199. and controls. 
  4200.  
  4201. Exiting Toolkit Test 
  4202.  
  4203. To exit test mode, click on the Toolkit Test pull-down action (ALT+T,T). 
  4204.  
  4205.  
  4206. ΓòÉΓòÉΓòÉ 2.7. ActionBar Help ΓòÉΓòÉΓòÉ
  4207.  
  4208. The Help Pull-down Actions 
  4209.  
  4210. The Help Pull-down Overview 
  4211.  
  4212. The Help Pull-down provides you with online help information about the Gpf 
  4213. editor. This pull-down is specific to Gpf, not the application being defined 
  4214. within the editor itself. 
  4215.  
  4216. Help is always available. You can obtain help at any time by pressing the F1 
  4217. key. 
  4218.  
  4219. When you request help, a help window is displayed. The kind of help you get is 
  4220. determined by what you  selected before you requested help or what task you 
  4221. were doing when you requested help. If the selection  cursor is on a menu bar 
  4222. choice, a pull-down action choice,  or on a field in a dialog window, the help 
  4223. will specifically relate to that choice or field. 
  4224.  
  4225. To get help for a menu bar choice or a pull-down action choice, highlight the 
  4226. choice and then press F1. 
  4227.  
  4228. To get help for a field, click on the field (or press the Tab key to move the 
  4229. cursor to the field). Then, press  F1. If the cursor is already on a field when 
  4230. the dialog window is displayed, simply press F1 to obtain help on that field. 
  4231.  
  4232. Within some help windows, certain words or phrases are highlighted. To obtain 
  4233. additional information about a word or phrase, double-click on the word or 
  4234. phrase.  (Or press the Tab key until the cursor is on the word or phrase, and 
  4235. then press ENTER ). 
  4236.  
  4237. The associated Help pull-down actions for the Help Pull-down includes these 
  4238. additional help choices: 
  4239.  
  4240.            Extended help 
  4241.            Keys help 
  4242.            Help index 
  4243.  
  4244.  Each of the available actions will be briefly described. 
  4245.  
  4246.  Extended Help (ALT+H,E) 
  4247.  
  4248.  Extended help provides general information about the Gpf Editor. 
  4249.  
  4250.  Click on Extended help (ALT+H,E) from the Help pull-down. (Or select Extended 
  4251.  help from the pull-down and press ENTER) You can also press the F2 key from 
  4252.  within a Help window. 
  4253.  
  4254.  Keys Help (ALT+H,K) 
  4255.  
  4256.  Keys help displays a list of key assignments for the application you are 
  4257.  using. 
  4258.  
  4259.  Click on Keys help (ALT+H,K) from the Help pull-down. (Or select Keys help 
  4260.  from the pull-down and press ENTER ) You can also press the F9 key from within 
  4261.  a Help window. 
  4262.  
  4263.  Help Index (ALT+H,I) 
  4264.  
  4265.  Help index provides a list of help topics. You can also press the F11 key from 
  4266.  within a Help window. 
  4267.  
  4268.  To search the index list, do the following: 
  4269.  
  4270.            Click on Search from the Services pull-down. (Or select Search from 
  4271.            the pull-down and press the ENTER key.) 
  4272.            Type the word or phrase to be searched for in the Search for field. 
  4273.            Click on the Index radio button (or press the Tab key to move the 
  4274.            cursor to the radio button). 
  4275.            Click on Search (or select it and press the ENTER key.) 
  4276.  
  4277.  Help Contents (ALT+H,C) 
  4278.  
  4279.  When invoked, the Help Contents will display a list of topics which discuss 
  4280.  various features of the Gpf application. 
  4281.  
  4282.  To search the contents list, do the following: 
  4283.  
  4284.            Click on Search from the Services pull-down. (Or select Search from 
  4285.            the pull-down and press the ENTER key.) 
  4286.            Type the word or phrase to be searched for in the Search for field. 
  4287.            Click on the Index radio button (or press the Tab key to move the 
  4288.            cursor to the radio button). 
  4289.            Click on Search (or select it and press the ENTER key.) 
  4290.  
  4291.  Help About (ALT+H,A) 
  4292.  
  4293.  Clicking on Help About (ALT+H,A) will display the Gpf about dialog box. This 
  4294.  dialog box is used to view general information about the author and copyright 
  4295.  information. 
  4296.  
  4297.  
  4298. ΓòÉΓòÉΓòÉ 3. Dlg Action On ΓòÉΓòÉΓòÉ
  4299.  
  4300. This screen lists the possible actions the current control is capable of 
  4301. performing or reacting to. 
  4302.  
  4303. Select one of the listed items and press the View\Modify... key to enter the 
  4304. definition screens. 
  4305.  
  4306. ******************************* 
  4307.  
  4308. This dialog contains one or more of the following keys. Double-click on the key 
  4309. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  4310. View/Modify... 
  4311.  
  4312.  
  4313. ΓòÉΓòÉΓòÉ 3.1. Dlg Action On ListBox ΓòÉΓòÉΓòÉ
  4314.  
  4315. This listbox contains the list of actions which the current object reacts to 
  4316. (or can perform.)  Select the action for which you want to define some 
  4317. processing, then press on the View\Modify.. key.  The subsequent dialogue 
  4318. allows you to define and enter as many procedures as required by your 
  4319. application for the activation of the control in the currently defined (by this 
  4320. screen) action. 
  4321.  
  4322.  
  4323. ΓòÉΓòÉΓòÉ 3.2. Dlg Action on OK ΓòÉΓòÉΓòÉ
  4324.  
  4325. ******************************* 
  4326.  
  4327. This dialog contains one or more of the following keys. Double-click on the key 
  4328. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  4329. View/Modify... 
  4330.  
  4331.  
  4332. ΓòÉΓòÉΓòÉ 3.3. Dlg Action On Modify ΓòÉΓòÉΓòÉ
  4333.  
  4334. ******************************* 
  4335.  
  4336. This dialog contains one or more of the following keys. Double-click on the key 
  4337. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  4338. View/Modify... 
  4339.  
  4340.  
  4341. ΓòÉΓòÉΓòÉ 4. Dlg Button ΓòÉΓòÉΓòÉ
  4342.  
  4343. ******************************* 
  4344.  
  4345. This dialog contains one or more of the following keys. Double-click on the key 
  4346. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  4347. View/Modify... 
  4348.  
  4349. Create Button (ALT+C,B) 
  4350.  
  4351. Clicking on the Create Button (ALT+C,B) action will generate a push button 
  4352. control item and allow you to attach it to any visible window. Once the control 
  4353. is placed on the target window or dialog window, Gpf will invoke the Button 
  4354. Control Styles dialog window. Refer to Figure 3-9. 
  4355.  
  4356. There are four main types of buttons: push buttons, radio buttons, check boxes, 
  4357. and three-state check boxes. The appearance and behavior of button controls is 
  4358. determined by the style of the button. There is also the user defined, or 
  4359. 'owner drawn' button which allows you to place a bitmap or icon on the window 
  4360. which will send notification messages to the application. The owner of the user 
  4361. defined button is responsible for the appearance of the button. 
  4362.  
  4363. As shown, the Button Control Styles dialog window consists of a number of entry 
  4364. fields, combination boxes, check boxes, radio buttons, and push buttons. Some 
  4365. of these controls are located in group boxes and will be noted in the following 
  4366. descriptions: 
  4367.  
  4368. Name 
  4369.  
  4370. Each button control has an identifying name. During program execution, the 
  4371. application's window procedure receives messages generated by the button in 
  4372. response to user input, either from the mouse or the keyboard. The application 
  4373. responds to these messages by using the identifier of the button control. 
  4374.  
  4375. Sibling 
  4376.  
  4377. The Sibling control is a combination box which displays, and allows you to 
  4378. choose which control item or window is a sibling of the item currently being 
  4379. defined. 
  4380.  
  4381. Text 
  4382.  
  4383. The Text control is an entry field where you specify the text that will appear 
  4384. inside, or next to, the button. Typically you can set a mnemonic character in 
  4385. the text so the user can select the button with the keyboard. For example, a 
  4386. button with the following text: 
  4387.  
  4388.            ~Select Me 
  4389.  
  4390.  would allow the user to select the button by pressing ALT+S. Use the tilde 
  4391.  character (~) to identify the mnemonic character. 
  4392.  
  4393.  Presentation 
  4394.  
  4395.  The Presentation control is a combination box which displays, and allows you 
  4396.  to choose, a presentation object for setting the font size, foreground and 
  4397.  background, and border colors of the button control. 
  4398.  
  4399.  The Presentation object must have been previously identified as an object to 
  4400.  Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  4401.  defining presentation objects. 
  4402.  
  4403.  Control Styles Group Box 
  4404.  
  4405.  The Control Styles group box contains a number of radio buttons that define 
  4406.  what type of button the newly created control is. 
  4407.  
  4408.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  4409.  in the group at one time. Each of the control styles will be described: 
  4410.  
  4411.  Radio Button   This option is set to off by default. Radio buttons are 
  4412.                 typically used in a mutually exclusive group. The application 
  4413.                 is responsible for responding to state changes (i.e. button 
  4414.                 clicked messages) for this button as well as other radio 
  4415.                 buttons within the group. 
  4416.  Auto Radio Button This option is set to off by default. This style is similar 
  4417.                 to the Radio Button, but the state changes are handled 
  4418.                 automatically by the system. The state of the button can be 
  4419.                 checked with OS/2 Presentation Manager API calls. 
  4420.  Check Box      This option is set to off by default. A check box is a small 
  4421.                 square that is empty when it is not selected, and contains a 
  4422.                 small 'x' when selected. The text for the check box is 
  4423.                 displayed to the right of the small square. As with the Radio 
  4424.                 Button, the owner application window is responsible for 
  4425.                 changing the check box state. 
  4426.  Auto Check Box This option is set to off by default. This style is similar to 
  4427.                 the Check Box, but the state changes are handled automatically 
  4428.                 by the system. As with auto radio buttons, the state of the 
  4429.                 check box can be queried and set with OS/2 Presentation Manager 
  4430.                 API calls. 
  4431.  3 State        This option is set to off by default. The 3 State check box 
  4432.                 extends the normal check box, except that it toggles between 
  4433.                 selected, unselected, and halftone states. The owner 
  4434.                 application window is responsible for changing the 3 state 
  4435.                 appearance. 
  4436.  Auto 3 State   This option is set to off by default. The Auto 3 State check 
  4437.                 box is similar to the 3 State check box, but the state changes 
  4438.                 are handled automatically by the system. There are API calls 
  4439.                 available for checking the current status of the Auto 3 State. 
  4440.  Push Button    This option is set to on by default. The Push Button is the 
  4441.                 classic button style. When the user clicks on this button, or 
  4442.                 optionally uses a mnemonic key, the button sends notification 
  4443.                 messages to the owner window. 
  4444.  User Button    This option is set to off by default. The User Button can be a 
  4445.                 bitmap object drawn by the user. As with the normal push 
  4446.                 button, notification messages are sent to the owner window when 
  4447.                 the button is selected. When this option is selected, both the 
  4448.                 Normal and Hilited Bitmap combination boxes are enabled. You 
  4449.                 can select a defined bitmap object for both the normal and 
  4450.                 highlighted state of the button. Bitmaps must have been 
  4451.                 identified as an object to appear in the combination box list. 
  4452.                 Refer to the Objects Pull-down section (Chapter 3.5) for 
  4453.                 information on defining bitmap objects. 
  4454.  
  4455.  Button Options Group Box 
  4456.  
  4457.  The Button Options group box contains a number of check boxes that define the 
  4458.  operational characteristics of the button. This group box is only enabled when 
  4459.  the Push Button or User Button styles have been chosen. 
  4460.  
  4461.  Being check boxes, Gpf will generate the option if set to ON, and you may 
  4462.  combine more than one option per button. Each of the options will be described 
  4463.  below: 
  4464.  
  4465.   Default       This option is set to off by default. A button with this style 
  4466.                 is outlined with a heavy black border. A user can select this 
  4467.                 button by pressing the ENTER key. 
  4468.   No Focus      This option is set to off by default. A button with this style 
  4469.                 does not receive the focus, even when selected. 
  4470.   No Cursor     This option is set to off by default. With this style set the 
  4471.                 user will be unable to move the focus to this button using the 
  4472.                 keyboard cursor keys. 
  4473.   No Border     This option is set to off by default. With this style set, the 
  4474.                 button is drawn without a border, in effect removing the 
  4475.                 'button' look and feel. These buttons, when selected, will 
  4476.                 still send notification messages to the application. 
  4477.  
  4478.  Alias Group Box 
  4479.  
  4480.  Presentation Manager maintains certain default notification messages for 
  4481.  pushbuttons. The Alias group box allows you to define one of these for the 
  4482.  current button control. 
  4483.  
  4484.  Being radio buttons, these options are mutually exclusive. Note that Aliasing 
  4485.  is only allowed for buttons with the Push Button style set. 
  4486.  
  4487.  None           This option is set to on by default. The currently defined 
  4488.                 button does not send an aliased notification message to the 
  4489.                 application window. In this case, the message sent is the 
  4490.                 contents of the name entered in the Name entry field. 
  4491.  Ok             This option is set to off by default. With this button option, 
  4492.                 the defined button will send the application window a DID_OK 
  4493.                 message. 
  4494.  Cancel         This option is set to off by default. With this button option, 
  4495.                 the defined button will send the application window a 
  4496.                 DID_CANCEL message. 
  4497.  
  4498.  Dialog Styles Group Box 
  4499.  
  4500.  The Dialog Styles group box contains a number of check boxes that will set 
  4501.  characteristics of the current button control. Typically these options are 
  4502.  used for defining characteristics of a control in dialog windows. 
  4503.  
  4504.   Group         This option is set to off by default. With this style set to 
  4505.                 on, the button control will act as the first member of a number 
  4506.                 of other buttons in a group. It will receive the keyboard or 
  4507.                 mouse focus. The group style remains in effect until the next 
  4508.                 control with a style such as this is found. 
  4509.   Tabstop       This option is set to on by default. This style is typically 
  4510.                 used in conjunction with the Group style. When set to on, the 
  4511.                 current control will receive the focus when the user presses 
  4512.                 the TAB key to move between dialog controls. 
  4513.  
  4514.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  4515.                 will signal Gpf that you have completed any changes in the 
  4516.                 Button Control Styles dialog window and will save your changes. 
  4517.  
  4518.            If any of the options you have selected will result in a change to 
  4519.            the button control appearance, Gpf will automatically update the 
  4520.            button to reflect those changes. 
  4521.  
  4522.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  4523.                 cause Gpf to abort the current operation. 
  4524.  
  4525.            If you have changed any options for the button control while in the 
  4526.            Button Control Styles dialog window, Gpf will ignore the changes and 
  4527.            restore the original settings. 
  4528.  
  4529.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  4530.                 Control Styles dialog window, you will be able to define the 
  4531.                 general help text for your control. The text that you enter 
  4532.                 will be displayed by the Presentation Manager Help Facility if 
  4533.                 the user presses the F1 key when you finally run your compiled 
  4534.                 application. 
  4535.  
  4536.            You can also define an informational message for the control from 
  4537.            the Entry Extended Help dialog window. 
  4538.  
  4539.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  4540.  detailed explanation of the Entry Extended Help dialog window. 
  4541.  
  4542.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  4543.                 window. From this dialog window you can set the processing 
  4544.                 actions desired for the button control item when the user 
  4545.                 selects it. The Action On dialog window allows you to define 
  4546.                 processing for the following user action: 
  4547.  
  4548.            Click- This user action occurs when the user clicks on the button 
  4549.            control item with the mouse, or invokes the button control item with 
  4550.            an accelerator key. You can define the action associated with the 
  4551.            button control item selection from a list of pre-defined actions, or 
  4552.            with user developed source code. 
  4553.            The click option is listed in the Action On dialog window. To select 
  4554.            an action from the list box, either click on the target with the 
  4555.            mouse, or use the cursor keys on the keyboard. 
  4556.  
  4557.  View/Modify Action On Once the action has been selected, and the processing 
  4558.                 for that selection is to be viewed or modified, click on the 
  4559.                 View/Modify Action On (ALT+V) button. This will invoke the 
  4560.                 Action List dialog window. 
  4561.  
  4562.  Action List dialog windows, and associated processes, are described in the 
  4563.  Common Dialog Windows section (section 3.10). 
  4564.  
  4565.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  4566.                 button control item. 
  4567.  
  4568.            When you select this option, Gpf will prompt you with a message to 
  4569.            confirm that you want to destroy this button, as well as any 
  4570.            children of this control. 
  4571.  
  4572.  
  4573. ΓòÉΓòÉΓòÉ 4.1. Dlg Button Name ΓòÉΓòÉΓòÉ
  4574.  
  4575. Name 
  4576.  
  4577. Each button control has an identifying name. During program execution,  the 
  4578. application's window procedure receives messages generated by the button in 
  4579. response to user input, either from the mouse or the keyboard. The application 
  4580. responds to these messages by using the identifier of the button control. 
  4581.  
  4582.  
  4583. ΓòÉΓòÉΓòÉ 4.2. Dlg Button Order ΓòÉΓòÉΓòÉ
  4584.  
  4585. Sibling 
  4586.  
  4587. The Sibling control is a combination box which displays, and allows  you to 
  4588. choose which control item or window is a sibling of the item currently being 
  4589. defined. 
  4590.  
  4591.  
  4592. ΓòÉΓòÉΓòÉ 4.3. Dlg Button Text ΓòÉΓòÉΓòÉ
  4593.  
  4594. Text 
  4595.  
  4596. The Text control is an entry field where you specify the text that will appear 
  4597. inside, or next to, the button. Typically you can set a mnemonic character in 
  4598. the text so the user can select the button with the keyboard. For example, a 
  4599. button with the following text: 
  4600.  
  4601.            ~Select Me 
  4602.  
  4603.  would allow the user to select the button by pressing ALT+S. Use the tilde 
  4604.  character (~) to identify the mnemonic character. 
  4605.  
  4606.  
  4607. ΓòÉΓòÉΓòÉ 4.4. AUTORADIOBUTTON ΓòÉΓòÉΓòÉ
  4608.  
  4609. Button controls have these basic window styles: 
  4610.  
  4611. BS_AUTORADIOBUTTON 
  4612.  
  4613.  A radio button is similar to a check box, but is typically used in groups in 
  4614. which only one button at a time is checked.  When a radio button is clicked or 
  4615. a cursor key is pressed to move within the group, it notifies its owner window. 
  4616. It is then up to the owner window to check the clicked radio button and uncheck 
  4617. all the rest, if necessary. 
  4618.  
  4619.  When clicked, an automatic radio button automatically checks itself and 
  4620. unchecks all other radio buttons in the same group. 
  4621.  
  4622.  
  4623. ΓòÉΓòÉΓòÉ 4.5. AUTOCHECKBOX ΓòÉΓòÉΓòÉ
  4624.  
  4625. Button controls have these basic window styles: 
  4626.  
  4627. BS_AUTOCHECKBOX 
  4628.  
  4629.  A checkbox is a small square with a character string to the right.  If it is 
  4630. checked, a small black box appears inside the small square. When the box or 
  4631. string is clicked,by clicking on it with the pointing device or pressing the 
  4632. keyboard spacebar when it is active, the checkbox changes state and the parent 
  4633. window is notified. 
  4634.  
  4635.  An automatic check box automatically toggles its state whenever the user 
  4636. clicks on it. 
  4637.  
  4638.  
  4639. ΓòÉΓòÉΓòÉ 4.6. AUTO3STATE ΓòÉΓòÉΓòÉ
  4640.  
  4641. Button controls have these basic window styles: 
  4642.  
  4643. BS_AUTO3STATE 
  4644.  
  4645.  A three-state check box is identical to a check box control except that its 
  4646. check box can be half-toned as well as the box being checked or unchecked. 
  4647.  
  4648.  An automatic three-state check box automatically toggles its state when the 
  4649. user clicks on it. 
  4650.  
  4651.  
  4652. ΓòÉΓòÉΓòÉ 4.7. PUSHBUTTON ΓòÉΓòÉΓòÉ
  4653.  
  4654. Button controls have these basic window styles: 
  4655.  
  4656. BS_PUSHBUTTON 
  4657.  
  4658.  A pushbutton is a box that contains a string. When a button is pushed, by 
  4659. clicking the pointing device on it or pressing the SPACEBAR when it is active, 
  4660. the parent  window is notified. 
  4661.  
  4662.  
  4663. ΓòÉΓòÉΓòÉ 4.8. RADIOBUTTON ΓòÉΓòÉΓòÉ
  4664.  
  4665. Button controls have these basic window styles: 
  4666.  
  4667. BS_RADIOBUTTON 
  4668.  
  4669.  A radio button is similar to a check box, but is typically used in groups in 
  4670. which only one button at a time is checked.  When a radio button is clicked or 
  4671. a cursor key is pressed to move within the group, it notifies its owner window. 
  4672. It is then up to the owner window to check the clicked radio button and uncheck 
  4673. all the rest, if necessary. 
  4674.  
  4675.  
  4676. ΓòÉΓòÉΓòÉ 4.9. CHECKBOX ΓòÉΓòÉΓòÉ
  4677.  
  4678. Button controls have these basic window styles: 
  4679.  
  4680. BS_CHECKBOX 
  4681.  
  4682.  A checkbox is a small square with a character string to the right.  If it is 
  4683. checked, a small black box appears inside the small square. When the box or 
  4684. string is clicked, by clicking on it with the pointing device or pressing the 
  4685. keyboard spacebar when it is active, the checkbox changes state and the parent 
  4686. window is notified. 
  4687.  
  4688.  
  4689. ΓòÉΓòÉΓòÉ 4.10. 3STATE ΓòÉΓòÉΓòÉ
  4690.  
  4691. Button controls have these basic window styles: 
  4692.  
  4693. BS_3STATE 
  4694.  
  4695.  A three-state check box is identical to a check box control except that its 
  4696. check box can be half-toned as well as the box being checked or unchecked. 
  4697.  
  4698.  
  4699. ΓòÉΓòÉΓòÉ 4.11. USERBUTTON ΓòÉΓòÉΓòÉ
  4700.  
  4701. Button controls have these basic window styles: 
  4702.  
  4703. BS_USERBUTTON 
  4704.  
  4705.  This is an application-definable button.  The owner window of this style 
  4706. control receives the additional button style BN_PAINT. 
  4707.  
  4708.  
  4709. ΓòÉΓòÉΓòÉ 4.12. Dlg Button PresParams ΓòÉΓòÉΓòÉ
  4710.  
  4711. Presentations 
  4712.  
  4713. The presentation parameter is a drop down list from which you select the visual 
  4714. attributes to assign to the current object. 
  4715.  
  4716. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  4717. can be re-used, i.e., attached to as many controls as you desire. 
  4718.  
  4719. A new application will only have the choice NULL, which assigns system defaults 
  4720. to the current object. 
  4721.  
  4722. Note:  There are no pre-defined presentations supplied. You must create one or 
  4723.        more presentations through the Object- Presentation menu from the main 
  4724.        editor Action Bar. 
  4725.  
  4726.  
  4727. ΓòÉΓòÉΓòÉ 4.13. BITMAP1 ΓòÉΓòÉΓòÉ
  4728.  
  4729. For User Button styles this field selects the default (button not pressed) 
  4730. image for the button. 
  4731.  
  4732. Note:  The list contains entries if and only if you have registered bitmaps for 
  4733.        this application. This is accomplished via the Object- 
  4734.        Icon/Bitmap/Pointer main menu Action Bar, with file type set to .BMP 
  4735.  
  4736.  Note:  If an entry exists in the text field it WILL appear in the center of 
  4737.         your bitmap. This may or may not be desirable. Simply delete the text 
  4738.         entry if need be. 
  4739.  
  4740.  
  4741. ΓòÉΓòÉΓòÉ 4.14. BITMAP2 ΓòÉΓòÉΓòÉ
  4742.  
  4743. For User Button styles this field selects the default (button not pressed) 
  4744. image for the button. 
  4745.  
  4746. Note:  The list contains entries if and only if you have registered bitmaps for 
  4747.        this application. This is accomplished via the Object- 
  4748.        Icon/Bitmap/Pointer main menu Action Bar, with file type set to .BMP 
  4749.  
  4750.  Note:  If an entry exists in the text field it WILL appear in the center of 
  4751.         your bitmap. This may or may not be desirable. Simply delete the text 
  4752.         entry if need be. 
  4753.  
  4754.  
  4755. ΓòÉΓòÉΓòÉ 4.15. DEFAULT ΓòÉΓòÉΓòÉ
  4756.  
  4757. This style can be ORed with the BS_PUSHBUTTON and BS_USERBUTTON styles to give 
  4758. the BS_DEFPUSHBUTTON and BS_DEFUSERBUTTON styles: 
  4759.  
  4760. BS_DEFAULT 
  4761.  
  4762.   A BS_DEFAULT pushbutton is one with a thick border box.  It has the same 
  4763. properties as a pushbutton. In addition, the user may press a BS_DEFAULT 
  4764. pushbutton by pressing the RETURN or ENTER key. The intention is the same for 
  4765. userbuttons, but the appearance of a BS_DEFAULT userbutton is 
  4766. application-defined. 
  4767.  
  4768.  
  4769. ΓòÉΓòÉΓòÉ 4.16. NOPOINTERFOCUS ΓòÉΓòÉΓòÉ
  4770.  
  4771. This style can be ORed with any of the basic button styles: 
  4772.  
  4773. BS_NOPOINTERFOCUS 
  4774.  
  4775.  Buttons with this style do not set the focus to themselves when clicked with 
  4776. the pointing device. This enables the cursor to stay on a control for which 
  4777. information is required, rather than moving to the button. 
  4778.  
  4779.  
  4780. ΓòÉΓòÉΓòÉ 4.17. NOCURSORSELECT ΓòÉΓòÉΓòÉ
  4781.  
  4782. This style can be ORed with the BS_AUTORADIOBUTTON style: 
  4783.  
  4784. BS_NOCURSORSELECT 
  4785.  
  4786. The radio button does not select itself when given the focus as the result of 
  4787. an arrow key or tab key. 
  4788.  
  4789.  
  4790. ΓòÉΓòÉΓòÉ 4.18. NOBORDER ΓòÉΓòÉΓòÉ
  4791.  
  4792. These styles can be ORed with the BS_PUSHBUTTON style: 
  4793.  
  4794. BS_NOBORDER 
  4795.  
  4796.  The pushbutton is displayed without a border drawn around it. There is no 
  4797. other change in the pushbutton's operation. 
  4798.  
  4799.  
  4800. ΓòÉΓòÉΓòÉ 4.19. Dlg Button Group ΓòÉΓòÉΓòÉ
  4801.  
  4802. Styles for Windows in Dialogs 
  4803.  
  4804. WS_GROUP 
  4805.  
  4806.  This identifies the dialog items that make up a `group'. 
  4807.  
  4808.  This style should be specified on the first window of any group. Subsequent 
  4809. windows of the group must not have this style. The windows of the group must be 
  4810. adjacent siblings. This can be done by listing the windows consecutively in 
  4811. templates or by inserting each new window in the group behind the previous one 
  4812. (WinCreateWindow). 
  4813.  
  4814.  
  4815. ΓòÉΓòÉΓòÉ 4.20. Dlg Button TabStop ΓòÉΓòÉΓòÉ
  4816.  
  4817. Styles for Windows in Dialogs 
  4818.  
  4819. WS_TABSTOP 
  4820.  
  4821.  This identifies a dialog item as one to which the operator can TAB. 
  4822.  
  4823.  
  4824. ΓòÉΓòÉΓòÉ 4.21. DIDNONE ΓòÉΓòÉΓòÉ
  4825.  
  4826. This option is set to on by default. The currently defined button does not send 
  4827. an aliased notification message to the application window. In this case, the 
  4828. message sent is the contents of the name entered in the Name entry field. 
  4829.  
  4830.  
  4831. ΓòÉΓòÉΓòÉ 4.22. DIDOK ΓòÉΓòÉΓòÉ
  4832.  
  4833. Send DID_OK message when this button is pressed. 
  4834.  
  4835.  
  4836. ΓòÉΓòÉΓòÉ 4.23. DIDCANCEL ΓòÉΓòÉΓòÉ
  4837.  
  4838. Send DID_CANCEL message when this button is pressed. 
  4839.  
  4840.  
  4841. ΓòÉΓòÉΓòÉ 4.24. Dlg Button Ok ΓòÉΓòÉΓòÉ
  4842.  
  4843.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  4844.                 will signal Gpf that you have completed any changes in the 
  4845.                 Button Control Styles dialog window and will save your changes. 
  4846.  
  4847.            If any of the options you have selected will result in a change to 
  4848.            the button control appearance, Gpf will automatically update the 
  4849.            button to reflect those changes. 
  4850.  
  4851.  
  4852. ΓòÉΓòÉΓòÉ 4.25. Dlg Button Cancel ΓòÉΓòÉΓòÉ
  4853.  
  4854.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  4855.                 cause Gpf to abort the current operation. 
  4856.  
  4857.            If you have changed any options for the button control while in the 
  4858.            Button Control Styles dialog window, Gpf will ignore the changes and 
  4859.            restore the original settings. 
  4860.  
  4861.  
  4862. ΓòÉΓòÉΓòÉ 4.26. Dlg Button EntryHelp ΓòÉΓòÉΓòÉ
  4863.  
  4864.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  4865.                 Control Styles dialog window, you will be able to define the 
  4866.                 general help text for your control. The text that you enter 
  4867.                 will be displayed by the Presentation Manager Help Facility if 
  4868.                 the user presses the F1 key when you finally run your compiled 
  4869.                 application. 
  4870.  
  4871.            You can also define an informational message for the control from 
  4872.            the Entry Extended Help dialog window. 
  4873.  
  4874.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  4875.  detailed explanation of the Entry Extended Help dialog window. 
  4876.  
  4877.  
  4878. ΓòÉΓòÉΓòÉ 4.27. Dlg Button Action ΓòÉΓòÉΓòÉ
  4879.  
  4880.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  4881.                 window. From this dialog window you can set the processing 
  4882.                 actions desired for the button control item when the user 
  4883.                 selects it. The Action On dialog window allows you to define 
  4884.                 processing for the following user action: 
  4885.  
  4886.            Click- This user action occurs when the user clicks on the button 
  4887.            control item with the mouse, or invokes the button control item with 
  4888.            an accelerator key. You can define the action associated with the 
  4889.            button control item selection from a list of pre-defined actions, or 
  4890.            with user developed source code. 
  4891.            The click option is listed in the Action On dialog window. To select 
  4892.            an action from the list box, either click on the target with the 
  4893.            mouse, or use the cursor keys on the keyboard. 
  4894.  
  4895.  View/Modify Action On Once the action has been selected, and the processing 
  4896.                 for that selection is to be viewed or modified, click on the 
  4897.                 View/Modify Action On (ALT+V) button. This will invoke the 
  4898.                 Action List dialog window. 
  4899.  
  4900.  Action List dialog windows, and associated processes, are described in the 
  4901.  Common Dialog Windows section (section 3.10). 
  4902.  
  4903.  
  4904. ΓòÉΓòÉΓòÉ 4.28. Dlg Button Destroy ΓòÉΓòÉΓòÉ
  4905.  
  4906.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  4907.                 button control item. 
  4908.  
  4909.            When you select this option, Gpf will prompt you with a message to 
  4910.            confirm that you want to destroy this button, as well as any 
  4911.            children of this control. 
  4912.  
  4913.  
  4914. ΓòÉΓòÉΓòÉ 5. Dlg Combo ΓòÉΓòÉΓòÉ
  4915.  
  4916. ******************************* 
  4917.  
  4918. This dialog contains one or more of the following keys. Double-click on the key 
  4919. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  4920. View/Modify... 
  4921.  
  4922. Create Combobox (ALT+C,C) 
  4923.  
  4924. Clicking on the Create Combobox (ALT+C,C) action will generate a combination 
  4925. box control and allow you to attach it to any visible window. Once the control 
  4926. is placed on the target window or dialog window, Gpf will invoke the Combobox 
  4927. Control Styles dialog window. Refer to Figure 3-11. 
  4928.  
  4929. Combobox controls are combination boxes. A combination box is two controls in 
  4930. one: an entry field and a list box. Combination boxes let the user enter data 
  4931. by typing in the entry field or by choosing from a list in the list box. 
  4932.  
  4933. As shown, the Combobox Control Styles dialog window consists of entry fields, 
  4934. combination boxes, check boxes, radio buttons, and pushbuttons. Some of these 
  4935. controls are located in group boxes and will be noted in the following 
  4936. descriptions: 
  4937.  
  4938. Name 
  4939.  
  4940. Each combobox has an identifying name. During program execution, the 
  4941. application's window procedure receives messages generated by the combination 
  4942. box in response to user input. The application responds to these messages by 
  4943. using this identifier of the combination box control. 
  4944.  
  4945. OS/2 Presentation Manager also has a set of functions which can manipulate 
  4946. items in a combination box using the Name identifier as an argument. 
  4947.  
  4948. Sibling 
  4949.  
  4950. The Sibling control is a combination box which displays and allows you to 
  4951. choose which control item or window will be a sibling of the Combobox currently 
  4952. being defined. 
  4953.  
  4954. Presentation 
  4955.  
  4956. The Presentation control is a combination box which displays and allows you to 
  4957. choose a presentation object for setting the font size and the foreground, 
  4958. background and border colors of the Combobox items. 
  4959.  
  4960. The Presentation object must have been previously identified as an object to 
  4961. Gpf. Refer to the Objects Pull-down section for information on defining 
  4962. presentation objects. 
  4963.  
  4964. Control Styles Group Box 
  4965.  
  4966. The Control Styles group box contains a number of radio buttons that define the 
  4967. Combobox style. 
  4968.  
  4969. Radio buttons are mutually exclusive; only one option can be set at one time. 
  4970. Each of the combination box options will be described below: 
  4971.  
  4972.  Simple         This option is set to OFF by default. A simple combination box 
  4973.                 displays its list box. The user can enter and edit text in the 
  4974.                 entry field or choose items from the list box. 
  4975.  Drop Down      This option is set to OFF by default. A simple drop down 
  4976.                 combination box displays its list box only if the user clicks 
  4977.                 the drop down button at the right end of the entry field. It 
  4978.                 hides the list box when the user clicks the drop down button a 
  4979.                 second time. In a drop down combination box, the user can enter 
  4980.                 and edit text in the entry field or choose items from the list 
  4981.                 box. 
  4982.  Drop Down List This option is set to ON by default. A drop down list 
  4983.                 combination box is similar to the simple drop down combination 
  4984.                 box, but the user cannot enter or edit text in the entry field. 
  4985.                 The user can only choose items from the list box. 
  4986.  
  4987.  Dialog Styles Group Box 
  4988.  
  4989.  The Dialog Styles group box contains a number of check boxes that will set 
  4990.  characteristics of the current Combobox control. Typically these options are 
  4991.  used for defining characteristics of a control in dialog windows. 
  4992.  
  4993.   Group         This option is set to on by default. With this style set to on, 
  4994.                 the Combobox control will act as an encapsulated group. It will 
  4995.                 receive the keyboard or mouse focus. The group style remains in 
  4996.                 effect until the next control with a style such as this is 
  4997.                 found. 
  4998.   Tabstop       This option is set to on by default. This style is typically 
  4999.                 used in conjunction with the Group style. When set to on, the 
  5000.                 current control will receive the focus when the user presses 
  5001.                 the TAB key to move between dialog controls. 
  5002.  
  5003.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  5004.                 will signal Gpf that you have completed any changes in the 
  5005.                 Combobox Control Styles dialog window. 
  5006.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  5007.                 cause Gpf to abort the current operation. 
  5008.  
  5009.            If you have changed any options for the Combobox control while in 
  5010.            the Combobox Control Styles dialog window, Gpf will ignore the 
  5011.            changes and restore the original settings. 
  5012.  
  5013.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  5014.                 Control Styles dialog window, you will be able to define the 
  5015.                 general help text for your control. The text that you enter 
  5016.                 will be displayed by the Presentation Manager Help Facility if 
  5017.                 the user presses the F1 key when you finally run your compiled 
  5018.                 application. 
  5019.  
  5020.            You can also define an informational message for the control with 
  5021.            the Entry Extended Help dialog window. 
  5022.  
  5023.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  5024.  detailed explanation of the Entry Extended Help dialog window. 
  5025.  
  5026.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  5027.                 window. From this dialog window you can set the processing 
  5028.                 actions for the Combobox control item when the user selects it. 
  5029.                 The Action On dialog window allows you to define processing for 
  5030.                 the following user actions: 
  5031.  
  5032.            Click - Presentation Manager generates a notification message to the 
  5033.            owning window when the user clicks on any item in the list box. 
  5034.            Double Click - Double clicking on an item in a Combobox will cause 
  5035.            Presentation Manager to send a notification message to the Combobox 
  5036.            owner. This message, in effect, simulates a user pressing the ENTER 
  5037.            key. 
  5038.            Change Data - When an item in a Combobox entry field is changed, the 
  5039.            Combobox sends a notification message to the owner window. 
  5040.  
  5041.  The above options are listed in the Action On dialog window. To select an 
  5042.  action from the list box, either click on the target with the mouse, or use 
  5043.  the cursor keys on the keyboard. 
  5044.  
  5045.  View/Modify Action On Once the action has been selected, and the processing 
  5046.                 for that selection is to be viewed or modified, click on the 
  5047.                 View/Modify Action On (ALT+V) button. This will invoke the 
  5048.                 Action List dialog window. 
  5049.  
  5050.  Action List dialog windows, and associated processes, are described in the 
  5051.  Common Dialog Windows section (Chapter 3.10). 
  5052.  
  5053.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  5054.                 Combobox control. 
  5055.  
  5056.            When you select this button, Gpf will prompt you with a message to 
  5057.            confirm that you want to destroy this Combobox control, as well as 
  5058.            any children of this Combobox. 
  5059.  
  5060.  
  5061. ΓòÉΓòÉΓòÉ 5.1. Dlg Combo Name ΓòÉΓòÉΓòÉ
  5062.  
  5063. Name 
  5064.  
  5065. Each combobox has an identifying name. During program execution, the 
  5066. application's window procedure receives messages generated by the combination 
  5067. box in response to user input. The application responds to these messages by 
  5068. using this identifier of the combination box control. 
  5069.  
  5070. OS/2 Presentation Manager also has a set of functions which can manipulate 
  5071. items in a combination box using the Name identifier as an argument. 
  5072.  
  5073.  
  5074. ΓòÉΓòÉΓòÉ 5.2. Dlg Combo Order ΓòÉΓòÉΓòÉ
  5075.  
  5076. Sibling 
  5077.  
  5078. The Sibling control is a combination box which displays and allows you to 
  5079. choose which control item or window will be a sibling of the Combobox currently 
  5080. being defined. 
  5081.  
  5082.  
  5083. ΓòÉΓòÉΓòÉ 5.3. Dlg Combo PresParams ΓòÉΓòÉΓòÉ
  5084.  
  5085. Presentation 
  5086.  
  5087. The Presentation control is a combination box which displays and allows you to 
  5088. choose a presentation object for setting the font size and the foreground, 
  5089. background and border colors of the Combobox items. 
  5090.  
  5091. The Presentation object must have been previously identified as an object to 
  5092. Gpf. Refer to the Objects Pull-down section for information on defining 
  5093. presentation objects. 
  5094.  
  5095.  
  5096. ΓòÉΓòÉΓòÉ 5.4. SIMPLE ΓòÉΓòÉΓòÉ
  5097.  
  5098. These combo box control styles are available: 
  5099.  
  5100. CBS_SIMPLE 
  5101.  
  5102.  Both the entry field control and the list box control are visible. When the 
  5103. selection changes in the list box control, the text of the selected item in the 
  5104. list box control is placed in the entry field. Also, the text in the entry 
  5105. field is completed by extending the text of the entry field with the closest 
  5106. match from the list box. 
  5107.  
  5108.  
  5109. ΓòÉΓòÉΓòÉ 5.5. DROPDOWN ΓòÉΓòÉΓòÉ
  5110.  
  5111. These combo box control styles are available: 
  5112.  
  5113. CBS_DROPDOWN 
  5114.  
  5115.  Inherits all the properties of a combo box control with a style of CBS_SIMPLE 
  5116. and, in addition, the list box control is hidden until the user requests that 
  5117. it should be displayed. 
  5118.  
  5119.  
  5120. ΓòÉΓòÉΓòÉ 5.6. DROPDOWNLIST ΓòÉΓòÉΓòÉ
  5121.  
  5122. These combo box control styles are available: 
  5123.  
  5124. CBS_DROPDOWNLIST 
  5125.  
  5126.  In which the entry field control is replaced by a static control that displays 
  5127. the current selection from the list box control. The user must explicitly cause 
  5128. the display of the list box control in order to make alternative selections in 
  5129. the list box. 
  5130.  
  5131.  
  5132. ΓòÉΓòÉΓòÉ 5.7. Dlg Combo Group ΓòÉΓòÉΓòÉ
  5133.  
  5134. Styles for Windows in Dialogs 
  5135.  
  5136. WS_GROUP 
  5137.  
  5138.  This identifies the dialog items that make up a `group'. 
  5139.  
  5140.  This style should be specified on the first window of any group. Subsequent 
  5141. windows of the group must not have this style. The windows of the group must be 
  5142. adjacent siblings. This can be done by listing the windows consecutively in 
  5143. templates or by inserting each new window in the group behind the previous one 
  5144. (WinCreateWindow). 
  5145.  
  5146.  
  5147. ΓòÉΓòÉΓòÉ 5.8. Dlg Combo TabStop ΓòÉΓòÉΓòÉ
  5148.  
  5149. Styles for Windows in Dialogs 
  5150.  
  5151. WS_TABSTOP 
  5152.  
  5153.  This identifies a dialog item as one to which the operator can TAB. 
  5154.  
  5155.  
  5156. ΓòÉΓòÉΓòÉ 5.9. Dlg Combo Ok ΓòÉΓòÉΓòÉ
  5157.  
  5158.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  5159.                 will signal Gpf that you have completed any changes in the 
  5160.                 Combobox Control Styles dialog window. 
  5161.  
  5162.  
  5163. ΓòÉΓòÉΓòÉ 5.10. Dlg Combo Cancel ΓòÉΓòÉΓòÉ
  5164.  
  5165.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  5166.                 cause Gpf to abort the current operation. 
  5167.  
  5168.            If you have changed any options for the Combobox control while in 
  5169.            the Combobox Control Styles dialog window, Gpf will ignore the 
  5170.            changes and restore the original settings. 
  5171.  
  5172.  
  5173. ΓòÉΓòÉΓòÉ 5.11. Dlg Combo EntryHelp ΓòÉΓòÉΓòÉ
  5174.  
  5175.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  5176.                 Control Styles dialog window, you will be able to define the 
  5177.                 general help text for your control. The text that you enter 
  5178.                 will be displayed by the Presentation Manager Help Facility if 
  5179.                 the user presses the F1 key when you finally run your compiled 
  5180.                 application. 
  5181.  
  5182.            You can also define an informational message for the control with 
  5183.            the Entry Extended Help dialog window. 
  5184.  
  5185.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  5186.  detailed explanation of the Entry Extended Help dialog window. 
  5187.  
  5188.  
  5189. ΓòÉΓòÉΓòÉ 5.12. Dlg Combo Action ΓòÉΓòÉΓòÉ
  5190.  
  5191.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  5192.                 window. From this dialog window you can set the processing 
  5193.                 actions for the Combobox control item when the user selects it. 
  5194.                 The Action On dialog window allows you to define processing for 
  5195.                 the following user actions: 
  5196.  
  5197.            Click - Presentation Manager generates a notification message to the 
  5198.            owning window when the user clicks on any item in the list box. 
  5199.            Double Click - Double clicking on an item in a Combobox will cause 
  5200.            Presentation Manager to send a notification message to the Combobox 
  5201.            owner. This message, in effect, simulates a user pressing the ENTER 
  5202.            key. 
  5203.            Change Data - When an item in a Combobox entry field is changed, the 
  5204.            Combobox sends a notification message to the owner window. 
  5205.  
  5206.  The above options are listed in the Action On dialog window. To select an 
  5207.  action from the list box, either click on the target with the mouse, or use 
  5208.  the cursor keys on the keyboard. 
  5209.  
  5210.  View/Modify Action On Once the action has been selected, and the processing 
  5211.                 for that selection is to be viewed or modified, click on the 
  5212.                 View/Modify Action On (ALT+V) button. This will invoke the 
  5213.                 Action List dialog window. 
  5214.  
  5215.  Action List dialog windows, and associated processes, are described in the 
  5216.  Common Dialog Windows section (Chapter 3.10). 
  5217.  
  5218.  
  5219. ΓòÉΓòÉΓòÉ 5.13. Dlg Combo Destroy ΓòÉΓòÉΓòÉ
  5220.  
  5221.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  5222.                 Combobox control. 
  5223.  
  5224.            When you select this button, Gpf will prompt you with a message to 
  5225.            confirm that you want to destroy this Combobox control, as well as 
  5226.            any children of this Combobox. 
  5227.  
  5228.  
  5229. ΓòÉΓòÉΓòÉ 6. Dlg Edit EntryField ΓòÉΓòÉΓòÉ
  5230.  
  5231. ******************************* 
  5232.  
  5233. This dialog contains one or more of the following keys. Double-click on the key 
  5234. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  5235. View/Modify... 
  5236.  
  5237. Create Entry Field (ALT+C,E) 
  5238.  
  5239. Clicking on the Create Entry Field (ALT+C,E) action will generate an entry 
  5240. field control and allow you to attach it to any visible window. Once the 
  5241. control is placed on the target window or dialog window, Gpf will invoke the 
  5242. Entry Field Control Styles dialog window. Refer to Figure 3-12. 
  5243.  
  5244. Entry fields are rectangular windows that display a single line of text a user 
  5245. can edit. When an entry field has the focus, it displays a flashing bar, called 
  5246. the cursor, that marks the current point where text can be entered. Entry 
  5247. fields send notification messages to the owner window when gaining or losing 
  5248. focus, or when the contents of the entry field have changed. 
  5249.  
  5250. As shown, the Entry Field Control Styles dialog window consists of entry 
  5251. fields, combination boxes, check boxes, radio buttons, and pushbuttons. Some of 
  5252. these controls are located in group boxes and will be noted in the following 
  5253. descriptions: 
  5254.  
  5255. Name 
  5256.  
  5257. Each entry field has an identifying name. During program execution, the 
  5258. application's window procedure receives messages generated by the entry field 
  5259. in response to user input. The application responds to these messages by using 
  5260. this identifier of the entry field control. 
  5261.  
  5262. OS/2 Presentation Manager also has a set of functions which can manipulate text 
  5263. in the entry field using the Name identifier as an argument. 
  5264.  
  5265. Sibling 
  5266.  
  5267. The Sibling control is a combination box which displays and allows you to 
  5268. choose which control item or window will be a sibling of the entry field 
  5269. currently being defined. 
  5270.  
  5271. Text 
  5272.  
  5273. You can specify the text that is displayed in the entry field with this option. 
  5274. The application can replace this default text during runtime as well using OS/2 
  5275. Presentation Manager API calls. 
  5276.  
  5277. Presentation 
  5278.  
  5279. The Presentation control is a combination box which displays and allows you to 
  5280. choose a presentation object for setting the font size, as well as the 
  5281. foreground, background, and border colors of the entry field text. 
  5282.  
  5283. The Presentation object must have been previously identified as an object to 
  5284. Gpf. Refer to the Objects Pull-down section (Chapter 3.X.X) for information on 
  5285. defining presentation objects. 
  5286.  
  5287. Text Styles Group Box 
  5288.  
  5289. The Text Styles group box contains a number of radio buttons that define how 
  5290. the text in the entry field will be drawn. 
  5291.  
  5292. Radio buttons are mutually exclusive; only one option can be set at one time. 
  5293. Each of the entry field options will be described below. 
  5294.  
  5295.  Left Aligned   This option is set to on by default. Entry field controls with 
  5296.                 this style will display text flush left within the control 
  5297.                 window. 
  5298.  Centered       This option is set to off by default. Click this option on if 
  5299.                 you want to center the text in the entry field control window. 
  5300.  Right Aligned  This option is set to off by default. Entry field controls with 
  5301.                 this style will display text flush right within the control 
  5302.                 window. 
  5303.  
  5304.  Entry Field Options Group Box 
  5305.  
  5306.  The Entry Field Options group box contains a number of check boxes that 
  5307.  control the display and formatting of text in the entry field control. 
  5308.  
  5309.  Being check boxes, Gpf will generate the option if set to on. You may combine 
  5310.  more than one option with the entry field control.    Each of the options are 
  5311.  described as follows: 
  5312.  
  5313.   Margin        This option is set to ON by default. The margin option will 
  5314.                 paint a wide border around the entry field control window. 
  5315.   Command       ** currently undefined  except in PM SDK header files. 
  5316.                 Reserved for future expansion. 
  5317.   Autoscroll    This option is set to on by default. With this option set to 
  5318.                 on, the entry field control will scroll lengthy text within the 
  5319.                 control window horizontally. 
  5320.   Unreadable    This option is set to off by default. When this option is 
  5321.                 selected,  any text entered in the entry field control will be 
  5322.                 masked with asterisk '*' characters. This is a useful option 
  5323.                 for entering passwords, or other sensitive data entry items. 
  5324.   Autotab       ** currently undefined. 
  5325.   Read Only     This option is off by default. When this option is set to on, 
  5326.                 the user cannot change the text within the entry field. 
  5327.  
  5328.  Dialog Styles Group Box 
  5329.  
  5330.  The Dialog Styles group box contains a number of check boxes that will set 
  5331.  characteristics for the current entry field control. Typically, these options 
  5332.  are for defining characteristics of a control in dialog windows. 
  5333.  
  5334.   Group         This option is set to on by default. With this style set to on, 
  5335.                 the entry field control will act as an encapsulated group. It 
  5336.                 will receive the keyboard or mouse focus. The group style 
  5337.                 remains in effect until the next control with a similar style 
  5338.                 is found. 
  5339.   Tabstop       This option is set to on by default. This style is typically 
  5340.                 used in conjunction with the Group style. When set to on, the 
  5341.                 current control will receive the focus when the user presses 
  5342.                 the TAB key to move between dialog controls. 
  5343.  
  5344.  Control Window Group Box 
  5345.  
  5346.  The Control Window group box provide additional options for setting 
  5347.  characteristics of an entry field control. 
  5348.  
  5349.   Max Length    This option is off by default. When the check box is set, a 
  5350.                 text length entry field is displayed. You can set the maximum 
  5351.                 length of characters that the user may enter with this option. 
  5352.  
  5353.                 NOTE: this function is disabled if the current field is 
  5354.                 associated with a database (selected in the Program Properties 
  5355.                 dialog.) 
  5356.  
  5357.   Picture Mask  ** currently undefined. 
  5358.  
  5359.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  5360.                 will signal Gpf that you have completed any changes in the 
  5361.                 Entry Field Control Styles dialog window. 
  5362.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  5363.                 cause Gpf to abort the current operation. 
  5364.  
  5365.            If you have changed any options for the Entry Field control while in 
  5366.            the Entry Field Control Styles dialog window, Gpf will ignore the 
  5367.            changes and restore the original settings. 
  5368.  
  5369.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Entry Field 
  5370.                 Control Styles dialog window, you will be able to define the 
  5371.                 general help text for your control. The text that you enter 
  5372.                 will be displayed by the Presentation Manager Help Facility if 
  5373.                 the user presses the F1 key when you finally run your compiled 
  5374.                 application. 
  5375.  
  5376.            You can also define an informational message for the control from 
  5377.            the Entry Extended Help dialog window. 
  5378.  
  5379.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  5380.  detailed explanation of the Entry Extended Help dialog window. 
  5381.  
  5382.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  5383.                 window. From this dialog window you can set the processing 
  5384.                 actions for the Entry Field control item when the user selects 
  5385.                 it. The Action On dialog window allows you to define processing 
  5386.                 for the following user actions: 
  5387.  
  5388.            Kill Focus - When the entry field loses the keyboard focus, a 
  5389.            notification message is sent to the owner window. 
  5390.            Set Focus - When the entry field receives the keyboard focus, a 
  5391.            notification message is sent to the owner window. 
  5392.            Change Data - When the contents of the entry field changes, a 
  5393.            notification message is sent to the owner window. 
  5394.            The above options are listed in the Action On dialog window. To 
  5395.            select an action from the list box, either click on the target with 
  5396.            the mouse, or use the cursor keys on the keyboard. 
  5397.  
  5398.  View/Modify Action On Once the action has been  selected, and the processing 
  5399.                 for that selection are to be viewed or modified, click on the 
  5400.                 View/Modify Action On (ALT+V) button. This will invoke the 
  5401.                 Action List dialog window. 
  5402.  
  5403.  Action List dialog windows and associated processes are described in the 
  5404.  Common Dialog Windows section (Chapter 3.10). 
  5405.  
  5406.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  5407.                 Entry Field control. 
  5408.  
  5409.            When you select this button, Gpf will prompt you with a message to 
  5410.            confirm that you want to destroy this Entry Field control, as well 
  5411.            as any children of this Entry Field. 
  5412.  
  5413.  
  5414. ΓòÉΓòÉΓòÉ 6.1. Dlg Edit Name ΓòÉΓòÉΓòÉ
  5415.  
  5416. Name 
  5417.  
  5418. Each entry field has an identifying name. During program execution,  the 
  5419. application's window procedure receives messages generated by the entry field 
  5420. in response to user input. The application responds to these messages by using 
  5421. this identifier of the entry field control. 
  5422.  
  5423.  
  5424. ΓòÉΓòÉΓòÉ 6.2. Dlg Edit Order ΓòÉΓòÉΓòÉ
  5425.  
  5426. Sibling 
  5427.  
  5428. The Sibling control is a combination box which displays and allows you to 
  5429. choose which control item or window will be a sibling of the entry field 
  5430. currently being defined. 
  5431.  
  5432.  
  5433. ΓòÉΓòÉΓòÉ 6.3. Dlg Edit Text ΓòÉΓòÉΓòÉ
  5434.  
  5435. Text 
  5436.  
  5437. You can specify the text that is displayed in the entry field with this option. 
  5438. The application can replace this default text during runtime as well using OS/2 
  5439. Presentation Manager API calls. 
  5440.  
  5441.  
  5442. ΓòÉΓòÉΓòÉ 6.4. Dlg Edit PresParams ΓòÉΓòÉΓòÉ
  5443.  
  5444. Presentations 
  5445.  
  5446. The presentation parameter is a drop down list from which you select the visual 
  5447. attributes to assign to the current object. 
  5448.  
  5449. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  5450. can be re-used, i.e., attached to as many controls as you desire. 
  5451.  
  5452. A new application will only have the choice NULL, which assigns system defaults 
  5453. to the current object. 
  5454.  
  5455. Note:  There are no pre-defined presentations supplied. You must create one or 
  5456.        more presentations through the Object- Presentation menu from the main 
  5457.        editor Action Bar. 
  5458.  
  5459.  
  5460. ΓòÉΓòÉΓòÉ 6.5. LEFT ΓòÉΓòÉΓòÉ
  5461.  
  5462. Radio buttons are mutually exclusive; only one option can be set at one time. 
  5463. Each of the entry field options will be described below. 
  5464.  
  5465.  Left Aligned   This option is set to on by default. Entry field controls with 
  5466.                 this style will display text flush left within the control 
  5467.                 window. 
  5468.  Centered       This option is set to off by default. Click this option on if 
  5469.                 you want to center the text in the entry field control window. 
  5470.  Right Aligned  This option is set to off by default. Entry field controls with 
  5471.                 this style will display text flush right within the control 
  5472.                 window. 
  5473.  
  5474.  
  5475. ΓòÉΓòÉΓòÉ 6.6. CENTER ΓòÉΓòÉΓòÉ
  5476.  
  5477. Radio buttons are mutually exclusive; only one option can be set at one time. 
  5478. Each of the entry field options will be described below. 
  5479.  
  5480.  Left Aligned   This option is set to on by default. Entry field controls with 
  5481.                 this style will display text flush left within the control 
  5482.                 window. 
  5483.  Centered       This option is set to off by default. Click this option on if 
  5484.                 you want to center the text in the entry field control window. 
  5485.  Right Aligned  This option is set to off by default. Entry field controls with 
  5486.                 this style will display text flush right within the control 
  5487.                 window. 
  5488.  
  5489.  
  5490. ΓòÉΓòÉΓòÉ 6.7. RIGHT ΓòÉΓòÉΓòÉ
  5491.  
  5492. Radio buttons are mutually exclusive; only one option can be set at one time. 
  5493. Each of the entry field options will be described below. 
  5494.  
  5495.  Left Aligned   This option is set to on by default. Entry field controls with 
  5496.                 this style will display text flush left within the control 
  5497.                 window. 
  5498.  Centered       This option is set to off by default. Click this option on if 
  5499.                 you want to center the text in the entry field control window. 
  5500.  Right Aligned  This option is set to off by default. Entry field controls with 
  5501.                 this style will display text flush right within the control 
  5502.                 window. 
  5503.  
  5504.  
  5505. ΓòÉΓòÉΓòÉ 6.8. MARGIN ΓòÉΓòÉΓòÉ
  5506.  
  5507.   Margin        This option is set to ON by default. The margin option will 
  5508.                 paint a wide border around the entry field control window. 
  5509.  
  5510.   This style can be used to cause a frame to be drawn around the control, with 
  5511.  a margin around the editable text. The margin is half a character-width wide 
  5512.  and half a character-height high. 
  5513.  
  5514.   When an entry field control with this style is positioned, it adjusts the 
  5515.  position so that the text is placed at the position specified. This position 
  5516.  differs from the original position by the width of the border and the margin. 
  5517.  
  5518.  
  5519. ΓòÉΓòÉΓòÉ 6.9. AUTOSCROLL ΓòÉΓòÉΓòÉ
  5520.  
  5521.   Autoscroll    This option is set to on by default. With this option set to 
  5522.                 on, the entry field control will scroll lengthy text within the 
  5523.                 control window horizontally. 
  5524.  
  5525.  
  5526. ΓòÉΓòÉΓòÉ 6.10. AUTOTAB ΓòÉΓòÉΓòÉ
  5527.  
  5528. AUTOTAB 
  5529.  
  5530. This flag exists in PM SDK header files but is currently undefined in MS or IBM 
  5531. documentation. 
  5532.  
  5533.  
  5534. ΓòÉΓòÉΓòÉ 6.11. READONLY ΓòÉΓòÉΓòÉ
  5535.  
  5536. READONLY 
  5537.  
  5538.  This style causes a single line entry field to be created in read only state. 
  5539.  
  5540.  When an entry field is in read only state, characters do not get inserted into 
  5541. the text. 
  5542.  
  5543.  However the insertion interface is still functional. 
  5544.  
  5545.  The entry field read only state can be altered by use of the EM_SETREADONLY 
  5546. message. 
  5547.  
  5548.  
  5549. ΓòÉΓòÉΓòÉ 6.12. COMMAND ΓòÉΓòÉΓòÉ
  5550.  
  5551. Command 
  5552.  
  5553. defined in PM SDK header files but undefined in MS or IBM documentation. 
  5554. Reserved for expansion. 
  5555.  
  5556.  
  5557. ΓòÉΓòÉΓòÉ 6.13. UNREADABLE ΓòÉΓòÉΓòÉ
  5558.  
  5559. UNREADABLE 
  5560.  
  5561.  This style causes the text not to be displayed (for passwords, for example). 
  5562.  
  5563.  
  5564. ΓòÉΓòÉΓòÉ 6.14. Dlg Edit Group ΓòÉΓòÉΓòÉ
  5565.  
  5566. Styles for Windows in Dialogs 
  5567.  
  5568. WS_GROUP 
  5569.  
  5570.  This identifies the dialog items that make up a `group'. 
  5571.  
  5572.  This style should be specified on the first window of any group. Subsequent 
  5573. windows of the group must not have this style. The windows of the group must be 
  5574. adjacent siblings. This can be done by listing the windows consecutively in 
  5575. templates or by inserting each new window in the group behind the previous one 
  5576. (WinCreateWindow). 
  5577.  
  5578.  
  5579. ΓòÉΓòÉΓòÉ 6.15. Dlg Edit TabStop ΓòÉΓòÉΓòÉ
  5580.  
  5581. Styles for Windows in Dialogs 
  5582.  
  5583. WS_TABSTOP 
  5584.  
  5585.  This identifies a dialog item as one to which the operator can TAB. 
  5586.  
  5587.  
  5588. ΓòÉΓòÉΓòÉ 6.16. MAXLNG ΓòÉΓòÉΓòÉ
  5589.  
  5590. Control Window Group Box 
  5591.  
  5592. The Control Window group box provide additional options for setting 
  5593. characteristics of an entry field control. 
  5594.  
  5595.   Max Length    This option is off by default. When the check box is set, a 
  5596.                 text length entry field is displayed. You can set the maximum 
  5597.                 length  of characters that the user may enter with this option. 
  5598.  
  5599.                 NOTE: this function is disabled if the current field  is 
  5600.                 associated with a database (selected in the Program Properties 
  5601.                 dialog.) 
  5602.  
  5603.  
  5604. ΓòÉΓòÉΓòÉ 6.17. MAXLENGTH ΓòÉΓòÉΓòÉ
  5605.  
  5606. The length appears if you check the MaxLength checkbox. Type in the number of 
  5607. characters which are to be allowed in this field. 
  5608.  
  5609. Note:  If a DB has been associated with this field, length is set to AUTO and 
  5610.        cannot be adjusted. 
  5611.  
  5612. Note: 
  5613.  
  5614.  
  5615. ΓòÉΓòÉΓòÉ 6.18. PICTUREMASK ΓòÉΓòÉΓòÉ
  5616.  
  5617. Defined in PM SDK header files but undefined in MS or IBM documentation. 
  5618. Reserved for expansion. 
  5619.  
  5620.  
  5621. ΓòÉΓòÉΓòÉ 6.19. Dlg Edit Ok ΓòÉΓòÉΓòÉ
  5622.  
  5623.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  5624.                 will signal Gpf that you have completed any changes in the 
  5625.                 Entry Field Control Styles dialog window. 
  5626.  
  5627.  
  5628. ΓòÉΓòÉΓòÉ 6.20. Dlg Edit Cancel ΓòÉΓòÉΓòÉ
  5629.  
  5630.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  5631.                 cause Gpf to abort the current operation. 
  5632.  
  5633.            If you have changed any options for the Entry Field controlwhile in 
  5634.            the Entry Field Control Styles dialog window, Gpf will ignore the 
  5635.            changes and restore the original settings. 
  5636.  
  5637.  
  5638. ΓòÉΓòÉΓòÉ 6.21. Dlg Edit EntryHelp ΓòÉΓòÉΓòÉ
  5639.  
  5640.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Entry Field 
  5641.                 Control Styles dialog window, you will be able to define the 
  5642.                 general help text for your control. The text that you enter 
  5643.                 will be displayed by the Presentation Manager Help Facility if 
  5644.                 the user presses the F1 key when you finally run your compiled 
  5645.                 application. 
  5646.  
  5647.            You can also define an informational message for the control from 
  5648.            the Entry Extended Help dialog window. 
  5649.  
  5650.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  5651.  detailed explanation of the Entry Extended Help dialog window. 
  5652.  
  5653.  
  5654. ΓòÉΓòÉΓòÉ 6.22. Dlg Edit Action ΓòÉΓòÉΓòÉ
  5655.  
  5656.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  5657.                 window. From this dialog window you can set the processing 
  5658.                 actions for the Entry Field control item when the user selects 
  5659.                 it. The Action On dialog window allows you to define processing 
  5660.                 for the following user actions: 
  5661.  
  5662.            Kill Focus - When the entry field loses the keyboard focus, a 
  5663.            notification message is sent to the owner window. 
  5664.            Set Focus - When the entry field receives the keyboard focus, a 
  5665.            notification message is sent to the owner window. 
  5666.            Change Data - When the contents of the entry field changes, a 
  5667.            notification message is sent to the owner window. 
  5668.            The above options are listed in the Action On dialog window. To 
  5669.            select an action from the list box, either click on the target with 
  5670.            the mouse, or use the cursor keys on the keyboard. 
  5671.  
  5672.  View/Modify Action On Once the action has been selected, and the processing 
  5673.                 for that selection are to be viewed or modified, click on the 
  5674.                 View/Modify Action On (ALT+V) button. This will invoke the 
  5675.                 Action List dialog window. 
  5676.  
  5677.  Action List dialog windows and associated processes are described in the 
  5678.  Common Dialog Windows section (Chapter 3.10). 
  5679.  
  5680.  
  5681. ΓòÉΓòÉΓòÉ 6.23. Dlg Edit Destroy ΓòÉΓòÉΓòÉ
  5682.  
  5683.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  5684.                 Entry Field control. 
  5685.  
  5686.            When you select this button, Gpf will prompt you with a message to 
  5687.            confirm that you want to destroy this Entry Field control, as well 
  5688.            as any children of this Entry Field. 
  5689.  
  5690.  
  5691. ΓòÉΓòÉΓòÉ 7. Dlg Window/Dialog ΓòÉΓòÉΓòÉ
  5692.  
  5693. ******************************* 
  5694.  
  5695. This dialog contains one or more of the following keys. Double-click on the key 
  5696. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  5697. View/Modify... 
  5698.  
  5699. Create Window/Dialog (ALT+C,W) 
  5700.  
  5701. You can generate a new window for your application definition through the use 
  5702. of the Create Window/Dialog action. For example, if you need to create a dialog 
  5703. window for a response to a menu selection you would use this option to first 
  5704. create the window template. You could then design this template to 
  5705. specification, adding the additional controls and actions that you want the 
  5706. window to have. 
  5707.  
  5708. When Gpf first generates the new window, it has the following characteristics: 
  5709.  
  5710.            Title Bar 
  5711.            System Menu 
  5712.            Minimize and Maximize Buttons 
  5713.            Sizing Border 
  5714.  
  5715.  Unlike the standard window that Gpf generates when you use the File New 
  5716.  (ALT,F,N) pull-down action, the generated window does NOT include a menu bar 
  5717.  control. A menu bar can be added to this new window with the Create Menu 
  5718.  (ALT+C,M) pull-down action. 
  5719.  
  5720.  Once the new window is generated by the Create Window/Dialog action, the 
  5721.  Window/Dialog Styles dialog window will appear to allow you to set the new 
  5722.  window/dialog characteristics. Following is a description of each of the 
  5723.  characteristic styles available for the new window, or dialog window. Figure 
  5724.  3-6 can be used as a reference. 
  5725.  
  5726.  As shown, the Window/Dialog Styles dialog window consists of a number of entry 
  5727.  fields, combination boxes, check boxes, radio buttons, and pushbuttons. Some 
  5728.  of these controls are located in group boxes and will be noted in the 
  5729.  following descriptions. 
  5730.  
  5731.  Name 
  5732.  
  5733.  Each window or dialog window you create is named. This name is used as a 
  5734.  reference for other controls and is also used for function naming when 
  5735.  application source code is generated. By default, Gpf will name the windows in 
  5736.  chronological order as follows: 
  5737.  
  5738.  MainWindow     This is the name given to the first window created by Gpf when 
  5739.                 you use the File New (ALT+F,N) action. 
  5740.  Window1        This is the name given to the first window created by Gpf when 
  5741.                 you use the Create Window/Dialog (ALT+C,W) action. 
  5742.  WindowX        This is the name given to each additional window created with 
  5743.                 the Create Window/Dialog action, where X is equal to the next 
  5744.                 sequential number of the  window created. 
  5745.  
  5746.  For example, if you have created two windows using the Create Window/Dialog 
  5747.  action, in addition to the window create from File New, the windows that Gpf 
  5748.  will have generated would be: 
  5749.  
  5750.            MainWindow 
  5751.            Window1 
  5752.            Window2 
  5753.  
  5754.  You can enter a different name in this field if you do not want to use the 
  5755.  names generated by Gpf. If you decide to change the default name, it would be 
  5756.  best if you could make the window name as descriptive as possible. It is 
  5757.  easier to guess the window relationship from a name such as: 
  5758.  
  5759.            ListDataFieldsDialog 
  5760.  
  5761.     rather than 
  5762.  
  5763.            T5rKjd832 ! 
  5764.  
  5765.  Window Names can contain as many as 20 characters, including underscore 
  5766.  characters (_), hyphens (-), and periods (.), as well as any letter or number. 
  5767.  You cannot use spaces in the Names field. 
  5768.  
  5769.  Before discussing the next two controls, Parent and Owner, it is appropriate 
  5770.  to examine what effect these controls have on the newly created window and the 
  5771.  rest of the application. 
  5772.  
  5773.  Parent and Owner Window Relationships 
  5774.  
  5775.  There are two types of relationships that exist for Presentation Manager 
  5776.  windows: parent-child, and ownership. Both will be discussed , as well as the 
  5777.  effect that setting the Parent and Owner controls has on a new window or 
  5778.  dialog window. 
  5779.  
  5780.  NOTE: The recommended Parent and Owner for MODAL dialog boxes is DESKTOP. 
  5781.  
  5782.  Parent-Child Relationships 
  5783.  
  5784.  With the exception of the Presentation Manager Desktop and Desktop-Object 
  5785.  windows, most windows have a parent window. For example, the first window you 
  5786.  create in an application uses the Presentation Manager Desktop window as its 
  5787.  parent. This first window is considered to be a child of the Desktop window. 
  5788.  
  5789.  All windows are drawn relative to its parent window. All coordinates are based 
  5790.  on the lower-left (0,0) corner of its parent window. For example, a window 
  5791.  whose coordinates are (20,20) is placed 20 pixels left and 20 pixels up from 
  5792.  the lower-left corner of its parent window. 
  5793.  
  5794.  Many windows can share the same parent window; these are called sibling 
  5795.  windows. Sibling windows can overlap on the screen; an application or a user 
  5796.  can arrange the windows so that some appear on top of others. Each child 
  5797.  window can have itself designated as a parent to a new window. Each child 
  5798.  window in this chain of windows is called a descendant window of the original 
  5799.  parent window. 
  5800.  
  5801.  All child windows are clipped to the parent window, meaning that no part of a 
  5802.  child window can exist outside of the parent. If the child window is larger 
  5803.  then the client area of the parent window, the system will automatically clip 
  5804.  the portion of the child that extends beyond the parent so that it does not 
  5805.  appear. 
  5806.  
  5807.  Setting the Parent control, in the Create Window/Dialog Styles dialog window, 
  5808.  to DESKTOP will allow the new window to exist OUTSIDE of all the other defined 
  5809.  windows in the application. The coordinate system is relative to the lower- 
  5810.  left corner of the screen, which is the desktop window's lower-left corner. 
  5811.  This window can be minimized, restored, or maximized, without effecting other 
  5812.  windows within the application. 
  5813.  
  5814.  Setting the Parent control in the Create Window/Dialog Styles dialog window to 
  5815.  any window other than DESKTOP will cause the new window to appear WITHIN the 
  5816.  boundaries of that designated parent. The new window will be clipped to the 
  5817.  parent window so that if you shrink the parent window you will reduce the 
  5818.  visible region of the child window. Also, if you hide or destroy the parent 
  5819.  window, the child windows are hidden or destroyed as well. 
  5820.  
  5821.  Ownership 
  5822.  
  5823.  Any window can have an owner window. An owner is a window, not necessarily a 
  5824.  parent window, that controls some aspect of another window. Ownership is 
  5825.  typically used to establish a connection between  windows so that together 
  5826.  they carry out useful tasks. This connection is usually in the form of 
  5827.  messaging communications between the window and the owner.  For example, the 
  5828.  title bar in an application's main window is owned by the frame window. 
  5829.  Together they let the user move the entire application window by clicking the 
  5830.  mouse in the title bar. 
  5831.  
  5832.  Ownership establishes a relationship between windows that is independent of 
  5833.  the parent-child relationship. Unlike parent and child windows, there are no 
  5834.  predefined rules for how the owner and owned windows interact. 
  5835.  
  5836.  Setting the Owner control in the Create Window/Dialog Styles dialog window to 
  5837.  DESKTOP will establish ownership of the newly created window to the desktop 
  5838.  window. The desktop will control the communication of messages to the newly 
  5839.  created window. 
  5840.  
  5841.  Setting the Owner control in the Create Window/Dialog Styles dialog window to 
  5842.  any window other than DESKTOP will establish ownership of the newly created 
  5843.  window to that of the designated window. The owner window will send messages 
  5844.  to, and receive messages from, the newly created window. 
  5845.  
  5846.  Window/Dialog Styles dialog window controls 
  5847.  
  5848.  Parent 
  5849.  
  5850.  The parent of the newly created window can be set from this control. The 
  5851.  Parent control is a combination box which will list all the currently defined 
  5852.  windows or dialog windows that were present when you created the new window. 
  5853.  
  5854.  By default Gpf will list the DESKTOP window as the parent. You may select 
  5855.  another window as the parent by clicking on the down arrow button on the 
  5856.  Parent control. If there are any other windows that are defined in the current 
  5857.  application, they will be listed here. 
  5858.  
  5859.  Owner 
  5860.  
  5861.  The owner of the newly created window can be set from this control. The Owner 
  5862.  control is a combination box, like the Parent control, which will list all of 
  5863.  the currently defined windows. 
  5864.  
  5865.  By default Gpf will list the DESKTOP window as the owner of the newly created 
  5866.  window. You may select another window as the owner by clicking on the down 
  5867.  arrow button on the Owner control. If there are any other windows that are 
  5868.  defined for the current application, they will be listed here. 
  5869.  
  5870.  Title 
  5871.  
  5872.  The Title control is an entry field where you can enter the text that you want 
  5873.  to have appear in the newly created window's title bar. This text is typically 
  5874.  the name of the application itself. For example, Gpf displays "Gpf Editor 
  5875.  [Filename.ORC]" in its title bar. 
  5876.  
  5877.  Title text can contain a maximum of 108 characters. 
  5878.  
  5879.  Source 
  5880.  
  5881.  The Source control is a combination box where you can select or define the 
  5882.  name of the source file where you want Gpf to generate the newly defined 
  5883.  window's source code. 
  5884.  
  5885.  The name is not required to be the same name that is entered in the Main 
  5886.  Window properties. When Gpf generates the source code for a multiple window 
  5887.  and multiple source file definition, the appropriate compilation and link 
  5888.  statements will be generated as well. 
  5889.  
  5890.  To select an existing source file name for the window, click the down arrow 
  5891.  button on the combination box to display a list of defined source names. By 
  5892.  clicking on a selection from this list, the entry field portion of the 
  5893.  combination box will change to reflect the new choice. 
  5894.  
  5895.  If you want to create a new source file for the window, position the mouse 
  5896.  pointer at the beginning of the currently displayed source file and type the 
  5897.  new name to replace it. 
  5898.  
  5899.  Thread 
  5900.  
  5901.  The Thread control is a combination box where you can select which thread the 
  5902.  new window will execute under. 
  5903.  
  5904.  To select a thread for the window, click the downward pointing arrow button on 
  5905.  the combination box to display a list of defined thread names. By clicking on 
  5906.  a selection from this list, the entry field portion of the combination box 
  5907.  will change to reflect the chosen thread name. 
  5908.  
  5909.  If you want to create a new thread of execution for the window, position the 
  5910.  mouse pointer at the beginning of the currently displayed thread name and type 
  5911.  the new name in to replace it. 
  5912.  
  5913.  Gpf will automatically generate the necessary source code for creating an OS/2 
  5914.  thread for the window. 
  5915.  
  5916.  Presentation Client 
  5917.  
  5918.  This control is a combination box where you can select the presentation 
  5919.  parameters of the window client area, such as fonts, colors, visual frame 
  5920.  attributes, etc. 
  5921.  
  5922.  This combination box is read-only, therefore you will only be allowed to 
  5923.  select from a list of pre-defined objects. To define these objects, see 
  5924.  section 3.5.2.2. If none are defined there will be one and only one choice: 
  5925.  NULL. The NULL choice specifies system defaults, as set via the Control Panel. 
  5926.  
  5927.  To select a presentation for the window, click the downward pointing arrow 
  5928.  button on the combination box to display the list of objectss. When you click 
  5929.  on a selection from this list, the entry field portion of the combination box 
  5930.  will change to reflect the color you chose. You will notice a small box marked 
  5931.  "Color" in the Styles dialog window. As you choose a selection in the Color 
  5932.  control this box will display a sample of the basic color of the selected 
  5933.  presentation. 
  5934.  
  5935.  Presentation Frame 
  5936.  
  5937.  The Presentation control allows you to select an object from a list of 
  5938.  Presentation Objects that were predefined for this application. These objects 
  5939.  allow you to set the formatting and color of the basic frame being created. 
  5940.  
  5941.  Like the Presentation Client control, the Presentation Frame control is a 
  5942.  read-only combination box. 
  5943.  
  5944.  To select a Presentation Object for the window title text, click the downward 
  5945.  pointing arrow button on the combination box to display a list of Presentation 
  5946.  Objects. By clicking on a selection from this list, the entry field portion of 
  5947.  the combination box will change to reflect the object you chose. By default, 
  5948.  this entry contains NULL. 
  5949.  
  5950.  For a complete explanation of Presentation Objects, refer to the section 
  5951.  titled Object Pull-down ( section 3.5). 
  5952.  
  5953.  Icon 
  5954.  
  5955.  The Icon control is a read-only combination box where you can set the icon 
  5956.  that will be displayed when the window is minimized by the user. 
  5957.  
  5958.  To select an icon for the window, click the downward pointing arrow button on 
  5959.  the combination box.  A list of Icon Objects will be displayed. By clicking on 
  5960.  a selection from this list, the entry field portion of the combination box 
  5961.  will change to reflect the object you chose.  You will notice a small box 
  5962.  marked "Icon" in the Styles dialog window.  As you choose a selection in the 
  5963.  Icon control this box will display the actual icon. 
  5964.  
  5965.  Icons are defined as Objects, just like Presentation Objects.  Refer to the 
  5966.  section titled Object Pull-down, section 3.5, for a full description on 
  5967.  defining Icon and Bitmap Objects. 
  5968.  
  5969.  Choose Styles Group Box 
  5970.  
  5971.  The Choose Styles group box contains a number of check boxes that will affect 
  5972.  the appearance of your window. 
  5973.  
  5974.  Check boxes turn on the related style when there is an 'X' in the check box 
  5975.  itself. If the check box is empty, Gpf will not generate the style for the 
  5976.  window. Each of the styles available will be described. 
  5977.  
  5978.   Title Bar     This option is set to on by default.  The title bar is located 
  5979.                 at the top of the window. Besides displaying text, the title 
  5980.                 bar is used to move the entire application window around on the 
  5981.                 screen. Click this check box off if you do not want to display 
  5982.                 a window title bar. 
  5983.   Minimize Button This option is set to on by default. The minimize button 
  5984.                 allows a window to be minimized to an icon. Click this check 
  5985.                 box off if you do not want to have your window minimized. 
  5986.                 Setting this check box to off will also effectively ignore the 
  5987.                 Icon control selection. 
  5988.   Maximize Button This option is set to on by default. The maximize button 
  5989.                 allows a window to be expanded to the borders of the windows 
  5990.                 parent - the entire screen in the case of the main window. 
  5991.                 Click this check box off if you do not want your application 
  5992.                 window to be maximized. 
  5993.   System Menu   This option is set to on by default. The system menu provides 
  5994.                 the user with window sizing and placement controls via keyboard 
  5995.                 commands and pull-down menu actions. Click this check box off 
  5996.                 if you do not want to have a system menu displayed on your 
  5997.                 application window. 
  5998.   Appl Menu     This option is set to on for the first window created in the 
  5999.                 Gpf application definition, and set to off for each window 
  6000.                 created thereafter. If this option is on, and a menu bar has 
  6001.                 been created for the window, Gpf will display a warning that 
  6002.                 the existing menu bar will be destroyed if you click this check 
  6003.                 box to off. If this check box option is off, and you later 
  6004.                 create a menu for the window, Gpf will automatically set this 
  6005.                 to on. 
  6006.   Horz Scroll Bar This option is set to off by default. If you click this check 
  6007.                 box on, Gpf will create a horizontal scroll bar along the 
  6008.                 bottom of the client window. 
  6009.   Vert Scroll Bar This option is set to off by default. If you click this check 
  6010.                 box on, Gpf will create a vertical scroll bar along the right 
  6011.                 border ( facing the screen ) of the client window. 
  6012.   Information Message This option is set to off by default. If you click this 
  6013.                 check box on, Gpf will allow you to display one line 
  6014.                 informational text in the Information message box. The 
  6015.                 Information message box is located along the bottom of the 
  6016.                 client window, above the horizontal scroll bar if one is 
  6017.                 defined. The text for the Information message box can be 
  6018.                 specified in the Entry Extended Help dialog box. Refer to the 
  6019.                 Common Dialog Window section of this document for an detailed 
  6020.                 explanation of the Information Message. 
  6021.  
  6022.   Appl Modal    This option is set to off by default. Windows with the 
  6023.                 application modal style set to ON will not allow you to access 
  6024.                 other windows, or menus, within the application until the modal 
  6025.                 window is dismissed. This style is usually found set to ON for 
  6026.                 dialog windows. 
  6027.   System Modal  This option is set to OFF by default. Windows with the system 
  6028.                 modal style set to ON will not only prevent you from accessing 
  6029.                 other windows or menus within the application, but will also 
  6030.                 prevent access to any other application on the system. The 
  6031.                 system modal style is typically set to on to signal the user of 
  6032.                 a critical error, or of some other reason that requires 
  6033.                 immediate attention. 
  6034.  
  6035.            NOTE: It is recommended that MODAL dialog boxes have the DESKTOP as 
  6036.            both owner and parent. 
  6037.  
  6038.  Choose Options Group Box 
  6039.  
  6040.  The Choose Options group box contains a number of check boxes that will effect 
  6041.  how Presentation Manager controls various aspects of your window. 
  6042.  
  6043.  Check boxes are considered to be turned ON for the related option when there 
  6044.  is an 'X' in the check box itself. If the check box is empty, Gpf will not 
  6045.  generate the option for the window. Each of the options available will be 
  6046.  described. 
  6047.  
  6048.   Logo          This option is set to OFF by default. The Logo is an opening 
  6049.                 window for your application, usually containing copyright or 
  6050.                 application specific information. Click this option ON if you 
  6051.                 want to have your application display a logo. Note that 
  6052.                 Presentation Manager can override this option if the PM Control 
  6053.                 Panel option for displaying a logo is set to OFF. 
  6054.   Save Bits     This option is set to ON by default. The Save Bits instructs 
  6055.                 Presentation Manager to save the image under the window as a 
  6056.                 bitmap. When the window is moved or hidden, the system restores 
  6057.                 the image by copying the bits. Click this option to OFF if you 
  6058.                 do not want bitmap images saved. 
  6059.   NoMoveWithOwner This option is set to OFF by default. This option will 
  6060.                 instruct Presentation Manager to create a window that will not 
  6061.                 move if the owner window moves. Click this option ON if you 
  6062.                 want your window NOT to move with the owner window. 
  6063.   Adjust        This option is set to OFF by default. This GPF feature, when 
  6064.                 set to ON, will cause all controls to re-size if the enclosing 
  6065.                 window is re-sized. This effect can be viewed in ANIMATOR mode. 
  6066.   SyncPaint     This option is set to ON by default. This option, when set to 
  6067.                 on, will cause the window to immediately receive WM_PAINT 
  6068.                 messages after a part of the window becomes invalid. When this 
  6069.                 option is set to OFF, the window receives WM_PAINT messages 
  6070.                 only if no higher priority messages are waiting to be processed 
  6071.                 in the window message queue. 
  6072.   NoByteAlign   This option is set to OFF by default. This option will instruct 
  6073.                 Presentation Manager to create a window that is not byte 
  6074.                 aligned. If this option is set to OFF, Presentation Manager 
  6075.                 will align the window on an eight byte boundary. This results 
  6076.                 in faster screen drawings in the client window. 
  6077.  
  6078.  Border Styles Group Box 
  6079.  
  6080.  The Border Styles group box contains a number of radio buttons that will 
  6081.  control the type of border your window will have. 
  6082.  
  6083.  Radio buttons in a group box are mutually exclusive. Only one can be set to on 
  6084.  in the group at one time. By clicking on the different border options, you 
  6085.  will set the radio button ON for the new option, while turning the radio 
  6086.  button OFF on the previously set option. 
  6087.  
  6088.  Sizeable Border This option is set to OFF by default. The Sizeable Border 
  6089.                 option instructs Gpf to generate a border around the window 
  6090.                 that will allow the user to size the height and width of the 
  6091.                 window with the mouse or keyboard commands. This border style 
  6092.                 is typically used in most OS/2 Presentation Manager 
  6093.                 applications. 
  6094.  Window Border  This option is set to OFF by default. The Window Border option 
  6095.                 instructs Gpf to generate a thin lined border around the 
  6096.                 window. The user cannot change the size of the window when this 
  6097.                 option is set to ON. This border type is typically used for 
  6098.                 windows that display a quick message to the user and are then 
  6099.                 dismissed. 
  6100.  Dialog Border  This option is set to OFF by default. The Dialog Border option 
  6101.                 instructs Gpf to generate a border that is thicker than the 
  6102.                 Window Border. The user is still prohibited from changing the 
  6103.                 size of the window. This border type is typically used for 
  6104.                 dialog windows. 
  6105.  No Border      This option is set to OFF by default. The No Border option 
  6106.                 instructs Gpf NOT to generate any border whatsoever around the 
  6107.                 window. This border type is typically used for windows with a 
  6108.                 parent other then the DESKTOP. 
  6109.  
  6110.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  6111.                 will signal Gpf that you have completed any changes in the 
  6112.                 Window Styles dialog window. 
  6113.  
  6114.            If any of the options you have selected will result in a change to 
  6115.            the windows appearance, Gpf will automatically update the window to 
  6116.            reflect those changes. For example, if the window was created with a 
  6117.            Sizeable Border, and you change the border type to Window Border, 
  6118.            the window's border will be changed to a Window Border type. 
  6119.  
  6120.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  6121.                 cause Gpf to abort the current operation. 
  6122.  
  6123.            If you have changed any options for the window while in the Window 
  6124.            Style dialog window, Gpf will ignore the changes and restore the 
  6125.            original control settings. 
  6126.  
  6127.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Window 
  6128.                 Styles dialog window, you will be able to define the general 
  6129.                 help text for your window. The text that you enter will be 
  6130.                 displayed by the Presentation Manager Help Manager if the user 
  6131.                 presses the F1 key when you finally run your compiled 
  6132.                 application. 
  6133.  
  6134.            You can also define an informational message for the window from the 
  6135.            Entry Extended Help dialog window. 
  6136.  
  6137.  Please refer to the Common Dialog Windows section for a detailed explanation 
  6138.  of the Entry Extended Help dialog window. 
  6139.  
  6140.  ACTION         The ACTION button (ALT+A) will invoke the Gpf Action On dialog 
  6141.                 window. From this dialog window you can set the processing 
  6142.                 actions for the window during the following stages: 
  6143.  
  6144.  Window Creation or Initialization - Presentation Manager 
  6145.  
  6146.  creates or initializes every window or dialog window. The developer can change 
  6147.  the default processing during the creation phase with either different 
  6148.  pre-defined actions, or their own source code. 
  6149.  
  6150.  Window Activation - After the above step, the window 
  6151.  
  6152.  is then activated. The developer can change the default processing during the 
  6153.  activation phase with either different pre-defined actions, or their own 
  6154.  source code. 
  6155.  
  6156.  Window DeActivation - This occurs when the user or application 
  6157.  
  6158.  has dismissed or destroyed the window. The developer can change the default 
  6159.  deactivation processing with either pre- defined actions, or their own source 
  6160.  code. 
  6161.  
  6162.  Each of the above are listed in the Action On dialog window. To select an 
  6163.  action from the list box, either click on the target phase with the mouse, or 
  6164.  use the directional keys on the keyboard. 
  6165.  
  6166.  View/Modify Action On Once the action has been selected, and the processing 
  6167.                 for that selection are to be viewed or modified, click on the 
  6168.                 View/Modify Action On (ALT+V) button. This will invoke the 
  6169.                 Action List dialog window. 
  6170.  
  6171.  Action List dialog windows, and associated processes, are described in the 
  6172.  Common Dialog Windows section. 
  6173.  
  6174.  OK             When you are finished viewing or modifying the action 
  6175.                 processing for the window, click on the OK (ALT+O) button to 
  6176.                 return to the Window Styles dialog window. 
  6177.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  6178.                 window as well as any children windows associated with the 
  6179.                 window. This option is NOT available for the main window, as 
  6180.                 every application must have at least one window. 
  6181.  
  6182.            When you select this button, Gpf will prompt you with a message to 
  6183.            confirm that you want to destroy this window, as well as any 
  6184.            children of this window. 
  6185.  
  6186.  
  6187. ΓòÉΓòÉΓòÉ 7.1. Dlg Frame Name ΓòÉΓòÉΓòÉ
  6188.  
  6189. Name 
  6190.  
  6191. Each window or dialog window you create is named. This name is used  as a 
  6192. reference for other controls and is also used for function naming  when 
  6193. application source code is generated. By default, Gpf will name the windows in 
  6194. chronological order as follows: 
  6195.  
  6196.  MainWindow     This is the name given to the first window created by Gpf when 
  6197.                 you use the File New (ALT+F,N) action. 
  6198.  Window1        This is the name given to the first window created by Gpf when 
  6199.                 you use the Create Window/Dialog (ALT+C,W) action. 
  6200.  WindowX        This is the name given to each additional window created with 
  6201.                 the Create Window/Dialog action, where X is equal to the next 
  6202.                 sequential number of the  window created. 
  6203.  
  6204.  For example, if you have created two windows using the Create Window/Dialog 
  6205.  action, in addition to the window create from File New, the windows that Gpf 
  6206.  will have generated would be: 
  6207.  
  6208.            MainWindow 
  6209.  
  6210.            Window1 
  6211.  
  6212.            Window2 
  6213.  
  6214.  You can enter a different name in this field if you do not want to use the 
  6215.  names generated by Gpf. If you decide to change the default name, it would be 
  6216.  best if you could make the window name as descriptive  as possible. It is 
  6217.  easier to guess the window relationship from a name such as: 
  6218.  
  6219.            ListDataFieldsDialog 
  6220.  
  6221.        rather than 
  6222.  
  6223.            T5rKjd832 ! 
  6224.  
  6225.  Window Names can contain as many as 20 characters, including underscore 
  6226.  characters (_), hyphens (-), and periods (.), as well as any letter or number. 
  6227.  You cannot use spaces in the Names field. 
  6228.  
  6229.  
  6230. ΓòÉΓòÉΓòÉ 7.2. Dlg Frame Source ΓòÉΓòÉΓòÉ
  6231.  
  6232. Source 
  6233.  
  6234. The Source control is a combination box where you can select or define  the 
  6235. name of the source file where you want Gpf to generate the newly defined 
  6236. window's source code. 
  6237.  
  6238. The name is not required to be the same name that is entered in the  Main 
  6239. Window properties. When Gpf generates the source code for a multiple  window 
  6240. and multiple source file definition, the appropriate compilation  and link 
  6241. statements will be generated as well. 
  6242.  
  6243. To select an existing source file name for the window, click the down  arrow 
  6244. button on the combination box to display a list of defined source  names. By 
  6245. clicking on a selection from this list, the entry field portion of the 
  6246. combination box will change to reflect the new choice. 
  6247.  
  6248. If you want to create a new source file for the window, position the  mouse 
  6249. pointer at the beginning of the currently displayed source file and type the 
  6250. new name to replace it. 
  6251.  
  6252.  
  6253. ΓòÉΓòÉΓòÉ 7.3. Dlg Frame Parent ΓòÉΓòÉΓòÉ
  6254.  
  6255. Parent 
  6256.  
  6257. The parent of the newly created window can be set from this control.  The 
  6258. Parent control is a combination box which will list all the currently  defined 
  6259. windows or dialog windows that were present when you created the new window. 
  6260.  
  6261. By default Gpf will list the DESKTOP window as the parent. You may select 
  6262. another window as the parent by clicking on the down arrow button on the Parent 
  6263. control. If there are any other windows that are defined in the current 
  6264. application, they will be listed here. 
  6265.  
  6266.  
  6267. ΓòÉΓòÉΓòÉ 7.4. Dlg Frame Thread ΓòÉΓòÉΓòÉ
  6268.  
  6269. Thread 
  6270.  
  6271. The Thread control is a combination box where you can select which thread the 
  6272. new window will execute under. 
  6273.  
  6274. To select a thread for the window, click the downward pointing arrow  button on 
  6275. the combination box to display a list of defined thread names. By clicking on a 
  6276. selection from this list, the entry field portion of the combination box will 
  6277. change to reflect the chosen thread  name. 
  6278.  
  6279. If you want to create a new thread of execution for the window, position  the 
  6280. mouse pointer at the beginning of the currently displayed thread name and type 
  6281. the new name in to replace it. 
  6282.  
  6283. Gpf will automatically generate the necessary source code for creating  an OS/2 
  6284. thread for the window. 
  6285.  
  6286.  
  6287. ΓòÉΓòÉΓòÉ 7.5. Dlg Frame Owner ΓòÉΓòÉΓòÉ
  6288.  
  6289. Owner 
  6290.  
  6291. The owner of the newly created window can be set from this control.  The Owner 
  6292. control is a combination box, like the Parent control, which  will list all of 
  6293. the currently defined windows. 
  6294.  
  6295. By default Gpf will list the DESKTOP window as the owner of the newly  created 
  6296. window. You may select another window as the owner by clicking  on the down 
  6297. arrow button on the Owner control. If there are any other windows that are 
  6298. defined for the current application, they will be listed here. 
  6299.  
  6300.  
  6301. ΓòÉΓòÉΓòÉ 7.6. Dlg Frame PresParams Frame ΓòÉΓòÉΓòÉ
  6302.  
  6303. Presentations 
  6304.  
  6305. The presentation parameter is a drop down list from which you select the visual 
  6306. attributes to assign to the current object. 
  6307.  
  6308. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  6309. can be re-used, i.e., attached to as many controls as you desire. 
  6310.  
  6311. A new application will only have the choice NULL, which assigns system defaults 
  6312. to the current object. 
  6313.  
  6314. Note:  There are no pre-defined presentations supplied. You must create one or 
  6315.        more presentations through the Object- Presentation menu from the main 
  6316.        editor Action Bar. 
  6317.  
  6318.  
  6319. ΓòÉΓòÉΓòÉ 7.7. Dlg Frame Title ΓòÉΓòÉΓòÉ
  6320.  
  6321. Title 
  6322.  
  6323. The Title control is an entry field where you can enter the text that  you want 
  6324. to have appear in the newly created window's title bar. This text is typically 
  6325. the name of the application itself. For example, Gpf displays "Gpf Editor 
  6326. [Filename.ORC]" in its title bar. 
  6327.  
  6328. Title text can contain a maximum of 108 characters. 
  6329.  
  6330.  
  6331. ΓòÉΓòÉΓòÉ 7.8. Dlg Frame PresParams Client ΓòÉΓòÉΓòÉ
  6332.  
  6333. Presentations 
  6334.  
  6335. The presentation parameter is a drop down list from which you select the visual 
  6336. attributes to assign to the current object. 
  6337.  
  6338. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  6339. can be re-used, i.e., attached to as many controls as you desire. 
  6340.  
  6341. A new application will only have the choice NULL, which assigns system defaults 
  6342. to the current object. 
  6343.  
  6344. Note:  There are no pre-defined presentations supplied. You must create one or 
  6345.        more presentations through the Object- Presentation menu from the main 
  6346.        editor Action Bar. 
  6347.  
  6348.  
  6349. ΓòÉΓòÉΓòÉ 7.9. Dlg Frame TitleBar ΓòÉΓòÉΓòÉ
  6350.  
  6351.   Title Bar     This option is set to on by default.  The title bar is located 
  6352.                 at the top of the window. Besides displaying text, the title 
  6353.                 bar is used to move the entire application window around on the 
  6354.                 screen. Click  this check box off if you do not want to display 
  6355.                 a window title bar. 
  6356.  
  6357.  
  6358. ΓòÉΓòÉΓòÉ 7.10. Dlg Frame Min ΓòÉΓòÉΓòÉ
  6359.  
  6360. FCF_MINBUTTON        Minimize button. 
  6361.  
  6362.   Minimize Button This option is set to on by default. The minimize button 
  6363.            allows a window to be minimized to an icon. Click this check box off 
  6364.            if you do not want to have your window minimized. Setting this check 
  6365.            box to off will also effectively ignore the Icon control selection. 
  6366.  
  6367.  
  6368. ΓòÉΓòÉΓòÉ 7.11. Dlg Frame Max ΓòÉΓòÉΓòÉ
  6369.  
  6370. FCF_MAXBUTTON        Maximize button. 
  6371.  
  6372.   Maximize Button This option is set to on by default. The maximize button 
  6373.            allows a window to be expanded to the borders of the windows parent 
  6374.            - the entire screen in the case of the main window. Click this check 
  6375.            box off if you do not want your application window to be maximized. 
  6376.  
  6377.  
  6378. ΓòÉΓòÉΓòÉ 7.12. Dlg Frame SysMenu ΓòÉΓòÉΓòÉ
  6379.  
  6380. FCF_SYSMENU         System menu. 
  6381.  
  6382.   System Menu This option is set to on by default. The system menu provides the 
  6383.            user with window sizing and placement controls via keyboard commands 
  6384.            and pull-down menu actions. Click this check box off if you do not 
  6385.            want to have a system menu displayed on your application window. 
  6386.  
  6387.  
  6388. ΓòÉΓòÉΓòÉ 7.13. Dlg Frame ApplMenu ΓòÉΓòÉΓòÉ
  6389.  
  6390. FCF_MENU           Application menu. 
  6391.  
  6392.   Appl Menu This option is set to on for the first window created in the Gpf 
  6393.            application definition, and set to off for each window created 
  6394.            thereafter. If this option is on, and a menu bar has been created 
  6395.            for the window, Gpf will display a warning that the existing menu 
  6396.            bar will be destroyed if you click this check box to off. If this 
  6397.            check box option is off, and you later create a menu for the window, 
  6398.            Gpf will automatically set this to on. 
  6399.  
  6400.  
  6401. ΓòÉΓòÉΓòÉ 7.14. Dlg Frame Hsb ΓòÉΓòÉΓòÉ
  6402.  
  6403. FCF_HORZSCROLL        Horizontal scroll bar. 
  6404.  
  6405.   Horz Scroll Bar This option is set to off by default. If you click this check 
  6406.            box on, Gpf will create a horizontal scroll bar along the bottom  of 
  6407.            the client window. 
  6408.  
  6409.  
  6410. ΓòÉΓòÉΓòÉ 7.15. Dlg Frame Vsb ΓòÉΓòÉΓòÉ
  6411.  
  6412. FCF_VERTSCROLL        Vertical scroll bar. 
  6413.  
  6414.   Vert Scroll Bar This option is set to off by default. If you click this check 
  6415.            box on, Gpf will create a vertical scroll bar along the right border 
  6416.            ( facing the screen ) of the client window. 
  6417.  
  6418.  
  6419. ΓòÉΓòÉΓòÉ 7.16. Dlg Frame InfoMsg ΓòÉΓòÉΓòÉ
  6420.  
  6421.   Information Message This option is set to off by default. If you click this 
  6422.            check box on, Gpf will allow you to display one line informational 
  6423.            text in the Information message box. The Information message box is 
  6424.            located along the bottom of the client window, above the horizontal 
  6425.            scroll bar if one is defined. The text for the Information message 
  6426.            box can be specified in the Entry Extended Help dialog box. Refer to 
  6427.            the Common Dialog Window section of this document for an detailed 
  6428.            explanation of the Information Message. 
  6429.  
  6430.  
  6431. ΓòÉΓòÉΓòÉ 7.17. Dlg Frame ApplModal ΓòÉΓòÉΓòÉ
  6432.  
  6433.   Appl Modal    This option is set to off by default. Windows with the 
  6434.                 application  modal style set to ON will not allow you to access 
  6435.                 other windows, or menus, within the application until the modal 
  6436.                 window is dismissed. This style is usually found set to ON for 
  6437.                 dialog windows. 
  6438.  
  6439.  
  6440. ΓòÉΓòÉΓòÉ 7.18. Dlg Frame SysModal ΓòÉΓòÉΓòÉ
  6441.  
  6442. FCF_SYSMODAL   The frame window is System Modal. 
  6443.  
  6444.   System Modal This option is set to OFF by default. Windows with the system 
  6445.            modal style set to ON will not only prevent you from accessing other 
  6446.            windows or menus within the application, but will also prevent 
  6447.            access to any other application on the system. The system modal 
  6448.            style is typically set to on to signal the user of a critical error, 
  6449.            or of some other reason that requires immediate attention. 
  6450.  
  6451.  
  6452. ΓòÉΓòÉΓòÉ 7.19. Dlg Frame Icon ΓòÉΓòÉΓòÉ
  6453.  
  6454. Icon 
  6455.  
  6456. The Icon control is a read-only combination box where you can set the icon that 
  6457. will be displayed when the window is minimized by the user. 
  6458.  
  6459. To select an icon for the window, click the downward pointing arrow  button on 
  6460. the combination box.  A list of Icon Objects will be displayed.  By clicking on 
  6461. a selection from this list, the entry field portion of the combination box will 
  6462. change to reflect the object you chose.  You  will notice a small box marked 
  6463. "Icon" in the Styles dialog window.  As  you choose a selection in the Icon 
  6464. control this box will display the actual icon. 
  6465.  
  6466. Icons are defined as Objects, just like Presentation Objects.  Refer  to the 
  6467. section titled Object Pull-down, section 3.5, for a full description  on 
  6468. defining Icon and Bitmap Objects. 
  6469.  
  6470.  
  6471. ΓòÉΓòÉΓòÉ 7.20. Dlg Frame Logo ΓòÉΓòÉΓòÉ
  6472.  
  6473.   Logo          This option is set to OFF by default. The Logo is an opening 
  6474.                 window for your application, usually containing copyright or 
  6475.                 application  specific information. Click this option ON if you 
  6476.                 want to have your application display a logo. Note that 
  6477.                 Presentation Manager can override  this option if the PM 
  6478.                 Control Panel option for displaying a logo is set to OFF. 
  6479.  
  6480.  
  6481. ΓòÉΓòÉΓòÉ 7.21. Dlg Frame SyncPaint ΓòÉΓòÉΓòÉ
  6482.  
  6483. WS_SYNCPAINT 
  6484.  
  6485. Window is synchronously repainted. 
  6486.  
  6487.  This style is set for windows that have Class Style CS_SYNCPAINT. Applications 
  6488. can then turn this style on and off to vary the window processing. 
  6489.  
  6490.  System-Provided Window Styles 
  6491.  
  6492.  
  6493. ΓòÉΓòÉΓòÉ 7.22. Dlg Frame SaveBits ΓòÉΓòÉΓòÉ
  6494.  
  6495. WS_SAVEBITS 
  6496.  
  6497.  This specifies that the screen image of the area under a window of this style 
  6498. be saved when the window is made visible. 
  6499.  
  6500.  
  6501. ΓòÉΓòÉΓòÉ 7.23. Dlg Frame NoByteAlign ΓòÉΓòÉΓòÉ
  6502.  
  6503. FCF_NOBYTEALIGN 
  6504.  
  6505.  When this flag is not set, the frame window is adjusted so that  window 
  6506. operations, such as moving, can be perfomed in an  optimized manner. For 
  6507. example, some displays can move a window more quickly if the movement is by a 
  6508. multiple of eight pels. If this flag is set, such optimizations are not 
  6509. performed and size and position values are honored. 
  6510.  
  6511.  
  6512. ΓòÉΓòÉΓòÉ 7.24. Dlg Frame NoMove ΓòÉΓòÉΓòÉ
  6513.  
  6514. FCF_NOMOVEWITHOWNER 
  6515.  
  6516.  The window should not be moved when its owner is moved. 
  6517.  
  6518.  
  6519. ΓòÉΓòÉΓòÉ 7.25. Dlg Frame AdjustSize ΓòÉΓòÉΓòÉ
  6520.  
  6521.   Adjust   This option is set to OFF by default. This GPF feature, when set to 
  6522.            ON, will cause all controls to re-size if the enclosing window is 
  6523.            re-sized. This effect can be viewed in ANIMATOR mode. 
  6524.  
  6525.  
  6526. ΓòÉΓòÉΓòÉ 7.26. Dlg Frame SizeBorder ΓòÉΓòÉΓòÉ
  6527.  
  6528. FCF_SIZEBORDER Wide sizing border. 
  6529.  
  6530.  Sizeable Border This option is set to ON by default. The Sizeable Border 
  6531.                 option instructs Gpf to generate a border around the window 
  6532.                 that will allow the user to size the height and width of the 
  6533.                 window with the mouse or keyboard commands. This border style 
  6534.                 is typically used in most OS/2 Presentation Manager 
  6535.                 applications. 
  6536.  
  6537.  
  6538. ΓòÉΓòÉΓòÉ 7.27. Dlg Frame WindowBorder ΓòÉΓòÉΓòÉ
  6539.  
  6540. FCF_BORDER Window is drawn with a thin border. 
  6541.  
  6542.  Window Border This option is set to OFF by default. The Window Border option 
  6543.            instructs Gpf to generate a thin lined border around the window. 
  6544.            The user cannot change the size of the window when this option is 
  6545.            set to ON. This border type is typically used for windows that 
  6546.            display  a quick message to the user and are then dismissed. 
  6547.  
  6548.  
  6549. ΓòÉΓòÉΓòÉ 7.28. Dlg Frame DlgBorder ΓòÉΓòÉΓòÉ
  6550.  
  6551. FCF_DLGBORDER  Window is drawn with a standard dialog border. 
  6552.  
  6553.  Dialog Border This option is set to OFF by default. The Dialog Border option 
  6554.            instructs Gpf to generate a border that is thicker than the Window 
  6555.            Border. The user is still prohibited from changing the size of the 
  6556.            window. This border type is typically used for dialog windows. 
  6557.  
  6558.  
  6559. ΓòÉΓòÉΓòÉ 7.29. Dlg Frame NoBorder ΓòÉΓòÉΓòÉ
  6560.  
  6561.  No Border This option is set to OFF by default. The No Border option instructs 
  6562.            Gpf NOT to generate any border whatsoever around the window.  This 
  6563.            border type is typically used for windows with a parent other then 
  6564.            the DESKTOP. 
  6565.  
  6566.  
  6567. ΓòÉΓòÉΓòÉ 8. Dlg Grid ΓòÉΓòÉΓòÉ
  6568.  
  6569. ******************************* 
  6570.  
  6571. This dialog contains one or more of the following keys. Double-click on the key 
  6572. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  6573. View/Modify... 
  6574.  
  6575. Options Grid (ALT+O,G) 
  6576.  
  6577. The Options Grid pull-down action will allow you to set an alignment grid for 
  6578. windows in the current application definition.  This is useful for insuring 
  6579. that all controls created are aligned properly within the target window. 
  6580.  
  6581. Clicking on this option will invoke the Grid Values dialog window.  Please 
  6582. refer to Figure 3-24 for the following dialog control descriptions: 
  6583.  
  6584. The Grid Values Dialog Window 
  6585.  
  6586. The Grid Values dialog windows contain a number of entry fields and pushbuttons 
  6587. that will allow you to set the grid dimensions for your application windows. 
  6588. When placed on the window, Gpf will automatically align a control to the 
  6589. nearest grid coordinates.  This is often referred to in other software packages 
  6590. as a "snap to" grid. 
  6591.  
  6592. For the following grid settings, Gpf will allow a maximum dimension size of 5. 
  6593. All measurements are in relative increments, and the settings entered here will 
  6594. be reflected in all current application window definitions. 
  6595.  
  6596. Horizontal (x) 
  6597.  
  6598. The default is one (1) increment. To have the horizontal grid in your 
  6599. application window spaced by more than 1 increment, enter the number in this 
  6600. entry field. The maximum increment is 5. 
  6601.  
  6602. Vertical (y) 
  6603.  
  6604. The default is one (1) increment. In this entry field you can set the number of 
  6605. increments that you would like the vertical grid set to within your application 
  6606. window. 
  6607.  
  6608.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  6609.                 Gpf that you have completed any changes in the Grid Values 
  6610.                 dialog window and are ready to exit. 
  6611.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  6612.                 signal Gpf that you want to exit the Grid Values dialog window 
  6613.                 without saving any changes made. 
  6614.  HELP           This is the standard gateway button, permitting entry into the 
  6615.                 full HELP system. 
  6616.  
  6617.  
  6618. ΓòÉΓòÉΓòÉ 8.1. GRIDX ΓòÉΓòÉΓòÉ
  6619.  
  6620. This is the horizontal resolution, the minimum incremental value by which 
  6621. objects can be sized or moved.  Enter a value in the range 1..5 
  6622.  
  6623.  
  6624. ΓòÉΓòÉΓòÉ 8.2. GRIDY ΓòÉΓòÉΓòÉ
  6625.  
  6626. This is the vertical resolution, the minimum incremental value by which objects 
  6627. can be sized or moved.  Enter a value in the range 1..5 
  6628.  
  6629.  
  6630. ΓòÉΓòÉΓòÉ 9. Dlg EntryHelp ΓòÉΓòÉΓòÉ
  6631.  
  6632. ******************************* 
  6633.  
  6634. This dialog contains one or more of the following keys. Double-click on the key 
  6635. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  6636. View/Modify... 
  6637.  
  6638. Entry Extended Help Dialog Window 
  6639.  
  6640. The Entry Extended Help, or Entry Help, dialog window allows you to specify 
  6641. help text for a particular menu pull-down, menu pull-down action item, control 
  6642. or window. 
  6643.  
  6644. This dialog window allows you to define the help descriptive text that the 
  6645. Presentation Manager Help Facility will display when in invoked. The help text 
  6646. is context sensitive to each of the defined controls of the application. 
  6647.  
  6648. The displaying of help text to the user is controlled by the Presentation 
  6649. Manager Help Facility, and requires no additional coding on your part. Gpf 
  6650. automatically generates all the required Presentation Manager API calls, as 
  6651. well as the proper resource definitions for the help text. 
  6652.  
  6653. Optionally the Entry Extended help dialog will allow you to define a single 
  6654. informational message that will be displayed along with your application client 
  6655. window. 
  6656.  
  6657. The Entry Extended Help Dialog Window 
  6658.  
  6659. The Entry Extended Help dialog window provides a means for defining context 
  6660. sensitive help messages for every control (i.e. Window, Button, Scroll Bar, 
  6661. Menu Pull-down, etc.) in your application. The display of the help text that 
  6662. you describe is managed by the Presentation  Manager Help Facility, all you 
  6663. have to do is provide the help reference  titles, subtitles, and text. 
  6664.  
  6665. Use Figure 3-27 as a reference. 
  6666.  
  6667.  
  6668. ΓòÉΓòÉΓòÉ 9.1. Dlg EntryHelp Title ΓòÉΓòÉΓòÉ
  6669.  
  6670. Help Title 
  6671.  
  6672. When Presentation Manager displays a help window, the title bar of the window 
  6673. will contain the text relative to what the help facility was invoked for. You 
  6674. can fill the Help Title field with a short description  of the context for the 
  6675. current help reference. The panel being created  will also appear in the HELP 
  6676. Contents pull-down under this name. 
  6677.  
  6678. The maximum number of characters that can be entered in this field is 31. 
  6679.  
  6680.  
  6681. ΓòÉΓòÉΓòÉ 9.2. Dlg EntryHelp Index ΓòÉΓòÉΓòÉ
  6682.  
  6683. Help Index 
  6684.  
  6685. Part of the Presentation Manager Help Facility is the ability to display  an 
  6686. index of all the available help text. This provides the user with an easy way 
  6687. to locate help text quickly. Fill the Help Index field with an index reference 
  6688. for the current help reference. 
  6689.  
  6690. The maximum number of characters that can be entered in this field is 31. 
  6691.  
  6692.  
  6693. ΓòÉΓòÉΓòÉ 9.3. Dlg EntryHelp Text ΓòÉΓòÉΓòÉ
  6694.  
  6695. Help Text 
  6696.  
  6697. The Help Text area is a multiple line text entry (MLE) box in which you can 
  6698. type the help text associated with the current help reference. The MLE supports 
  6699. standard cut and paste editing control as well as a word wrap feature. 
  6700.  
  6701. When the user invokes help for a specific item in the application, the 
  6702. Presentation Manager Help Facility will be invoked. The client window of the 
  6703. Help Facility will contain the text you enter here. 
  6704.  
  6705. Text can be entered directly from the keyboard, or can be pasted in via the 
  6706. system clipboard.  Yet another way is to have the file read in automatically 
  6707. via the ".im" directive, understood by the IPF utilities.  As a matter of fact, 
  6708. any ".", "&", or ":" command normally used when creating file-based help panels 
  6709. can be used here. Gpf itself does very little processing of this text,  other 
  6710. than to extract it from the '.ORC' file and pass it on to IPF. 
  6711.  
  6712. Gpf will allow you to enter approximately 4Kbytes of text. If more is required, 
  6713. use .im filename 
  6714.  
  6715.  
  6716. ΓòÉΓòÉΓòÉ 9.4. Dlg EntryHelp Information Msg ΓòÉΓòÉΓòÉ
  6717.  
  6718. Information Message 
  6719.  
  6720. You can optionally define an informational message display in the client window 
  6721. of your application. The information display box will be positioned at the 
  6722. bottom of your application client window and is a read only control (i.e. the 
  6723. user can not modify the text displayed  here). 
  6724.  
  6725. You can define an informational message for controls, menu items, or child 
  6726. windows in your application. When the user passes the mouse over them, or 
  6727. selects then with cursor movements, the information message will appear in the 
  6728. message box created at the window bottom. 
  6729.  
  6730. The maximum number of characters that can be entered in this field is 59. 
  6731.  
  6732.  
  6733. ΓòÉΓòÉΓòÉ 10. Dlg IconBitmapPointer ΓòÉΓòÉΓòÉ
  6734.  
  6735. ******************************* 
  6736.  
  6737. This dialog contains one or more of the following keys. Double-click on the key 
  6738. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  6739. View/Modify... 
  6740.  
  6741. Object Icon/Bitmap/Pointer Objects (ALT+B,I) 
  6742.  
  6743. Icons, Bitmaps, or Pointers can be incorporated into your application 
  6744. definition. Once defined as an object they can be set onto the window in the 
  6745. form of user drawn buttons, static text controls, or even used as the minimize 
  6746. icon. 
  6747.  
  6748. Clicking on the Object Icon/Bitmap/Pointer Object (ALT+B,I) pull-down action 
  6749. will invoke the Icon/Bitmap/Pointer list dialog window. 
  6750.  
  6751. The Icon/Bitmap/Pointer List dialog window contains a list of all currently 
  6752. defined Icon/Bitmap/Pointer Objects for the current application definition. The 
  6753. following will describe adding, editing, or deleting these objects: 
  6754.  
  6755.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  6756.                 will signal Gpf that you have completed any changes in the 
  6757.                 Icon/Bitmap/Pointer List dialog window. 
  6758.  View/Modify Object Click on this button (ALT+V) to display or modify any 
  6759.                 pre-defined Icon/Bitmap/Pointer objects. The current selection 
  6760.                 in the list will be chosen for this operation. This will invoke 
  6761.                 the Icon/Bitmap Object dialog window for modifying the selected 
  6762.                 object. The Icon/Bitmap Object dialog window is described in 
  6763.                 the following section. 
  6764.  Add Object     Clicking on the Add Object (ALT+A) button will invoke the 
  6765.                 Icon/Bitmap Object dialog window for defining the controls of 
  6766.                 the new object. 
  6767.  
  6768.  Icon/Bitmap Object Dialog Window 
  6769.  
  6770.  The Icon/Bitmap Object dialog window contains radio buttons, entry fields, and 
  6771.  pushbuttons to assist you in defining the Icon/Bitmap/Pointer object. Each of 
  6772.  the controls will be described below. Options located in a group box will be 
  6773.  noted. 
  6774.  
  6775.  Name 
  6776.  
  6777.  Each Icon/Bitmap/Pointer object has an identifying name. During the Gpf edit 
  6778.  session, when you are setting an Icon/Bitmap/Pointer object to a particular 
  6779.  window, menu, or other control, this name will appear in the 
  6780.  Icon/Bitmap/Pointer combination box of the particular control setting dialog. 
  6781.  
  6782.  By default Gpf will insert a Name for you as: 
  6783.  
  6784.            Iconx 
  6785.  
  6786.  where x is the sequential number of the next Icon/Bitmap/Pointer object to be 
  6787.  defined. 
  6788.  
  6789.  File Name 
  6790.  
  6791.  The actual file that contains the icon, bitmap, or pointer needs to be 
  6792.  identified to Gpf. The File Name entry field allows you to type in the name of 
  6793.  the file created by the Microsoft or IBM Icon Editor, or by a similar bitmap 
  6794.  creation utility. 
  6795.  
  6796.  File Type Group Box 
  6797.  
  6798.  The File Type group box contains a number of radio buttons for indicating what 
  6799.  type of object is being defined. The options will be described below. 
  6800.  
  6801.  Radio buttons are mutually exclusive; only one can be selected at a time. 
  6802.  
  6803.  Icon           This option is set to on by default. This option indicates that 
  6804.                 you are identifying an Icon drawing as the current object. Gpf 
  6805.                 will search for the file: 
  6806.  
  6807.            filename.ICO 
  6808.            where filename is the name of the file as specified in the File Name 
  6809.            entry field. 
  6810.  
  6811.  Bitmap         This option is set to off by default. This option indicates 
  6812.                 that you are identifying a Bitmap drawing as the current 
  6813.                 object. Gpf will search for the file: 
  6814.  
  6815.            filename.BMP 
  6816.            where filename is the name of the file as specified in the File Name 
  6817.            entry field. 
  6818.  
  6819.  Pointer        This option is set to off by default. This option indicates 
  6820.                 that you are identifying a Pointer drawing as the current 
  6821.                 object. Gpf will search for the file: 
  6822.  
  6823.            filename.PTR 
  6824.            where filename is the name of the file as specified in the File Name 
  6825.            entry field. 
  6826.  
  6827.  Bitmap, pointer, and icon files are closely related.  You may specify an  icon 
  6828.  to be used as a pointer object and vice-versa. You may also define an icon or 
  6829.  a pointer as a bitmap object. 
  6830.  
  6831.  Path 
  6832.  
  6833.  The Path control is an entry box where you must type in the full path to the 
  6834.  target icon, bitmap, or pointer file. Gpf will search the path for the above 
  6835.  described filename and extension. 
  6836.  
  6837.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  6838.                 Gpf that you have completed the current definition in the 
  6839.                 Icon/Bitmap Object dialog window. 
  6840.  
  6841.            This will return you to the Icon/Bitmap/Pointer List dialog window, 
  6842.            where you will be able to view the graphic object as it will appear 
  6843.            in your application. 
  6844.  
  6845.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  6846.                 signal Gpf that you want to exit the Icon/Bitmap Object dialog 
  6847.                 window without saving any changes made. 
  6848.  
  6849.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  6850.                 Icon/Bitmap/Pointer object. 
  6851.  
  6852.            Gpf will prompt you with a message to confirm that you want to 
  6853.            destroy this object, as well  as any children of the object. 
  6854.  
  6855.  
  6856. ΓòÉΓòÉΓòÉ 10.1. Dlg Ibp Name ΓòÉΓòÉΓòÉ
  6857.  
  6858. Name 
  6859.  
  6860. Each Icon/Bitmap/Pointer object has an identifying name. During the Gpf edit 
  6861. session, when you are setting an Icon/Bitmap/Pointer object to a particular 
  6862. window, menu, or other control, this name will appear in the  icon / Bitmap / 
  6863. Pointer combination box of the particular control setting dialog. 
  6864.  
  6865. By default Gpf will insert a Name for you as: 
  6866.  
  6867.            Iconx 
  6868.  
  6869.  where x is the sequential number of the next Icon/Bitmap/Pointer object to be 
  6870.  defined 
  6871.  
  6872.  
  6873. ΓòÉΓòÉΓòÉ 10.2. Dlg Ibp Icon ΓòÉΓòÉΓòÉ
  6874.  
  6875.  Icon           This option is set to on by default. This option indicates that 
  6876.                 you are identifying an Icon drawing as the current object. Gpf 
  6877.                 will search for the file: 
  6878.  
  6879.            filename.ICO 
  6880.            where filename is the name of the file as specified in the File Name 
  6881.            entry field. 
  6882.  
  6883.  
  6884. ΓòÉΓòÉΓòÉ 10.3. Dlg Ibp BitMap ΓòÉΓòÉΓòÉ
  6885.  
  6886.  Bitmap         This option is set to off by default. This option indicates 
  6887.                 that you are identifying a Bitmap drawing as the current 
  6888.                 object. Gpf will search for the file: 
  6889.  
  6890.            filename.BMP 
  6891.            where filename is the name of the file as specified in the File Name 
  6892.            entry field. 
  6893.  
  6894.  
  6895. ΓòÉΓòÉΓòÉ 10.4. Dlg Ibp Pointer ΓòÉΓòÉΓòÉ
  6896.  
  6897.  Pointer        This option is set to off by default. This option indicates 
  6898.                 that you are identifying a Pointer drawing as the current 
  6899.                 object. Gpf will search for the file: 
  6900.  
  6901.            filename.PTR 
  6902.            where filename is the name of the file as specified in the File Name 
  6903.            entry field. 
  6904.  
  6905.  
  6906. ΓòÉΓòÉΓòÉ 10.5. Dlg Ibp Ok ΓòÉΓòÉΓòÉ
  6907.  
  6908.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  6909.                 Gpf that you have completed the current definition in the 
  6910.                 Icon/Bitmap Object dialog window. 
  6911.  
  6912.            This will return you to the Icon/Bitmap/Pointer List dialog window, 
  6913.            where you will be able to view the graphic object as it will appear 
  6914.            in your application. 
  6915.  
  6916.  
  6917. ΓòÉΓòÉΓòÉ 10.6. Dlg Ibp Cancel ΓòÉΓòÉΓòÉ
  6918.  
  6919.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  6920.                 signal Gpf that you want to exit the Icon/Bitmap Object dialog 
  6921.                 window without saving any changes made. 
  6922.  
  6923.  
  6924. ΓòÉΓòÉΓòÉ 10.7. Dlg Ibp Destroy ΓòÉΓòÉΓòÉ
  6925.  
  6926.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  6927.                 signal Gpf that you want to exit the Icon/Bitmap Object dialog 
  6928.                 window without saving any changes made. 
  6929.  
  6930.  
  6931. ΓòÉΓòÉΓòÉ 11. Dlg ListAction ΓòÉΓòÉΓòÉ
  6932.  
  6933. This dialog lists all the actions you have currently defined and the object 
  6934. that is the target of the action. Use ADD or ADDTOP to insert additional items, 
  6935. where ADDTOP will place it at the beginning of the list, and ADD will insert it 
  6936. immediately after the hilited entry. 
  6937.  
  6938. ******************************* 
  6939.  
  6940. This dialog contains one or more of the following keys. Double-click on the key 
  6941. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  6942. View/Modify... 
  6943.  
  6944.  
  6945. ΓòÉΓòÉΓòÉ 12. Dlg ListBox ΓòÉΓòÉΓòÉ
  6946.  
  6947. ******************************* 
  6948.  
  6949. This dialog contains one or more of the following keys. Double-click on the key 
  6950. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  6951. View/Modify... 
  6952.  
  6953. Create Listbox (ALT+C,L) 
  6954.  
  6955. Clicking on the Create Listbox (ALT+C,L) action will generate a list box 
  6956. control and allow you to attach it to any visible window. Once the control is 
  6957. placed on the target window or dialog window, Gpf will invoke the Listbox 
  6958. Control Styles dialog window. Refer to Figure 3-10. 
  6959.  
  6960. As shown, the Listbox Control Styles dialog window consists of a number of 
  6961. entry fields, combination boxes, check boxes, radio buttons, and pushbuttons. 
  6962. Some of these controls are located in group boxes and will be noted in the 
  6963. following descriptions: 
  6964.  
  6965. Name 
  6966.  
  6967. Each listbox has an identifying name. During program execution, the 
  6968. application's window procedure receives messages generated by the listbox in 
  6969. response to user input. The application responds to these messages by using 
  6970. this identifier of the listbox control. 
  6971.  
  6972. OS/2 Presentation Manager also has a set of functions which can manipulate 
  6973. items in a list box using the Name identifier as an argument. 
  6974.  
  6975. Sibling 
  6976.  
  6977. The Sibling control is a combination box which displays, and allows you to 
  6978. choose which control item, or window, will be a sibling of the listbox 
  6979. currently being defined. 
  6980.  
  6981. Presentation 
  6982.  
  6983. The Presentation control is a combination box which displays and allows you to 
  6984. choose a presentation object for setting the font size, foreground and 
  6985. background, and border colors of the listbox items. 
  6986.  
  6987. The Presentation object must have been previously identified as an object to 
  6988. Gpf. Refer to the Objects Pull-down section for information on defining 
  6989. presentation objects. 
  6990.  
  6991. Control Styles Group Box 
  6992.  
  6993. The Control Styles group box contains a number of check boxes that define what 
  6994. type of attributes can be applied to the listbox control. 
  6995.  
  6996. Being check boxes, Gpf will generate the option if it is set to on. You may 
  6997. combine more than one option per listbox. Each of the options will be described 
  6998. below: 
  6999.  
  7000.   Horizontal Scroll Bar This option is set to off by default. When Gpf 
  7001.                 generates the listbox control, it is automatically drawn with a 
  7002.                 vertical scroll bar. Click this option on if you want a 
  7003.                 horizontal scroll bar drawn on this listbox as well. 
  7004.   Multiple Selection This option is set to off by default. With this option on, 
  7005.                 a user can select multiple listbox items as opposed to just one 
  7006.                 item. 
  7007.  
  7008.   Owner Draw    This option is set to on by default. When the listbox must be 
  7009.                 redrawn, Presentation Manager will send a notification message 
  7010.                 to the owner window of the list box. This includes when items 
  7011.                 must be hilited ( selected ). Another important effect of Owner 
  7012.                 Draw is the proper columnar alignment of proportional font 
  7013.                 text, e.g. when several fields of a DBM table is displayed in 
  7014.                 the listbox. 
  7015.   No Adjust Position This option is off by default. With this option set to on, 
  7016.                 the listbox height will automatically adjust to a multiple of 
  7017.                 the height of a listbox selection. 
  7018.  
  7019.  Sort Options Group Box 
  7020.  
  7021.  The Sort Options group box contains a number of radio buttons that define how 
  7022.  text items that fill the listbox should be sorted. This option is active only 
  7023.  if the items being loaded are done so via  SQL\DBM table functions, i.e. these 
  7024.  must be columns from the database selected in the Program Properties screen. 
  7025.  
  7026.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  7027.  in the group at one time. Each of the sort options will be described as 
  7028.  follows: 
  7029.  
  7030.  None           This option is on by default. Text items in a listbox are 
  7031.                 listed in the order that they were inserted in. 
  7032.  Ascending      This option is set to off by default. This option will cause 
  7033.                 text items to be inserted in ascending alphabetical order into 
  7034.                 the listbox. 
  7035.  Descending     This option is set to off by default. This option will cause 
  7036.                 text items to be inserted in descending alphabetical order into 
  7037.                 the listbox. 
  7038.  
  7039.  Dialog Styles Group Box 
  7040.  
  7041.  The Dialog Styles group box contains a number of check boxes that will set 
  7042.  characteristics of the current listbox control. Typically these options are 
  7043.  for defining characteristics of a control in dialog windows. 
  7044.  
  7045.   Group         This option is set to on by default. With this style set to on, 
  7046.                 the listbox control will act as an encapsulated group. It will 
  7047.                 receive the keyboard or mouse focus. The group style remains in 
  7048.                 effect until the next control with a style such as this is 
  7049.                 found. 
  7050.   Tabstop       This option is set to on by default. This style is typically 
  7051.                 used in conjunction with the Group style. When set to on, the 
  7052.                 current control will receive the focus when the user presses 
  7053.                 the TAB key to move between dialog controls. 
  7054.  
  7055.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  7056.                 will signal Gpf that you have completed any changes in the 
  7057.                 Listbox Control Styles dialog window. 
  7058.  
  7059.            If any of the options you have selected will result in a change to 
  7060.            the listbox control appearance, Gpf will automatically update the 
  7061.            listbox to reflect those changes. 
  7062.  
  7063.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  7064.                 cause Gpf to abort the current operation. 
  7065.  
  7066.            If you have changed any options for the button control while in the 
  7067.            Listbox Control Styles dialog window, Gpf will ignore the changes 
  7068.            and restore the original settings. 
  7069.  
  7070.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) button in the 
  7071.                 Static Control Styles dialog window, you will be able to define 
  7072.                 the general help text for your control. The text that you enter 
  7073.                 will be displayed by the Presentation Manager Help Facility if 
  7074.                 the user presses the F1 key when you finally run your compiled 
  7075.                 application. 
  7076.  
  7077.            You can also define an informational message for the control from 
  7078.            the Entry Extended Help dialog window. 
  7079.  
  7080.  Please refer to the Common Dialog Windows (section 3.10) for a detailed 
  7081.  explanation of the Entry Extended Help dialog window. 
  7082.  
  7083.  ASSOCIATE      This button is active if you have specified a database in the 
  7084.                 Program Properties (see Files pulldown) screen. If active, 
  7085.                 pressing this button will place you in the Associate dialog, as 
  7086.                 described in the Common Dialog Windows section, 3.10. Briefly 
  7087.                 speaking, from here you can specify which tables\columns to 
  7088.                 extract from your DB, and what is to be done with them. 
  7089.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  7090.                 window. From this dialog window you can set the processing 
  7091.                 actions for the listbox control item when the user selects it. 
  7092.                 The Action On dialog window allows you to define processing for 
  7093.                 the following user actions: 
  7094.  
  7095.            Click - Presentation Manager generates a notification message to the 
  7096.            owning window when the user clicks on any item in the list box. 
  7097.  
  7098.            Double Click - Double clicking on an item in a listbox will cause 
  7099.            Presentation Manager to send a LN_ENTER notification message to the 
  7100.            listbox owner. This message, in effect, simulates a user pressing 
  7101.            the ENTER key. 
  7102.  
  7103.            Set and Kill Focus  - When an item in a listbox is selected, the 
  7104.            listbox is given focus by the system. When another control, menu, 
  7105.            button, etc., is chosen outside of the listbox, the listbox loses 
  7106.            the focus. 
  7107.  
  7108.  The above options are listed in the Action On dialog window. To select an 
  7109.  action from the list box, either click on the target with the mouse, or use 
  7110.  the cursor keys on the keyboard. 
  7111.  
  7112.  View/Modify Action On Once the action has been selected, and the processing 
  7113.                 for that selection is to be viewed or modified, click on the 
  7114.                 View/Modify Action On (ALT+V) button. This will invoke the 
  7115.                 Action List dialog window. 
  7116.  
  7117.  Action List dialog windows, and associated processes, are described in the 
  7118.  Common Dialog Windows section (section 3.10). 
  7119.  
  7120.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  7121.                 listbox control. 
  7122.  
  7123.            When you select this button, Gpf will prompt you with a message to 
  7124.            confirm that you want to destroy this listbox control, as well as 
  7125.            any children of this listbox. 
  7126.  
  7127.  
  7128. ΓòÉΓòÉΓòÉ 12.1. Dlg Listbox Name ΓòÉΓòÉΓòÉ
  7129.  
  7130. Name 
  7131.  
  7132. Each listbox has an identifying name. During program execution, the 
  7133. application's window procedure receives messages generated by the listbox in 
  7134. response to user input. The application responds to these messages by using 
  7135. this identifier of the listbox control. 
  7136.  
  7137. OS/2 Presentation Manager also has a set of functions which can manipulate 
  7138. items in a list box using the Name identifier as an argument. 
  7139.  
  7140.  
  7141. ΓòÉΓòÉΓòÉ 12.2. Dlg Listbox Order ΓòÉΓòÉΓòÉ
  7142.  
  7143. Sibling 
  7144.  
  7145. The Sibling control is a combination box which displays, and allows  you to 
  7146. choose which control item, or window, will be a sibling of the listbox 
  7147. currently being defined. 
  7148.  
  7149.  
  7150. ΓòÉΓòÉΓòÉ 12.3. HORZSCROLLBAR ΓòÉΓòÉΓòÉ
  7151.  
  7152. A list box can have these styles: 
  7153.  
  7154. LS_HORZSCROLL 
  7155.  
  7156.  The list box control enables the operator to scroll the list box horizontally. 
  7157.  
  7158.  
  7159. ΓòÉΓòÉΓòÉ 12.4. MULTIPLESEL ΓòÉΓòÉΓòÉ
  7160.  
  7161. A list box can have these styles: 
  7162.  
  7163. LS_MULTIPLESEL 
  7164.  
  7165.  The list box control enables the operator to select more than one item at any 
  7166. one time. Lists that do not have this style allow only a single selection at 
  7167. any one time. 
  7168.  
  7169.  
  7170. ΓòÉΓòÉΓòÉ 12.5. OWNERDRAW ΓòÉΓòÉΓòÉ
  7171.  
  7172. A list box can have these styles: 
  7173.  
  7174. LS_OWNERDRAW 
  7175.  
  7176.  The list box control has one or more items that can be drawn by the owner. 
  7177. Typically, these items are represented by bit maps rather than by text strings. 
  7178.  
  7179.  
  7180. ΓòÉΓòÉΓòÉ 12.6. NOADJUSTPOS ΓòÉΓòÉΓòÉ
  7181.  
  7182. A list box can have these styles: 
  7183.  
  7184. LS_NOADJUSTPOS 
  7185.  
  7186.  If this style is included, the list box control is drawn at the size 
  7187. specified. This can cause parts of an item to be shown. 
  7188.  
  7189.  
  7190. ΓòÉΓòÉΓòÉ 12.7. Dlg Listbox PresParams ΓòÉΓòÉΓòÉ
  7191.  
  7192. Presentations 
  7193.  
  7194. The presentation parameter is a drop down list from which you select the visual 
  7195. attributes to assign to the current object. 
  7196.  
  7197. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  7198. can be re-used, i.e., attached to as many controls as you desire. 
  7199.  
  7200. A new application will only have the choice NULL, which assigns system defaults 
  7201. to the current object. 
  7202.  
  7203. Note:  There are no pre-defined presentations supplied. You must create one or 
  7204.        more presentations through the Object- Presentation menu from the main 
  7205.        editor Action Bar. 
  7206.  
  7207.  
  7208. ΓòÉΓòÉΓòÉ 12.8. SORTNONE ΓòÉΓòÉΓòÉ
  7209.  
  7210. This message inserts an item into a list box control. 
  7211.  
  7212. LIT_END 
  7213.  
  7214.  Add the item to the end of the list. 
  7215.  
  7216.  
  7217. ΓòÉΓòÉΓòÉ 12.9. SORTAS ΓòÉΓòÉΓòÉ
  7218.  
  7219. This message inserts an item into a list box control. 
  7220.  
  7221. LIT_SORTASCENDING 
  7222.  
  7223.  Insert the item into the list sorted in ascending order. 
  7224.  
  7225.  
  7226. ΓòÉΓòÉΓòÉ 12.10. SORTDES ΓòÉΓòÉΓòÉ
  7227.  
  7228. This message inserts an item into a list box control. 
  7229.  
  7230. LIT_SORTDESCENDING 
  7231.  
  7232.  Insert the item into the list sorted in descending order. 
  7233.  
  7234.  
  7235. ΓòÉΓòÉΓòÉ 12.11. Dlg Listbox Group ΓòÉΓòÉΓòÉ
  7236.  
  7237. Styles for Windows in Dialogs 
  7238.  
  7239. WS_GROUP 
  7240.  
  7241.  This identifies the dialog items that make up a `group'. 
  7242.  
  7243.  This style should be specified on the first window of any group. Subsequent 
  7244. windows of the group must not have this style. The windows of the group must be 
  7245. adjacent siblings. This can be done by listing the windows consecutively in 
  7246. templates or by inserting each new window in the group behind the previous one 
  7247. (WinCreateWindow). 
  7248.  
  7249.  
  7250. ΓòÉΓòÉΓòÉ 12.12. Dlg Listbox TabStop ΓòÉΓòÉΓòÉ
  7251.  
  7252. Styles for Windows in Dialogs 
  7253.  
  7254. WS_TABSTOP 
  7255.  
  7256.  This identifies a dialog item as one to which the operator can TAB. 
  7257.  
  7258.  
  7259. ΓòÉΓòÉΓòÉ 13. Dlg ListIconBitmapPointer ΓòÉΓòÉΓòÉ
  7260.  
  7261. ******************************* 
  7262.  
  7263. This dialog contains one or more of the following keys. Double-click on the key 
  7264. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  7265. View/Modify... 
  7266.  
  7267. The upper section of the screen is a read-only list of all ICON/BITMAP/POINTER 
  7268. objects known to your current application. The list includes a (possibly 
  7269. reduced) picture of the item. 
  7270.  
  7271. More objects can be added by the ADD or MODIFY buttons below. Delete an object 
  7272. with DESTROY. 
  7273.  
  7274.  
  7275. ΓòÉΓòÉΓòÉ 14. Dlg ListMessageBoxes ΓòÉΓòÉΓòÉ
  7276.  
  7277. ******************************* 
  7278.  
  7279. This dialog contains one or more of the following keys. Double-click on the key 
  7280. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  7281. View/Modify... 
  7282.  
  7283. The list at the top of the screen is read-only and shows all defined message 
  7284. boxes, with a name and current contents. 
  7285.  
  7286. You can click on an entry and press one of the editing buttons, or simply 
  7287. double-click on an entry. 
  7288.  
  7289. If no objects of this type exist the list is empty. 
  7290.  
  7291.  
  7292. ΓòÉΓòÉΓòÉ 15. Dlg List Presentation Objects ΓòÉΓòÉΓòÉ
  7293.  
  7294. The upper section of the screen is a read-only list of all (if any) defined 
  7295. presentations, listed by the name you gave them during their creation. 
  7296.  
  7297. Press Add to insert additional items. 
  7298.  
  7299. Press View/Modify to edit the properties of an existing presentation object. 
  7300.  
  7301. Press Destroy to delete an object. 
  7302.  
  7303.  
  7304. ΓòÉΓòÉΓòÉ 16. Dlg List User Function Objects ΓòÉΓòÉΓòÉ
  7305.  
  7306. The upper section of the screen is a read-only list of all User Function 
  7307. objects which you have defined. 
  7308.  
  7309. Select an object with a click and press: 
  7310.  
  7311.  Add       to insert additional items 
  7312.  View/modify to edit an existing object 
  7313.  
  7314.   To delete an object, press View/Modify then press Destroy in the following 
  7315.  screen. 
  7316.  
  7317.  
  7318. ΓòÉΓòÉΓòÉ 17. Dlg DB Table List ΓòÉΓòÉΓòÉ
  7319.  
  7320. The upper section of this screen is a read-only list of the tables (databases) 
  7321. which are can be read into the current object. 
  7322.  
  7323. Press Select Column to add or edit items from this list. 
  7324.  
  7325.  
  7326. ΓòÉΓòÉΓòÉ 18. Dlg Menu ΓòÉΓòÉΓòÉ
  7327.  
  7328. ******************************* 
  7329.  
  7330. This dialog contains one or more of the following keys. Double-click on the key 
  7331. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  7332. View/Modify... 
  7333.  
  7334. Create Menu (ALT+C,M) 
  7335.  
  7336. The Create Menu action allows you to add a menu bar to a window. 
  7337.  
  7338. When you create a new Gpf application definition, the first window that is 
  7339. created contains a default menu bar. For each additional window created, using 
  7340. the Create Window/Dialog Window (ALT+C,W), Gpf does not generate a menu bar. 
  7341.  
  7342. Clicking on the Create Menu (ALT+C,M) action will generate a menu bar and allow 
  7343. you to attach it to any visible window. If the target window does not have a 
  7344. menu bar already defined, Gpf will immediately invoke the Menu Options dialog 
  7345. window. Refer to Figure 3-7. 
  7346.  
  7347. Gpf will allow you to define three types of menu items: top level menu items, 
  7348. pull-down actions, and submenu items. 
  7349.  
  7350. Top level menu items are those that are directly visible in the application's 
  7351. menu bar. Clicking on a top level menu item will typically display a 
  7352. 'pull-down' list of action items. Subsequently, each pull-down action item can 
  7353. have a pull-down list of menu items, called a submenu. The following text and 
  7354. control descriptions apply to all three of these menu types. 
  7355.  
  7356. As shown, the Menu Options dialog window consists of a number of entry fields, 
  7357. combination boxes, check boxes, radio buttons, and push buttons. Some of these 
  7358. controls are located in group boxes and will be noted in the following 
  7359. descriptions. 
  7360.  
  7361. Name 
  7362.  
  7363. Each menu item has an identifying name. During program execution, the 
  7364. application's window procedure receives messages generated by the menu in 
  7365. response to user input, either from the mouse or the keyboard. The application 
  7366. responds to these messages by using the identifier of the menu item that is 
  7367. contained in each menu message. 
  7368.  
  7369. Text 
  7370.  
  7371. You can specify the text that is displayed in the menu or pull-down with the 
  7372. Text entry field. 
  7373.  
  7374. You can indicate a mnemonic keystroke for the menu item by preceding that 
  7375. character in the item text with a tilde, as in "~Open". The user can choose 
  7376. that item by pressing the mnemonic key when the menu is active. 
  7377.  
  7378. A menu item can have a keyboard accelerator associated with it. Accelerators 
  7379. differ from mnemonic keystrokes in that the menu does not have to be active for 
  7380. the accelerator key to work. Typically the accelerator is displayed to the 
  7381. right of the menu item. This is done by placing a tab character (\t) in the 
  7382. menu text before the characters that should be displayed on the right. For 
  7383. example, to indicate that the F3 function key can be used to exit the 
  7384. application, the text field entry would contain: 
  7385.  
  7386.         Exit\tF3 
  7387.  
  7388. Refer to the Accelerator Key description for generating the proper accelerator 
  7389. for your menu item. 
  7390.  
  7391. Sibling 
  7392.  
  7393. The Sibling control is a combination box which displays, and allows you to 
  7394. choose, which menu item is a sibling to the currently displayed menu item. 
  7395.  
  7396. You can re-arrange the position that the menu item appears in by changing the 
  7397. sibling relationship. The siblings are listed from either the top of the 
  7398. pull-down list order or across for top level menu items. 
  7399.  
  7400. Parent and Owner 
  7401.  
  7402. The Parent and Owner controls are read-only displays which indicate the 
  7403. respective Parent and Owner of the menu bar. Gpf sets this relationship 
  7404. automatically, with the menu directly communicating (sending messages) with the 
  7405. window it is attached to. 
  7406.  
  7407. Accelerator Key 
  7408.  
  7409. The Accelerator Key control is a combination box which lists all the available 
  7410. key combinations  that can be used for the current menu item definition. 
  7411.  
  7412. Keyboard accelerators provide an optional interface, the keyboard, for 
  7413. selecting menu items. Accelerators associate keystrokes with menu action items 
  7414. and therefore do not require the menu itself to be active. 
  7415.  
  7416. You can select an Accelerator Key from the Accelerator Key combination box for 
  7417. the current menu item definition by scrolling through the list of predefined 
  7418. keystroke combinations and clicking on the desired one. 
  7419.  
  7420. Submenu Presentation 
  7421.  
  7422. The Submenu Presentation combination box includes a list of all defined 
  7423. Presentation Objects.  Refer  to the Objects Pull- down (section 3.5) in this 
  7424. documentation for a description on creating Presentation Objects. 
  7425.  
  7426. The Presentation Object can change the appearance ( i.e. Foreground and 
  7427. Background Color,  Font and Font Sizes,  Borders,   etc. ) of the pull-down 
  7428. menu items. 
  7429.  
  7430. You can select a Submenu Presentation object by scrolling through the list of 
  7431. Presentation Objects and clicking on your choice. 
  7432.  
  7433. Menu Styles Group Box 
  7434.  
  7435. The Menu Styles group box contains a number of check boxes that affect how 
  7436. Presentation Manager displays the menu item. 
  7437.  
  7438. Check boxes are considered to be turned on for the related option when there is 
  7439. an 'X' in the check box itself. If the check box is empty, Gpf will not 
  7440. generate the option for the menu item.  Each of the options available will be 
  7441. described: 
  7442.  
  7443.   Break         This option is set to off by default. Presentation Manager will 
  7444.                 start a new row or column for the menu item when it encounters 
  7445.                 this style. 
  7446.   Static        This option is set to off by default. When the Static style 
  7447.                 option is set to on, the menu item is displayed as an 
  7448.                 informational item only. The user cannot select a menu item 
  7449.                 with this type, with either the mouse or keyboard. 
  7450.   Button Separator This option is set to off by default. When the Button 
  7451.                 Separator style option is set to on, the item cannot be 
  7452.                 selected by using the keyboard cursor keys. The item can only 
  7453.                 be selected with the mouse or defined accelerator keys. 
  7454.   Break Separator This option is set to off by default.  This style is the same 
  7455.                 as is described above for the Break style, with the exception 
  7456.                 that Presentation Manager will draw a separator line between 
  7457.                 the menu row or column. 
  7458.  
  7459.  Menu Attributes Group Box 
  7460.  
  7461.  The Menu Attributes group box contains a number of check boxes that control 
  7462.  the display aspects of a menu item, such as its highlighted and checked state. 
  7463.  
  7464.  Check boxes controls are considered to be turned on for the related option 
  7465.  when there is an 'X' in the check box itself. If the check box is empty, Gpf 
  7466.  will not generate the option for the menu item. Each of the options available 
  7467.  will be described. 
  7468.  
  7469.   No Dismiss    This option is set to OFF by default. When this option is set 
  7470.                 to ON, the menu which contains the current menu item will not 
  7471.                 be dismissed, even after the user makes a menu selection. The 
  7472.                 application becomes responsible for removing the menu from 
  7473.                 view. 
  7474.   Framed        This option is set to OFF by default. If this option is set to 
  7475.                 ON, the menu item will be framed by vertical lines to the left 
  7476.                 and right. 
  7477.   Checked       This option is set to OFF by default. If this option is set to 
  7478.                 ON, the menu item will have a check mark to the left of it when 
  7479.                 displayed. The application must control turning the check on 
  7480.                 and off on a menu item during program run- time. 
  7481.   Disabled      This option is set to OFF by default. The Disabled attribute, 
  7482.                 when set to ON, will gray out the menu item. The user may view 
  7483.                 a grayed menu item, but the system will issue an error beep 
  7484.                 when the menu item is clicked upon. The application is 
  7485.                 responsible for setting and clearing the disabled state of a 
  7486.                 menu item during program run-time. 
  7487.   Highlighted   This option is set to OFF by default. Presentation Manager will 
  7488.                 normally highlight the topmost pull-down item when a menu list 
  7489.                 is displayed. Set this option ON if you would rather have a 
  7490.                 different menu item highlighted at run-time. 
  7491.  
  7492.  Menu Type Group Box 
  7493.  
  7494.  The Menu Type group box contains a number of radio buttons which indicate what 
  7495.  type of object the menu item is. 
  7496.  
  7497.  Radio buttons in a group box are mutually exclusive; only one can be set to on 
  7498.  in the group. Each of the menu types will be described. 
  7499.  
  7500.  Text           This is the default menu type. The menu item is displayed as a 
  7501.                 text string. 
  7502.  Bitmap         This menu type allows  you to include a bitmap drawing as the 
  7503.                 menu item. When you enable this option, Gpf will activate the 
  7504.                 bitmap display box and the bitmap object combination box. The 
  7505.                 display box is located to the right of the bitmap option, and 
  7506.                 the combination box is at the bottom of the Type group box. The 
  7507.                 bitmaps must have been previously identified as an object to 
  7508.                 appear in the combination box list. Refer to the Objects 
  7509.                 Pull-down section (Section 3.5) for information on defining 
  7510.                 bitmap objects. 
  7511.  Separator      This menu type is set to off by default. The Separator type 
  7512.                 will generate a non-selectable horizontal line in the menu 
  7513.                 pull-down list. This is helpful for separating logical groups 
  7514.                 of pull-down actions in the same menu. Any text entered in the 
  7515.                 Text Entry Field is ignored when the Separator type is 
  7516.                 selected. 
  7517.  
  7518.  Owner Draw     This menu type is set to off by default. When a menu type is 
  7519.                 defined to be of type Owner Draw, then the application is 
  7520.                 responsible for drawing, redrawing, and dismissing the menu. 
  7521.                 The application receives notification messages from the menu 
  7522.                 bar each time a draw request needs to be serviced. 
  7523.  
  7524.  OK             Click on the OK (ALT+O) button when you are finished viewing or 
  7525.                 modifying the top level, pull-down, or submenu item, and want 
  7526.                 to save the item definitions or changes. 
  7527.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  7528.                 cause Gpf to abort the current operation. 
  7529.  
  7530.            If you have changed any options for the menu item while in the Menu 
  7531.            Options dialog window, Gpf will ignore the changes and restore the 
  7532.            original menu settings. 
  7533.  
  7534.  PULLDOWN       Top level menu items can have a pull-down action list of menu 
  7535.                 items associated with them. The PULLDOWN (ALT+P) button will 
  7536.                 allow you to add, edit, or remove pull-down action items. 
  7537.  
  7538.            Clicking on the PULLDOWN button will invoke the Selection Pull-down 
  7539.            dialog window. The Selection Pull-down dialog window will list the 
  7540.            pull-down action items already defined for the top level. 
  7541.  
  7542.            Double clicking on an available pull-down item in the list will 
  7543.            invoke a nested Menu Options dialog window. The control options are 
  7544.            the same as the ones used when defining the top level menu item with 
  7545.            the exception that the PULLDOWN button is renamed to SUBMENU. 
  7546.  
  7547.            If no pull-down items have been defined, you must first add one with 
  7548.            the ADD ITEM (ALT+A) button. 
  7549.  
  7550.            Each pull-down menu item can have a submenu associated with it. 
  7551.            Submenus typically provide 'in line' menu options for the particular 
  7552.            pull-down action, as opposed to invoking dialog boxes for user 
  7553.            input. 
  7554.  
  7555.            Submenu items are defined using the Menu Options dialog window, just 
  7556.            like the pull-down and top level menu items. 
  7557.  
  7558.  ENTRY HELP     By clicking the Entry Help (ALT+E) button in the Menu Options 
  7559.                 dialog window, you will be able to define the general help text 
  7560.                 for your menu item. The text that you enter will be displayed 
  7561.                 by the Presentation Manager Help Manager if the user presses 
  7562.                 the F1 key when the menu is the active selection. 
  7563.  
  7564.            You can also define an informational message for the menu item from 
  7565.            the Entry Extended Help dialog window. 
  7566.  
  7567.  Please refer to the Common Dialog Windows section for a detailed explanation 
  7568.  of the Entry Help dialog window. 
  7569.  
  7570.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  7571.                 window. From this dialog window you can set the processing 
  7572.                 actions desired for the menu item when the user selects it. The 
  7573.                 Action On dialog window allows you to define processing for the 
  7574.                 following user action: 
  7575.  
  7576.                Click 
  7577.  
  7578.  When the user clicks on the menu item with the mouse, or invokes the menu item 
  7579.  with an accelerator key. You can define the action associated with the menu 
  7580.  item selection with pre-defined, or user developed source code . 
  7581.  
  7582.  The click option is listed in the Action On dialog window. To select an action 
  7583.  from the list box, either click on the target with the mouse, or use the 
  7584.  directional keys on the keyboard. 
  7585.  
  7586.  View/Modify Action On Once the action has been selected, and the processing 
  7587.                 for that selection is to be viewed or modified, click on the 
  7588.                 View/Modify Action On (ALT+V) button. This will invoke the 
  7589.                 Action List dialog window. 
  7590.  
  7591.  Action List dialog windows, and associated processes, are described in the 
  7592.  Common Dialog Windows section. 
  7593.  
  7594.  OK             Once you are finished viewing or modifying the action 
  7595.                 processing for the menu, click on the OK (ALT+O) button to 
  7596.                 return to the Menu Options Styles dialog window. 
  7597.  
  7598.            If you are nested in defining pull-down menu items, or submenus, Gpf 
  7599.            will return to the next highest level. Continue to click the OK 
  7600.            button until you return to the Gpf edit screen. 
  7601.  
  7602.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  7603.                 menu item as well as any pull-down menu items associated with 
  7604.                 the menu. 
  7605.  
  7606.            When you select this button, Gpf will prompt you with a message to 
  7607.            confirm that you want to destroy this menu item, as well as any 
  7608.            pull-down children of this menu item. 
  7609.  
  7610.  
  7611. ΓòÉΓòÉΓòÉ 18.1. MIS_BREAK ΓòÉΓòÉΓòÉ
  7612.  
  7613. Menu Item Style 
  7614.  
  7615. MIS_BREAK 
  7616.  
  7617.  The item is the last one in a row or column.  The next item is displayed at 
  7618. the beginning of a new row or column. 
  7619.  
  7620.  
  7621. ΓòÉΓòÉΓòÉ 18.2. MIS_STATIC ΓòÉΓòÉΓòÉ
  7622.  
  7623. Menu Item Style 
  7624.  
  7625. MIS_STATIC 
  7626.  
  7627.  This type of item exists for information purposes only.  It cannot be selected 
  7628. with the pointing device or keyboard. 
  7629.  
  7630.  
  7631. ΓòÉΓòÉΓòÉ 18.3. MIS_BUTTONSEPARATOR ΓòÉΓòÉΓòÉ
  7632.  
  7633. This will right justify the item and insert a vertical separator bar to its 
  7634. immediate left. 
  7635.  
  7636.  
  7637. ΓòÉΓòÉΓòÉ 18.4. MIS_BREAKSEPARATOR ΓòÉΓòÉΓòÉ
  7638.  
  7639. Menu Item Style 
  7640.  
  7641. MIS_BREAKSEPARATOR 
  7642.  
  7643.  The same as MIS_BREAK, except that it draws a separator between rows or 
  7644. columns of a pull-down menu.  This style can only be used within a submenu. 
  7645.  
  7646.  
  7647. ΓòÉΓòÉΓòÉ 18.5. MIA_NODISMISS ΓòÉΓòÉΓòÉ
  7648.  
  7649. Menu items have the following attributes. 
  7650.  
  7651. MIA_NODISMISS 
  7652.  
  7653.  If this item is selected, the pull-down menu containing this item should not 
  7654. be hidden before notifying the application window of the selection. 
  7655.  
  7656.  
  7657. ΓòÉΓòÉΓòÉ 18.6. MIA_FRAMED ΓòÉΓòÉΓòÉ
  7658.  
  7659. Menu items have the following attributes. 
  7660.  
  7661. MIA_FRAMED 
  7662.  
  7663.  If this attribute is TRUE a frame is drawn around the item. 
  7664.  
  7665.  
  7666. ΓòÉΓòÉΓòÉ 18.7. MIA_CHECKED ΓòÉΓòÉΓòÉ
  7667.  
  7668. Menu items have the following attributes. 
  7669.  
  7670. MIA_CHECKED 
  7671.  
  7672. If this attribute is TRUE a checkmark appears next to the item. 
  7673.  
  7674.  
  7675. ΓòÉΓòÉΓòÉ 18.8. MIA_DISABLED ΓòÉΓòÉΓòÉ
  7676.  
  7677. Menu items have the following attributes. 
  7678.  
  7679. MIA_DISABLED 
  7680.  
  7681.  This attribute is TRUE if the item is disabled and cannot be selected.  The 
  7682. item is drawn in a disabled state. 
  7683.  
  7684.  
  7685. ΓòÉΓòÉΓòÉ 18.9. MIA_HILITED ΓòÉΓòÉΓòÉ
  7686.  
  7687. Menu items have the following attributes. 
  7688.  
  7689. MIA_HILITED 
  7690.  
  7691.  The state of this attribute is TRUE, if and only if, the item is selected. 
  7692.  
  7693.  
  7694. ΓòÉΓòÉΓòÉ 18.10. MIS_TEXT ΓòÉΓòÉΓòÉ
  7695.  
  7696. Menu Item Style 
  7697.  
  7698. MIS_TEXT 
  7699.  
  7700.  The display object is a text string. 
  7701.  
  7702.  
  7703. ΓòÉΓòÉΓòÉ 18.11. MIS_BITMAP ΓòÉΓòÉΓòÉ
  7704.  
  7705. Menu Item Style 
  7706.  
  7707. MIS_BITMAP 
  7708.  
  7709.  The display object is a bit map. 
  7710.  
  7711.  
  7712. ΓòÉΓòÉΓòÉ 18.12. MIS_SEPARATOR ΓòÉΓòÉΓòÉ
  7713.  
  7714. Menu Item Style 
  7715.  
  7716. MIS_SEPARATOR 
  7717.  
  7718.  The display object is a horizontal dividing line.  This type of item can only 
  7719. be used in pull-down menus.  This type of item cannot be enabled, checked, 
  7720. disabled, highlighted, or selected by the user.  The functional object is NULL 
  7721. when this style is specified. 
  7722.  
  7723.  
  7724. ΓòÉΓòÉΓòÉ 18.13. MIS_OWNERDRAW ΓòÉΓòÉΓòÉ
  7725.  
  7726. MIS_OWNERDRAW 
  7727.  
  7728.  Items with this style are drawn by the owner. WM_DRAWITEM and WM_MEASUREITEM 
  7729. notification messages are sent to the owner to draw the item or determine its 
  7730. size. 
  7731.  
  7732.  
  7733. ΓòÉΓòÉΓòÉ 19. Dlg Multiple Line Entry ΓòÉΓòÉΓòÉ
  7734.  
  7735. ******************************* 
  7736.  
  7737. This dialog contains one or more of the following keys. Double-click on the key 
  7738. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  7739. View/Modify... 
  7740.  
  7741. Create Multiple LE (ALT+C,U) 
  7742.  
  7743. Clicking on the Create Multiple LE (ALT+C,U) action will generate a Multiple 
  7744. Line Entry Field (MLE) control and allow you to attach it to any visible 
  7745. window. Once the control is placed on the target window or dialog window, Gpf 
  7746. will invoke the Multiple Line Entry Control Styles dialog window. Refer to 
  7747. Figure 3-13. 
  7748.  
  7749. A Multiple Line Entry Field is a sophisticated entry field control window that 
  7750. the user can use to view and edit multiple lines of text. In addition, a 
  7751. multiple line entry field provides all the text editing capability of a simple 
  7752. text editor, making these features readily available to applications. 
  7753.  
  7754. As shown, the Multiple Line Entry Field Control Styles dialog window consists 
  7755. of entry fields, combination boxes, check boxes, radio buttons, and 
  7756. pushbuttons. Some of these controls are located in group boxes and will be 
  7757. noted in the following descriptions: 
  7758.  
  7759. Name 
  7760.  
  7761. Each Multiple LE control has an identifying name. During program execution, the 
  7762. application's window procedure receives messages generated by the Multiple LE 
  7763. control in response to user input. The application responds to these messages 
  7764. by using this identifier of the Multiple LE control. 
  7765.  
  7766. OS/2 Presentation Manager also has a set of functions which can manipulate text 
  7767. in the Multiple Line Entry field using the handle of the MLE as an argument. 
  7768.  
  7769. Sibling 
  7770.  
  7771. The Sibling control is a combination box which displays and allows you to 
  7772. choose which control item or window will be a sibling of the Multiple Line 
  7773. Entry field currently being defined. 
  7774.  
  7775. Text 
  7776.  
  7777. You can specify the text that is initially displayed in the Multiple Line Entry 
  7778. field with this option. The application can replace this default text during 
  7779. runtime as well by using OS/2 Presentation Manager API calls. 
  7780.  
  7781. Presentation 
  7782.  
  7783. The Presentation control is a combination box which displays and allows you to 
  7784. choose a presentation object for setting the font size, as well as foreground, 
  7785. background, and border colors of the Multiple Line Entry field text. 
  7786.  
  7787. The Presentation object must have been previously identified as an object to 
  7788. Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  7789. defining presentation objects. 
  7790.  
  7791. Control Styles Group Box 
  7792.  
  7793. The Control Styles group box contains a number of check boxes which allow you 
  7794. to set a number of characteristic styles for the Multiple LE field control. 
  7795. Each of the Multiple LE options will be described below. 
  7796.  
  7797. Check boxes are considered to be set to on when a small 'x' appears in the 
  7798. check box. 
  7799.  
  7800.   Border        This option is set to ON by default. With this option set to 
  7801.                 on, the Multiple LE field will have a black border drawn around 
  7802.                 it. 
  7803.   Vert Scroll Bar This option is set to on by default. A vertical scroll bar is 
  7804.                 added to the Multiple LE. The initial state of the scroll bar 
  7805.                 is disabled until the number of lines of text exceed the 
  7806.                 Multiple LE height. 
  7807.   Word Wrap     This option is set to ON by default. When a line of text 
  7808.                 exceeds the length ( width ) of the Multiple LE, lines will 
  7809.                 automatically break at a convenient place  in the text and wrap 
  7810.                 to the next line. 
  7811.   Horz Scroll Bar This option is set to OFF by default. A horizontal scroll bar 
  7812.                 is added to the Multiple LE. The initial state of the scroll 
  7813.                 bar is disabled until the width of the text line exceeds the 
  7814.                 Multiple LE width. 
  7815.   Read Only     This option is set to OFF by default. With this option set, the 
  7816.                 Multiple LE will not accept any date edit or entries. This is 
  7817.                 typically used to display static text. 
  7818.   Ignore Tab    This option is set to on by default. This directs the Multiple 
  7819.                 LE to ignore tabs entered by the user. 
  7820.  
  7821.  Dialog Styles Group Box 
  7822.  
  7823.  The Dialog Styles group box contains a number of check boxes that will set 
  7824.  characteristics of the current Multiple LE field control. Typically these 
  7825.  options are for defining characteristics of a control in dialog windows. 
  7826.  
  7827.   Group         This option is set to on by default. With this style set to on, 
  7828.                 the Multiple LE field control will act as an encapsulated 
  7829.                 group. It will receive the keyboard or mouse focus. The group 
  7830.                 style remains in effect until the next control with a style 
  7831.                 such as this is found. 
  7832.   Tabstop       This option is set to on by default. This style is typically 
  7833.                 used in conjunction with the Group style. When set to on, the 
  7834.                 current control will receive the focus when the user presses 
  7835.                 the TAB key to move between dialog controls. 
  7836.  
  7837.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  7838.                 will signal Gpf that you have completed any changes in the 
  7839.                 Multiple Line Entry Control Styles dialog window. 
  7840.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  7841.                 cause Gpf to abort the current operation. 
  7842.  
  7843.            If you have changed any options for the Multiple LE Field control 
  7844.            while in the Control Styles dialog window, Gpf will ignore the 
  7845.            changes and restore the original settings. 
  7846.  
  7847.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Multiple 
  7848.                 Line Entry Control Styles dialog window, you will be able to 
  7849.                 define the general help text for your control. The text that 
  7850.                 you enter will be displayed by the Presentation Manager Help 
  7851.                 Facility if the user presses the F1 key during application run 
  7852.                 time. 
  7853.  
  7854.            You can also define an informational message for the control from 
  7855.            the Entry Extended Help dialog window. 
  7856.  
  7857.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  7858.  detailed explanation of the Entry Extended Help dialog window. 
  7859.  
  7860.  ACTION         The ACTION button (ALT+A), will invoke the Gpf Action On dialog 
  7861.                 window. From this dialog window you can set the processing 
  7862.                 actions for the Multiple LE field control item when the user 
  7863.                 selects it. The Action On dialog window allows you to define 
  7864.                 processing for the following user actions: 
  7865.  
  7866.            Kill Focus - When the Multiple LE field loses the keyboard focus, a 
  7867.            notification message is sent to the owner window. 
  7868.  
  7869.            Set Focus- When the Multiple LE field receives the keyboard focus, a 
  7870.            notification message is sent to the owner window. 
  7871.  
  7872.            Change Data- When the contents of the Multiple LE field have 
  7873.            changed, a notification message is sent to the owner window. 
  7874.  
  7875.            The above options are listed in the Action On dialog window. To 
  7876.            select an action from the list box, either click on the target with 
  7877.            the mouse, or use the cursor keys on the keyboard. 
  7878.  
  7879.  View/Modify Action On Once the action has been selected, and the processing 
  7880.                 for that selection are to be viewed or modified, click the 
  7881.                 View/Modify Action On (ALT+V) button. This will invoke the 
  7882.                 Action List dialog window. 
  7883.  
  7884.  Action List dialog windows, and associated processes, are described in the 
  7885.  Common Dialog Windows section (section 3.10). 
  7886.  
  7887.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  7888.                 current Multiple LE field control. 
  7889.  
  7890.            When you select this button, Gpf will prompt you with a message to 
  7891.            confirm that you want to destroy this Multiple LE Field, as well as 
  7892.            any children of this control. 
  7893.  
  7894.  
  7895. ΓòÉΓòÉΓòÉ 19.1. MLEBORDER ΓòÉΓòÉΓòÉ
  7896.  
  7897. These multi-line entry field control styles are available: 
  7898.  
  7899. MLS_BORDER 
  7900.  
  7901.  A thin border is drawn around the multi-line entry field window. 
  7902.  
  7903.  
  7904. ΓòÉΓòÉΓòÉ 19.2. WORDWRAP ΓòÉΓòÉΓòÉ
  7905.  
  7906. These multi-line entry field control styles are available: 
  7907.  
  7908. MLS_WORDWRAP 
  7909.  
  7910.  The multi-line entry field initially word-wraps text. 
  7911.  
  7912.  
  7913. ΓòÉΓòÉΓòÉ 19.3. MLEREADONLY ΓòÉΓòÉΓòÉ
  7914.  
  7915. These multi-line entry field control styles are available: 
  7916.  
  7917. MLS_READONLY 
  7918.  
  7919.  The multi-line entry field is initially in read-only mode. 
  7920.  
  7921.  
  7922. ΓòÉΓòÉΓòÉ 19.4. VSCROLL ΓòÉΓòÉΓòÉ
  7923.  
  7924. These multi-line entry field control styles are available: 
  7925.  
  7926. MLS_VSCROLL 
  7927.  
  7928.  The multi-line entry field displays and handles a vertical scroll bar. 
  7929.  
  7930.  
  7931. ΓòÉΓòÉΓòÉ 19.5. HSCROLL ΓòÉΓòÉΓòÉ
  7932.  
  7933. These multi-line entry field control styles are available: 
  7934.  
  7935. MLS_HSCROLL 
  7936.  
  7937.  The multi-line entry field displays and handles a horizontal scroll bar. 
  7938.  
  7939.  
  7940. ΓòÉΓòÉΓòÉ 19.6. IGNORETAB ΓòÉΓòÉΓòÉ
  7941.  
  7942. These multi-line entry field control styles are available: 
  7943.  
  7944. MLS_IGNORETAB 
  7945.  
  7946.  The multi-line entry field ignores tab key strokes.  It passes the appropriate 
  7947. WM_CHAR to its owner window. 
  7948.  
  7949.  
  7950. ΓòÉΓòÉΓòÉ 19.7. DlgMleGroup ΓòÉΓòÉΓòÉ
  7951.  
  7952. Styles for Windows in Dialogs 
  7953.  
  7954. WS_GROUP 
  7955.  
  7956.  This identifies the dialog items that make up a `group'. 
  7957.  
  7958.  This style should be specified on the first window of any group. Subsequent 
  7959. windows of the group must not have this style. The windows of the group must be 
  7960. adjacent siblings. This can be done by listing the windows consecutively in 
  7961. templates or by inserting each new window in the group behind the previous one 
  7962. (WinCreateWindow). 
  7963.  
  7964.  
  7965. ΓòÉΓòÉΓòÉ 19.8. DlgMleTabStop ΓòÉΓòÉΓòÉ
  7966.  
  7967. Styles for Windows in Dialogs 
  7968.  
  7969. WS_TABSTOP 
  7970.  
  7971.  This identifies a dialog item as one to which the operator can TAB. 
  7972.  
  7973.  
  7974. ΓòÉΓòÉΓòÉ 19.9. Dlg Mle Pres ΓòÉΓòÉΓòÉ
  7975.  
  7976. Presentations 
  7977.  
  7978. The presentation parameter is a drop down list from which you select the visual 
  7979. attributes to assign to the current object. 
  7980.  
  7981. Presentations behave similarly to Desktop Publisher 'tags'; once defined they 
  7982. can be re-used, i.e., attached to as many controls as you desire. 
  7983.  
  7984. A new application will only have the choice NULL, which assigns system defaults 
  7985. to the current object. 
  7986.  
  7987. Note:  There are no pre-defined presentations supplied. You must create one or 
  7988.        more presentations through the Object- Presentation menu from the main 
  7989.        editor Action Bar. 
  7990.  
  7991.  
  7992. ΓòÉΓòÉΓòÉ 20. Dlg Message Box ΓòÉΓòÉΓòÉ
  7993.  
  7994. ******************************* 
  7995.  
  7996. This dialog contains one or more of the following keys. Double-click on the key 
  7997. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  7998. View/Modify... 
  7999.  
  8000. Object Message Box Object (ALT+B,M) 
  8001.  
  8002. Message boxes provide an easy way to display simple messages without creating 
  8003. dialog windows. A message box is easy to use and is appropriately used when an 
  8004. application requires a clearly defined response to a static message. Typically, 
  8005. message boxes consist of an Icon, message text, and the response pushbuttons. 
  8006.  
  8007. An example of a typical message box would be for querying the user if they want 
  8008. to continue with an operation.  The message box itself would have a YES and NO 
  8009. pushbutton for a response. 
  8010.  
  8011. Clicking on the Object Message Box Object (ALT+B,M) pull-down action will 
  8012. invoke the Message Box list dialog window. 
  8013.  
  8014. The Message Dialog window contains a list of all currently defined Message Box 
  8015. Objects for the current application definition. The following will describe how 
  8016. to add, edit, or delete Message Box objects: 
  8017.  
  8018.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  8019.                 will signal Gpf that you have completed any changes in the 
  8020.                 Message Dialog window. 
  8021.  View/Modify Msg Box Click on this button (ALT+V) to display or modify any 
  8022.                 previously defined message box objects. The current selection 
  8023.                 in the Message Dialog list will be chosen for the operation. 
  8024.                 This will invoke the Message Box Object dialog window for 
  8025.                 modification of the selected object. The Message Box Object 
  8026.                 dialog window is described in the following section. 
  8027.  Add Msg Box    Clicking on the Add Msg Box (ALT+A) button will invoke the 
  8028.                 Message Box Object dialog window for defining the controls of 
  8029.                 the new message box object. 
  8030.  
  8031.  Message Box Object Dialog Window 
  8032.  
  8033.  The Message Box Object dialog window contains combination boxes, radio 
  8034.  buttons, check boxes, multiple line entry fields, and pushbuttons to assist 
  8035.  you in defining the message box object. Each of the controls will be described 
  8036.  below. Options located in a group box will be noted. 
  8037.  
  8038.  Text 
  8039.  
  8040.  The Text control is a multiple line entry field where you enter the message 
  8041.  text for the message box. The text entered here is displayed to the user when 
  8042.  the message box is invoked during application runtime. The multiple line entry 
  8043.  will automatically word wrap your line of text if it is greater then the width 
  8044.  of this control. 
  8045.  
  8046.  Reply Button   The Reply Button is a combination list box with the available 
  8047.                 button combinations that will be displayed with your message 
  8048.                 box. The list of button combinations are standard message box 
  8049.                 responses and should be diverse enough to suit your needs. 
  8050.  
  8051.            To select a button combination, either click on the selection with 
  8052.            the mouse, or use the cursor keys to go up and down through the 
  8053.            list. 
  8054.  
  8055.  Default Button Group Box 
  8056.  
  8057.  The Default Button group box contains a number of radio buttons that will 
  8058.  allow you to define which button of the Reply Button combination will be set 
  8059.  as the default button. Default buttons are drawn with a thick black border. 
  8060.  
  8061.  Radio buttons are mutually exclusive; only one may be selected at one time. 
  8062.  
  8063.  No 1           This option is set to on by default. This option designates the 
  8064.                 first button in the Reply Button group as the default button. 
  8065.  No 2           This option is set to off by default. This selection will 
  8066.                 choose the second button in the Reply Button group as the 
  8067.                 default button. 
  8068.  No 3           This option is set to off by default. This selection will 
  8069.                 choose the third button in the Reply Button group as the 
  8070.                 default button. 
  8071.  
  8072.  If a default button position is chosen, and the Reply button group does not 
  8073.  contain as many buttons, the first button will be used as the default button. 
  8074.  For example, if you choose the YES and NO Reply Button group, and indicate 
  8075.  that the third button will be the default, then YES will default. 
  8076.  
  8077.  Icon Group Box 
  8078.  
  8079.  The Icon group box contains a number of radio buttons which allow you to 
  8080.  choose an icon to be displayed in the current message box object. When you 
  8081.  change a selection from this group, an icon representing the selection will be 
  8082.  displayed in the lower right  corner of the Icon group box. 
  8083.  
  8084.  Radio buttons are mutually exclusive; only one may be selected at one time. 
  8085.  
  8086.  No Icon        This option is set to off by default. When selected, the 
  8087.                 defined message box will not have an icon displayed during 
  8088.                 runtime. 
  8089.  
  8090.  
  8091.  Warning        This option is set to off by default. The Warning icon displays 
  8092.                 an exclamation point ("!") in the defined message box. 
  8093.  Information    This option is set to on by default. The Information icon 
  8094.                 displays the letter ('i') in the defined message box. 
  8095.  Error          This option is set to off by default. The Error icon displays a 
  8096.                 stop sign in the defined message box. 
  8097.  Question       This option is set to off by default. The Question icon 
  8098.                 displays a question mark ("?") in the defined message box. 
  8099.  
  8100.  Alarm Option Group Box 
  8101.  
  8102.  The Alarm Option group box contains a number of radio buttons which allow you 
  8103.  to sound an audible tone upon creation of the message box object. When the 
  8104.  message box is displayed, during application runtime, the tone will sound. 
  8105.  Note that certain selections from the Icon group box will set tones of 
  8106.  different frequencies. These will be identified in the following text. 
  8107.  
  8108.  No Alarm       With this selection set to on, no tone will be emitted with the 
  8109.                 message box appearance. This option is automatically selected 
  8110.                 when the No Icon option is chosen from the Icon group box. 
  8111.  Note           This option will cause a high toned beep to sound when the 
  8112.                 message box is displayed. Setting either Information or 
  8113.                 Question icons from the Icon group box will automatically 
  8114.                 select this option. 
  8115.  Warning        This option will cause a beep (an octave lower in pitch than 
  8116.                 the Note beep) to be emitted when the message box is displayed. 
  8117.                 Setting the Warning icon from the Icon group box will 
  8118.                 automatically select this option. 
  8119.  Error          This option will cause a beep (an octave lower in pitch than 
  8120.                 the Warning beep) to be emitted when the message box is 
  8121.                 displayed. Setting the Error icon from the Icon group box will 
  8122.                 automatically select this option. 
  8123.  
  8124.  Modal Group Box 
  8125.  
  8126.  The Modal group box contains two radio buttons that will set the modal style 
  8127.  of the message box. 
  8128.  
  8129.  Appl           This option is set to off by default. When the Appl modal 
  8130.                 option is selected, the message box must be dismissed before 
  8131.                 input is allowed into any other window in the owner 
  8132.                 application. Other applications running under Presentation 
  8133.                 Manager may be accessed without responding to this message box. 
  8134.  System         This option is set to on by default. The System modal option 
  8135.                 requires that the message box is dismissed before any other 
  8136.                 application running under Presentation Manager can be accessed. 
  8137.  
  8138.  Options Group Box 
  8139.  
  8140.  The Options group box contains two check boxes that allow you to set 
  8141.  additional message box controls. 
  8142.  
  8143.   Help          This option is set to OFF by default. With this option set to 
  8144.                 on, a "Help" button will be added to the existing Reply Button 
  8145.                 combination. This is to provide the user with extended help 
  8146.                 information on why or what the message box may be indicating. 
  8147.   Moveable      This option is set to ON by default. This option provides a 
  8148.                 title bar to the message box. This allows the user to move the 
  8149.                 message box around the Presentation Manager desktop by dragging 
  8150.                 it with the mouse. 
  8151.  
  8152.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  8153.                 Gpf that you have completed any changes in the Message Box 
  8154.                 Object dialog window. 
  8155.  
  8156.            If any of the options you have selected will result in a change to 
  8157.            the message box appearance, you will have to run the Animate mode of 
  8158.            Gpf to view the changes. Refer to the Toolkit Pull-down section for 
  8159.            information on the Animate function (Chapter 3.10). 
  8160.  
  8161.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Scroll bar 
  8162.                 Control Styles dialog window, you will be able to define the 
  8163.                 general help text for your message box. The text that you enter 
  8164.                 will be displayed by the Presentation Manager Help Facility if 
  8165.                 the user presses the F1 key or "Help" button when you finally 
  8166.                 run your compiled application. 
  8167.  
  8168.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  8169.  detailed explanation of the Entry Extended Help dialog window. 
  8170.  
  8171.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  8172.                 message box window. 
  8173.  
  8174.            When you select this button, Gpf will prompt you with a message to 
  8175.            confirm that you want to destroy this message box window, as  well 
  8176.            as any children of the message box. 
  8177.  
  8178.  
  8179. ΓòÉΓòÉΓòÉ 21. Dlg Presentation ΓòÉΓòÉΓòÉ
  8180.  
  8181. Object Presentation Object (ALT+B,P) 
  8182.  
  8183. Clicking on the Object Presentation Object (ALT+B,P) pull-down action will 
  8184. invoke the Presentation Parameter List dialog window. 
  8185.  
  8186. A Presentation Object allows you to define any combination of specific font, 
  8187. foreground, background, or border color, as an object. This object can then be 
  8188. applied when creating other windows or controls when a custom presentation is 
  8189. desired. 
  8190.  
  8191. For example, consider the use of different font sizes for menu pull-down 
  8192. actions, dialog window text, or list box items. 
  8193.  
  8194. The Presentation Parameter List dialog window contains a list of all currently 
  8195. defined Presentation Objects for the current application definition. Once 
  8196. defined, such objects can be invoked from the 'Presentation' list boxes 
  8197. contained in most control\dialog definition screens.  The following will 
  8198. describe adding, editing, or deleting Presentation objects: 
  8199.  
  8200.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  8201.                 will signal Gpf that you have completed any changes in the 
  8202.                 Presentation Parameter List dialog window. 
  8203.  View/Modify    Click on this button (ALT+V) to display or modify any defined 
  8204.                 presentation objects. The current selection in the dialog list 
  8205.                 will be chosen for this operation. This will invoke the 
  8206.                 Presentation Object Parameters dialog window for modifying the 
  8207.                 selected object. The Presentation Object Parameters dialog 
  8208.                 window is described in the following section. 
  8209.  Add            Clicking on the Add (ALT+A) button will invoke the Presentation 
  8210.                 Object Parameters dialog window for defining the controls of 
  8211.                 the new presentation object. 
  8212.  
  8213.  Presentation Object Parameters Dialog Window 
  8214.  
  8215.  The Presentation Object Parameters dialog window contains combination boxes, 
  8216.  entry fields, and pushbuttons to assist you in defining the presentation 
  8217.  object. Each of the controls will be described below: 
  8218.  
  8219.  Name 
  8220.  
  8221.  Each presentation object has an identifying name. During the Gpf edit session, 
  8222.  when you are setting a presentation object to a particular window, menu, or 
  8223.  other control, this name will appear in the Presentation combination box of 
  8224.  the particular control setting dialog. 
  8225.  
  8226.  By default Gpf will insert a Name for you: 
  8227.  
  8228.            PresParmsx 
  8229.  
  8230.  where x is the sequential number of the next presentation object to be 
  8231.  defined. Generally speaking, you should probably edit this field to a more 
  8232.  useful name, such as "BlueListBox" or "LargeRedFont". 
  8233.  
  8234.  Font Name Size 
  8235.  
  8236.  The Font Names Size control is a combination box which will list all the 
  8237.  different sized fonts that Gpf finds installed on your system. You can select 
  8238.  a font and font size for the current presentation object from this list. 
  8239.  
  8240.  To display the list with the mouse, click on the downward pointing arrow to 
  8241.  the right of the entry field portion of the combination box. While holding the 
  8242.  mouse button down, drag the highlight selector through the font names in the 
  8243.  list. Release the mouse button to select the current highlighted font. 
  8244.  
  8245.  To display the list with the keyboard, first use the TAB key to move the focus 
  8246.  to the Font Named Size combination box, then press ALT+DOWNARROW. You can then 
  8247.  use the keyboard cursor keys to move the highlight selector through the list. 
  8248.  To make a font selection, use the RIGHTARROW key when the highlight selector 
  8249.  is on the font of your choice. 
  8250.  
  8251.  As you move the highlight selector, a sample of the font will be displayed in 
  8252.  both the Font Sample and Overpaint display windows. These windows are located 
  8253.  at the bottom of the Presentation Object Parameters dialog window. If the list 
  8254.  of fonts is being displayed you will not be able to view the Overpaint display 
  8255.  window. 
  8256.  
  8257.  Background Color 
  8258.  
  8259.  The Background Color control is a combination box which lists the available 
  8260.  background colors available for the presentation object. 
  8261.  
  8262.  To list the available background colors with the mouse or keyboard, follow the 
  8263.  instructions as explained in the Font Named Size description above. 
  8264.  
  8265.  As you move the highlight selector, a sample of the background color will be 
  8266.  displayed in the Font Sample display windows. 
  8267.  
  8268.  Foreground Color 
  8269.  
  8270.  The Foreground Color control is a combination box which lists the available 
  8271.  foreground colors available for the presentation object. 
  8272.  
  8273.  To list the available foreground colors with the mouse or keyboard, follow the 
  8274.  instructions as explained in the Font Named Size description above. 
  8275.  
  8276.  As you move the highlight selector, a sample of the foreground color will be 
  8277.  displayed in the Font Sample display windows. 
  8278.  
  8279.  Background Hilite 
  8280.  
  8281.  Selects the background color attribute for a selected item. 
  8282.  
  8283.  Foreground Hilite 
  8284.  
  8285.  Selects the foreground color attribute for a selected item. 
  8286.  
  8287.  Background Disabled 
  8288.  
  8289.  Selects the background color attribute for the disabled state of an item. 
  8290.  
  8291.  Foreground Disabled 
  8292.  
  8293.  Selects the foreground color attribute for the disabled state of an item. 
  8294.  
  8295.  Border  Color 
  8296.  
  8297.  The Border Color control is a combination box which lists the border colors 
  8298.  available for the presentation object. 
  8299.  
  8300.  To list the available border colors with the mouse or keyboard, follow the 
  8301.  instructions as explained in the Font Named Size description above. 
  8302.  
  8303.  As you move the highlight selector, a sample of the border color will be 
  8304.  displayed in both the Font Sample display windows. 
  8305.  
  8306.  Font Sample Display 
  8307.  
  8308.  The Font Sample Display window is where the presentation object definition can 
  8309.  be displayed. This enables you to test a multitude of selections before saving 
  8310.  the Presentation Object definition. 
  8311.  
  8312.  Overpaint Display 
  8313.  
  8314.  The Overpaint Display window is where the presentation object definition can 
  8315.  be displayed. This enables you to test a multitude of selections before saving 
  8316.  the Presentation Object definition. 
  8317.  
  8318.  
  8319. ΓòÉΓòÉΓòÉ 22. Dlg App Program Properties ΓòÉΓòÉΓòÉ
  8320.  
  8321. The File Properties Pull-down Action 
  8322.  
  8323. At any time during your Gpf edit session you can modify the Program Properties 
  8324. as described in the File New Pull-down Action section. 
  8325.  
  8326. When you choose File Properties (ALT+F,P), Gpf displays the Program Properties 
  8327. dialog window as shown in Figure 3-4. From this dialog window you can modify 
  8328. the name of the main source code file that will be generated by Gpf, the 
  8329. version or revision number of the definition, copyright information, 
  8330. Presentation Manager task list entry, the target programming language, what SQL 
  8331. databases are to be used by the new application, as well as text to display for 
  8332. the application help windows. 
  8333.  
  8334. Main Source Name 
  8335.  
  8336. In this field specify the name of the source code file, and all supporting 
  8337. files needed for compilation, that will be generated by Gpf when you are ready 
  8338. to compile a Gpf defined application. The name entered here does not have to be 
  8339. the same as the name specified as the Gpf definition file, but the naming 
  8340. convention guidelines are the same. 
  8341.  
  8342. Actually Gpf will limit you to entering a maximum of eight characters without 
  8343. an extension. Gpf will automatically generate the extension based on the target 
  8344. language used and whether or not SQL data bases will be accessed. 
  8345.  
  8346. Examples of Gpf generated source code files: 
  8347.  
  8348.  FIRSTONE.C     C   Source code generated by Gpf 
  8349.  FIRSTONE.SQC   SQL embedded C source code generated by Gpf 
  8350.  
  8351.  Level 
  8352.  
  8353.  Gpf allows you to track the number of revisions you may make to the 
  8354.  application definition through the Level field. For example, if you have made 
  8355.  minor modifications you may want to change the Level number from 1.0 to 1.1. 
  8356.  You can enter any combination of letters, numbers, or punctuation marks. 
  8357.  
  8358.  The maximum length for the Level field is four (4) characters. 
  8359.  
  8360.  Copyright 
  8361.  
  8362.  The copyright field can be used to enter the name of the person or company 
  8363.  that will hold the copyright of the application being generated. The text that 
  8364.  is entered here will be placed in the generated source code, as well as the 
  8365.  other supporting compilation files generated by Gpf. 
  8366.  
  8367.  The maximum length for the Copyright field is sixty-three (63) characters. 
  8368.  
  8369.  Task List Title 
  8370.  
  8371.  The Task List title is entered into the Presentation Manager Task List box 
  8372.  when the compiled Gpf application is actually running.  Users can move between 
  8373.  active applications running under OS/2 by selecting a name from the task list. 
  8374.  A short, descriptive, line of text is recommended for this entry. 
  8375.  
  8376.  The maximum length for the Task List Title field is sixty-three (63) 
  8377.  characters. 
  8378.  
  8379.  Language 
  8380.  
  8381.  The Language field is actually what is known as a Presentation Manager 
  8382.  combination box. A combination box looks like an entry field with the 
  8383.  exception that there is a downward-pointing arrow control on the far right 
  8384.  side. By clicking this down arrow, a list of possible entries will be 
  8385.  displayed. You can then choose an item from the list to fill in the top part 
  8386.  of the combination box. You cannot enter text directly into the field for this 
  8387.  combination box. 
  8388.  
  8389.  Currently Gpf generates only 'C' language source code, subsequently it is the 
  8390.  only available option for the Language field. 
  8391.  
  8392.  Database Name 
  8393.  
  8394.  The Database Name field is another combination box where you can choose which, 
  8395.  if any, SQL databases are to be referenced in the current Gpf application 
  8396.  being defined. When you start the Gpf editor, a search is automatically 
  8397.  conducted to determine if there are any SQL databases available on your 
  8398.  system.  Gpf will then fill the Database Name list with the results of the 
  8399.  search. 
  8400.  
  8401.  If  your application does not need to access information from an SQL database 
  8402.  you can choose the 'No DBM' option, which is also the default.  You cannot 
  8403.  enter text directly into the field for this combination box. 
  8404.  
  8405.  OK             By clicking on the OK button (ALT+O) you will signal Gpf that 
  8406.                 you have completed any modifications in the Program Properties 
  8407.                 dialog window. Gpf will check the Program Properties dialog 
  8408.                 window and display an error message if there are any problems 
  8409.                 with your entries. Another way to signal Gpf that you want to 
  8410.                 save the changes you have made is by pressing the ENTER key. 
  8411.  ACTION         The ACTION dialogs permit association of system or code 
  8412.                 functions with current circumstances, control manipulations, 
  8413.                 initializations, and so on. In the case of the Program 
  8414.                 Properties window, you will see two default circumstances for 
  8415.                 which actions can be invoked: Init Application and End 
  8416.                 Application. This permits specification of items which are to 
  8417.                 be performed upon program start and end. 
  8418.  
  8419.  Please refer to Common Dialog Windows, section 3.10.3, for a detailed 
  8420.  explanation of the Action dialog window. 
  8421.  
  8422.  Entry Extended Help By clicking the Entry Extended Help (ALT+E) in the Program 
  8423.                 Properties dialog window, you will be able to define the 
  8424.                 general help text for your application. The text that you enter 
  8425.                 will be displayed by the Presentation Manager Help Manager if 
  8426.                 the user presses the F1 key when you finally run your compiled 
  8427.                 application. 
  8428.  
  8429.            You can also define an informational message for the application 
  8430.            from the Entry Extended Help dialog window. 
  8431.  
  8432.  Please refer to the Common Dialog Windows section  for a detailed explanation 
  8433.  of the Entry Extended Help dialog window. 
  8434.  
  8435.  
  8436. ΓòÉΓòÉΓòÉ 22.1. Dlg Properties Source Name ΓòÉΓòÉΓòÉ
  8437.  
  8438. Main Source Name 
  8439.  
  8440. In this field you specify the name of the source code file that will be 
  8441. generated by Gpf when you are ready to compile a Gpf defined application. The 
  8442. name entered here does not have to be the same as the name specified for the 
  8443. Gpf definition file, but the naming convention guidelines are the same. 
  8444.  
  8445. Actually Gpf will limit you to entering a maximum of eight characters without 
  8446. an extension. Gpf will automatically generate the extension based on the target 
  8447. language used and whether or not you specify that SQL data bases will be 
  8448. accessed. 
  8449.  
  8450. For example, if you have named your main source file as FIRSTONE Gpf will 
  8451. generate the following files: 
  8452.  
  8453.  File Name           Contents 
  8454.  
  8455.  FIRSTONE.C          C source code generated by Gpf, or 
  8456.  FIRSTONE.SQC        SQL embedded C source code generated by Gpf. 
  8457.  FIRSTONE.RC         Resource Statements 
  8458.  FIRSTONE.IDS        Constant definitions 
  8459.  FIRSTONE.MAK        Make File 
  8460.  FIRSTONE.CMD        Automatic compiler call batch file. 
  8461.  
  8462.  This field is the only required field for continuing with the New Application 
  8463.  Definition; Gpf will not allow you to proceed if you leave this field blank. 
  8464.  This holds true even if you attempt to CANCEL the Program Properties dialog. 
  8465.  
  8466.  
  8467. ΓòÉΓòÉΓòÉ 22.2. Dlg Properties Level ΓòÉΓòÉΓòÉ
  8468.  
  8469. Level 
  8470.  
  8471. Gpf allows you to track the revision number of the application definition 
  8472. through the Level field. By default, Gpf will set the level at '1.0' when you 
  8473. create a new application definition. You can enter any combination of letters, 
  8474. numbers, or punctuation marks. 
  8475.  
  8476. The maximum length for the Level field is four (4) characters. 
  8477.  
  8478.  
  8479. ΓòÉΓòÉΓòÉ 22.3. Dlg Properties Copyright ΓòÉΓòÉΓòÉ
  8480.  
  8481. Copyright 
  8482.  
  8483. The copyright field can be used to enter the name of the person or company that 
  8484. will hold the copyright of the application being generated. The text that is 
  8485. entered here will be placed in the generated source code, as well as the other 
  8486. supporting compilation files generated by Gpf. 
  8487.  
  8488. The maximum length for the Copyright field is sixty-three (63) characters. 
  8489.  
  8490.  
  8491. ΓòÉΓòÉΓòÉ 22.4. Dlg Properties TaskList ΓòÉΓòÉΓòÉ
  8492.  
  8493. Task List Title 
  8494.  
  8495. The Task List title is the string of text that gets entered into the 
  8496. Presentation Manager Task List box when the compiled Gpf application is 
  8497. actually running.  Users can move between active applications running under 
  8498. OS/2 by selecting a name from the Task List. A short, descriptive, line of text 
  8499. is recommended for this entry. 
  8500.  
  8501. The maximum length for the Task List Title field is 63 characters. 
  8502.  
  8503. FCF_TASKLIST When this flag is set, the program title is added to the front of 
  8504. the frame window text.  The resulting string is used as the window title and is 
  8505. also entered on the task list. In this context, the program title is the text 
  8506. string used by the Desktop Manager to identify the program, or the text string 
  8507. specified as a parameter in the START command.  If neither               string 
  8508. has been defined, the filename and extension of the .EXE file are used as the 
  8509. program title. 
  8510.  
  8511.  
  8512. ΓòÉΓòÉΓòÉ 22.5. Dlg Properties Language ΓòÉΓòÉΓòÉ
  8513.  
  8514. Language 
  8515.  
  8516. The Language field is actually what is known as a Presentation Manager 
  8517. combination box. A combination box looks like an entry field with the exception 
  8518. that there is a downward-pointing arrow control on the far right side. By 
  8519. clicking this down arrow, a list of possible entries will be displayed. You can 
  8520. then choose an item from the list to fill in the top part of the combination 
  8521. box. You cannot enter text directly into the field for this combination box. 
  8522.  
  8523. Currently Gpf generates only 'C' language source code, subsequently it is the 
  8524. only available option for the Language field. 
  8525.  
  8526.  
  8527. ΓòÉΓòÉΓòÉ 22.6. Dlg Properties DataBase Name ΓòÉΓòÉΓòÉ
  8528.  
  8529. Database Name 
  8530.  
  8531. The Database Name field is another combination box where you can choose which, 
  8532. if any, SQL databases are to be referenced in the current Gpf application being 
  8533. defined. When you start the Gpf editor, a search is automatically conducted to 
  8534. determine if there are any SQL databases available on your system.  Gpf will 
  8535. then fill the Database Name list with the results of the search. 
  8536.  
  8537. If your application does not need to access information from an SQL database 
  8538. you can choose the 'No DBM' option, which is also the default.  You cannot 
  8539. enter text directly into the field for this combination box. 
  8540.  
  8541.  
  8542. ΓòÉΓòÉΓòÉ 22.7. Dlg Properties Ok ΓòÉΓòÉΓòÉ
  8543.  
  8544.  OK                  By clicking on the OK button (ALT+O), or pressing the 
  8545.                      ENTER key, you will signal Gpf that you are ready to 
  8546.                      create the first window of your application definition. 
  8547.                      Gpf will check the Program Properties dialog window and 
  8548.                      display the appropriate error message if there are any 
  8549.                      problems with your entries. 
  8550.  
  8551.  
  8552. ΓòÉΓòÉΓòÉ 22.8. Dlg Properties EntryHelp ΓòÉΓòÉΓòÉ
  8553.  
  8554.  Entry Extended Help By clicking the Entry Extended Help (ALT+E) in the Program 
  8555.                      Properties dialog window, you will be able to define the 
  8556.                      general help text for your application.  The text that you 
  8557.                      enter will be displayed by the Presentation Manager Help 
  8558.                      Manager if the user presses the F1 key when you ultimately 
  8559.                      run your compiled application. 
  8560.  
  8561.            You can also define an informational message for the application 
  8562.            from the Entry Extended Help dialog window. 
  8563.  
  8564.  Please refer to the Common Dialog Windows  section for a detailed explanation 
  8565.  of the Entry Extended Help dialog window. 
  8566.  
  8567.  
  8568. ΓòÉΓòÉΓòÉ 22.9. Dlg Properties Action ΓòÉΓòÉΓòÉ
  8569.  
  8570.  ACTION              Pressing the ACTION button will call up a set of screens 
  8571.                      from which you can define what is to occur upon program 
  8572.                      start and program end. 
  8573.  
  8574.  Please refer to Common Dialog Windows,  section 3.10.3, for a detailed 
  8575.  explanation of the ACTION dialog window. 
  8576.  
  8577.  
  8578. ΓòÉΓòÉΓòÉ 23. Dlg NewFile and SaveAs ΓòÉΓòÉΓòÉ
  8579.  
  8580. The File New Pull-down Action 
  8581.  
  8582. When you select the File New (ALT+F,N) action, you are indicating to Gpf that 
  8583. you want to create a new Gpf definition. 
  8584.  
  8585. Gpf definitions is where Gpf saves all the controls and windows that you create 
  8586. for your application within the editing session. It is from this definition 
  8587. file that Gpf generates the C language source code and supporting files for 
  8588. compilation. The definition files are in a binary format, and are readable only 
  8589. by the Gpf system utilities. 
  8590.  
  8591. If you do not have a definition loaded in the current editing session, Gpf will 
  8592. automatically display the Create New Application dialog window as shown in 
  8593. Figure 3-1. Otherwise Gpf will query you to save the definition before 
  8594. continuing.  If you have made changes to the definition and have not saved 
  8595. them, it is a good idea to save it now because your changes will be lost if you 
  8596. reply NO to the "Save the current file?" option. 
  8597.  
  8598. You are now ready to create a new application definition. 
  8599.  
  8600. Creating a new application definition is a two step process: 
  8601.  
  8602.            1. Name the definition and identify what drive/directory to record 
  8603.            it in 
  8604.  
  8605.            2. Specify the program properties of the new definition. 
  8606.  
  8607.  Naming the New Application Definition File 
  8608.  
  8609.  The New Application dialog window will allow you to define the name of the new 
  8610.  definition file as well as identifying which drive and directory to store it 
  8611.  in. Each of the controls in the File New Dialog Window will be explained 
  8612.  below: 
  8613.  
  8614.  File Name 
  8615.  
  8616.  When the dialog windows appears, specify the name that you want to save the 
  8617.  Gpf definition to in this entry field. 
  8618.  
  8619.  When naming a definition, follow these guidelines: 
  8620.  
  8621.            The file name can be no longer than eight characters long. Gpf will 
  8622.            automatically add an identifying three- character extension unless 
  8623.            you add one yourself. Gpf's default extension is '.ORC'. 
  8624.  
  8625.            If desired, you can add other extensions by typing a period, and 
  8626.            then the extension-for example, FIRSTONE.TST. Files with extensions 
  8627.            other than .ORC don't appear in the Files box in the File Open 
  8628.            dialog window. You must explicitly state the extension that you 
  8629.            added during future sessions when you open a file using a non-ORC 
  8630.            extension. 
  8631.  
  8632.            You can use any characters in a filename except spaces and the 
  8633.            following characters: 
  8634.  
  8635.            * ? . , ; [ ] +  =  \ : | 
  8636.  
  8637.  Directory is : 
  8638.  
  8639.  This is a read-only field which informs you where the file named above will be 
  8640.  stored. You can change the directory from the Directories list box, and change 
  8641.  the drive using the icons at the top of the window. 
  8642.  
  8643.  If you decide to save the definition on a different drive or directory, 
  8644.  remember where you placed it for later retrieval. 
  8645.  
  8646.  OK             Once you have filled in the File Name field and have chosen the 
  8647.                 drive and directory where you will place the new definition, 
  8648.                 you can signal Gpf that you are ready to begin by selecting the 
  8649.                 OK (ALT+O) button. Another way to signal Gpf to begin is by 
  8650.                 pressing the ENTER key. 
  8651.  
  8652.            Gpf will append the .ORC extension to the name that you have 
  8653.            specified in the File Name entry field if you have not specified 
  8654.            your own extension. A  search for the filename specified is then 
  8655.            conducted to insure that the new file name is indeed unique. If Gpf 
  8656.            finds another file of the name specified in the working directory 
  8657.            you will be presented with an error message.  You are then given the 
  8658.            option to overwrite the existing file.  If you do not want to 
  8659.            destroy an existing file, you can cancel the overwrite and use a 
  8660.            different name in the File Name entry field. 
  8661.  
  8662.  CANCEL         If you wish to cancel the operation at anytime during the 
  8663.                 naming of the New Gpf definition, click on the CANCEL button in 
  8664.                 the dialog window. This will signal Gpf that you do not want to 
  8665.                 continue and you will be returned to the Gpf session window. 
  8666.                 Another way to signal Gpf that you want to cancel the current 
  8667.                 operation is by pressing the ESC key. 
  8668.  HELP           Clicking on the HELP button will invoke the Presentation 
  8669.                 Manager Help Facility. The Help window will provide you with 
  8670.                 information on options available for creating a New Application 
  8671.                 definition. 
  8672.  
  8673.  New Application Program Properties 
  8674.  
  8675.  Once you have given your new application definition a valid file name and have 
  8676.  elected to continue creating the definition, Gpf will display the Program 
  8677.  Property dialog window as shown in Figure 3-2. 
  8678.  
  8679.  
  8680. ΓòÉΓòÉΓòÉ 23.1. Dlg NewFile / SaveAs Name ΓòÉΓòÉΓòÉ
  8681.  
  8682. File Name 
  8683.  
  8684. When the dialog windows appears, specify the name that you want to save the Gpf 
  8685. definition to in this entry field. 
  8686.  
  8687. When naming a definition, follow these uidelines: 
  8688.  
  8689.            The file name can be no longer than eight characters long. Gpf will 
  8690.            automatically add an identifying three  character extension unless 
  8691.            you add one yourself. Gpf's default extension is '.ORC'. 
  8692.  
  8693.            If desired, you can add other extensions by typing a period, and 
  8694.            then the extension-for example, FIRSTONE.TST. Files with extensions 
  8695.            other than '.ORC' don't appear in the Files box in the File Open 
  8696.            dialog window. You must explicitly state the extension that you 
  8697.            added during future sessions when you open a file using a non-ORC 
  8698.            extension. 
  8699.  
  8700.  
  8701. ΓòÉΓòÉΓòÉ 23.2. Dlg NewFile / SaveAs Directory ΓòÉΓòÉΓòÉ
  8702.  
  8703. Directory is : 
  8704.  
  8705. This is a read-only field which informs you where the file named above will be 
  8706. stored. You can change the directory from the Directories list box, and change 
  8707. the drive using the icons at the top of the window. 
  8708.  
  8709. If you decide to save the definition on a different drive or directory, 
  8710. remember where you placed it for later retrieval. 
  8711.  
  8712.  
  8713. ΓòÉΓòÉΓòÉ 23.3. Dlg NewFile / SaveAs OK ΓòÉΓòÉΓòÉ
  8714.  
  8715.  OK             Once you have filled in the File Name field and have chosen the 
  8716.                 drive and directory where you will place the new definition, 
  8717.                 you can signal Gpf that you are ready to begin by selecting the 
  8718.                 OK (ALT+O) button. Another way to signal Gpf to begin is by 
  8719.                 pressing the ENTER key. 
  8720.  
  8721.            Gpf will append the '.ORC' extension to the name that you have 
  8722.            specified in the File Name entry field if you have not specified 
  8723.            your own extension. A search for the filename specified is then 
  8724.            conducted to insure that the new file name is indeed unique. If Gpf 
  8725.            finds another file of the name specified in the working directory 
  8726.            you will be presented with an error message.  You are then given the 
  8727.            option to overwrite the existing file.  If you do not want to 
  8728.            destroy an existing file, you can cancel the overwrite and use a 
  8729.            different name in the File Name entry field. 
  8730.  
  8731.  
  8732. ΓòÉΓòÉΓòÉ 23.4. Dlg NewFile / SaveAs Cancel ΓòÉΓòÉΓòÉ
  8733.  
  8734.  CANCEL         If you wish to cancel the operation at anytime during the 
  8735.                 naming of the New Gpf definition, click on the CANCEL button in 
  8736.                 the dialog window. This will signal Gpf that you do not want to 
  8737.                 continue and you will be returned to the Gpf session window. 
  8738.                 Another way to signal Gpf that you want to cancel the current 
  8739.                 operation is by pressing the ESC key. 
  8740.  
  8741.  
  8742. ΓòÉΓòÉΓòÉ 23.5. Dlg NewFile / SaveAs Help ΓòÉΓòÉΓòÉ
  8743.  
  8744.  HELP           Clicking on the HELP button will invoke the Presentation 
  8745.                 Manager Help Facility. The Help window will provide you with 
  8746.                 information on options available for creating a New Application 
  8747.                 definition. 
  8748.  
  8749.  
  8750. ΓòÉΓòÉΓòÉ 24. Dlg Scroll ΓòÉΓòÉΓòÉ
  8751.  
  8752. ******************************* 
  8753.  
  8754. This dialog contains one or more of the following keys. Double-click on the key 
  8755. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  8756. View/Modify... 
  8757.  
  8758. Create Horizontal Scroll Bar (ALT+C,H) 
  8759.  
  8760. Clicking on the Create Horizontal Scroll Bar (ALT+C,H) action will generate a 
  8761. horizontal scroll bar control and allow you to attach it to any visible window. 
  8762. Once the control is placed on the target window or dialog window, Gpf will 
  8763. invoke the Scroll Bar Control Styles dialog window. Refer to Figure 3-15. 
  8764.  
  8765. Scroll bars are controls that take mouse and keyboard input and generate 
  8766. notification messages to the owner window. Applications typically use scroll 
  8767. bars to scroll the contents of a client window. 
  8768.  
  8769. As shown, the Scroll Bar Control Styles dialog window consists of entry fields, 
  8770. combination boxes, check boxes, and pushbuttons. Some of these controls are 
  8771. located in group boxes and will be noted in the following descriptions: 
  8772.  
  8773. Name 
  8774.  
  8775. Each scroll bar control has an identifying name. During program execution, the 
  8776. application's window procedure receives messages generated by the scroll bar in 
  8777. response to user input. The application responds to these messages by using 
  8778. this identifier of the scroll bar control. 
  8779.  
  8780. OS/2 Presentation Manager also has a set of functions which can manipulate the 
  8781. slider portion and the active/inactive state of the scroll bar control by using 
  8782. the Name identifier as an argument to OS/2 API functions. 
  8783.  
  8784. Sibling 
  8785.  
  8786. The Sibling control is a combination box which displays and allows you to 
  8787. choose which control item or window will be a sibling of the scroll bar 
  8788. currently being defined. 
  8789.  
  8790. Presentation 
  8791.  
  8792. The Presentation control is a combination box which displays and allows you to 
  8793. choose a presentation object for setting the font size as well as the 
  8794. foreground, background, and border colors of the scroll bar control. 
  8795.  
  8796. The Presentation object must have been previously identified as an object to 
  8797. Gpf. Refer to the Objects Pull-down section (section 3.10) for information on 
  8798. defining presentation objects. 
  8799.  
  8800. Control Styles Group Box 
  8801.  
  8802. The Control Styles group box contains a number of check boxes that will set the 
  8803. style for the current control. 
  8804.  
  8805. Check boxes are considered to be set to on when a small 'x' appears in the 
  8806. check box. Each of the control styles are defined as follows: 
  8807.  
  8808.   Horizontal Scroll Bar This option is set to on by default. Setting this 
  8809.                 option to off will cause the created Horizontal Scroll Bar to 
  8810.                 change appearance to a Vertical Scroll Bar. 
  8811.   Thumb Size    This option is set to off by default. With this option set to 
  8812.                 on, the scroll bar slider will change its height to reflect the 
  8813.                 percentage of data visible and thus the percentage of the 
  8814.                 scroll bar that the slider should occupy. 
  8815.   Auto Track    ** currently undefined 
  8816.  
  8817.  Dialog Styles Group Box 
  8818.  
  8819.  The Dialog Styles group box contains a number of check boxes that will set 
  8820.  characteristics of the current scroll bar control. Typically these options are 
  8821.  used for defining characteristics of a control in dialog windows. 
  8822.  
  8823.   Group         This option is set to on by default. With this style set to on, 
  8824.                 the scroll bar control will act as an encapsulated group. It 
  8825.                 will receive the keyboard or mouse focus. The group style 
  8826.                 remains in effect until the next control with a style such as 
  8827.                 this is found. 
  8828.   Tabstop       This option is set to on by default. This style is typically 
  8829.                 used in conjunction with the Group style. When set to on, the 
  8830.                 current control will receive the focus when the user presses 
  8831.                 the TAB key to move between dialog controls. 
  8832.  
  8833.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  8834.                 will signal  Gpf that you have completed any changes in the 
  8835.                 Scroll Bar Control Styles dialog window. 
  8836.  
  8837.            If any of the options you have selected will result in a change to 
  8838.            the scroll bar control appearance, Gpf will automatically update the 
  8839.            control to reflect those changes. 
  8840.  
  8841.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Scroll bar 
  8842.                 Control Styles dialog window, you will be able to define the 
  8843.                 general help text for your control. The text that you enter 
  8844.                 will be displayed by the Presentation Manager Help Facility if 
  8845.                 the user presses the F1 key when you finally run your compiled 
  8846.                 application. 
  8847.  
  8848.            You can also define an informational message for the control from 
  8849.            the Entry Extended Help dialog window. 
  8850.  
  8851.  Please refer to the Common Dialog Windows section (section 3.10) for a 
  8852.  detailed explanation of the Entry Extended Help dialog window. 
  8853.  
  8854.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  8855.                 scroll bar control. 
  8856.  
  8857.            When you select this button, Gpf will prompt you with a message to 
  8858.            confirm that you want to destroy this Scroll bar control, as well as 
  8859.            any children of this scroll bar. 
  8860.  
  8861.  
  8862. ΓòÉΓòÉΓòÉ 24.1. HORZSCRBAR ΓòÉΓòÉΓòÉ
  8863.  
  8864. These scroll bar control styles are available: 
  8865.  
  8866. SBS_HORZ 
  8867.  
  8868.  Create a horizontal scroll bar. 
  8869.  
  8870. SBS_VERT 
  8871.  
  8872.  Create a vertical scroll bar. 
  8873.  
  8874.  
  8875. ΓòÉΓòÉΓòÉ 24.2. THUMBSIZE ΓòÉΓòÉΓòÉ
  8876.  
  8877. These scroll bar control styles are available: 
  8878.  
  8879. SBS_SETTHUMBSIZE 
  8880.  
  8881.  Indicates the presence of the visible and total parameters in the SBCDATA data 
  8882. structure. 
  8883.  
  8884.  
  8885. ΓòÉΓòÉΓòÉ 24.3. DlgScrollGroup ΓòÉΓòÉΓòÉ
  8886.  
  8887. Styles for Windows in Dialogs 
  8888.  
  8889. WS_GROUP 
  8890.  
  8891.  This identifies the dialog items that make up a `group'. 
  8892.  
  8893.  This style should be specified on the first window of any group. Subsequent 
  8894. windows of the group must not have this style. The windows of the group must be 
  8895. adjacent siblings. This can be done by listing the windows consecutively in 
  8896. templates or by inserting each new window in the group behind the previous one 
  8897. (WinCreateWindow). 
  8898.  
  8899.  
  8900. ΓòÉΓòÉΓòÉ 24.4. DlgScrollTabStop ΓòÉΓòÉΓòÉ
  8901.  
  8902. Styles for Windows in Dialogs 
  8903.  
  8904. WS_TABSTOP 
  8905.  
  8906.  This identifies a dialog item as one to which the operator can TAB. 
  8907.  
  8908.  
  8909. ΓòÉΓòÉΓòÉ 25. Dlg Find PM Control ΓòÉΓòÉΓòÉ
  8910.  
  8911. Object Find PM Control  (ALT+B,F) 
  8912.  
  8913. The Gpf Find PM Control function is a control management utility.  With the 
  8914. Find PM Control dialog box you can search for or destroy controls (e.g. 
  8915. Buttons, List Boxes, Icons) defined in windows. 
  8916.  
  8917. Clicking on the Find PM Control (ALT+B,F) pull-down action will invoke the 
  8918. Search Object dialog window. All currently visible Gpf application windows will 
  8919. be dismissed from view when this dialog box is invoked. 
  8920.  
  8921. Search Object Dialog Window 
  8922.  
  8923. The Search Object dialog window contains a list of all windows defined in the 
  8924. current application. For each defined window there is also a list of controls 
  8925. associated with the window. The following is a description of each of the 
  8926. available options in the dialog window: 
  8927.  
  8928. Window List Box 
  8929.  
  8930. The Window list box contains a list of all windows created in the current 
  8931. application definition. By default the Main Window, or whatever you may have 
  8932. named it, will always be listed first in this list. 
  8933.  
  8934. Selecting a window from this list will cause Gpf to search through and display 
  8935. any of the controls or objects, associated with the selection in the Object 
  8936. list box. 
  8937.  
  8938. Object List Box 
  8939.  
  8940. The Object list box lists all of the controls and objects associated with the 
  8941. currently selected window in the Window list box. 
  8942.  
  8943.  SEARCH         Clicking on the SEARCH button will cause Gpf to search for and 
  8944.                 display the window that contains the currently selected object. 
  8945.                 If found, the window owning the object will be brought to the 
  8946.                 foreground, and the target object will be highlighted.  This 
  8947.                 will also dismiss the Search Object dialog window. 
  8948.  CANCEL         Clicking on the CANCEL button or pressing the ESC key will 
  8949.                 signal Gpf that you want to dismiss the Search Object dialog 
  8950.                 window. 
  8951.  DESTROY        Clicking on the DESTROY button (ALT+D), will cause Gpf to 
  8952.                 remove the currently selected object. You will first be 
  8953.                 prompted to confirm that you want to destroy the object as well 
  8954.                 as any children of the object. 
  8955.  
  8956.  
  8957. ΓòÉΓòÉΓòÉ 26. Dlg SelMenu ΓòÉΓòÉΓòÉ
  8958.  
  8959. The upper section of this window is a read-only list of existing menu items at 
  8960. this level. The left section of each line is the item logical name, while on 
  8961. the right is the text which will appear in the menu. A tilde (~) character 
  8962. depicts the item HOT key. 
  8963.  
  8964. Press on the following controls: 
  8965.  
  8966.  Ok        when done 
  8967.  View/Modify to edit or examine existing entries 
  8968.  Add ActionBar to insert an item. It will be placed AFTER the highlighted item. 
  8969.  Destroy   to delete an item 
  8970.  
  8971.  
  8972. ΓòÉΓòÉΓòÉ 27. Dlg Pulldown List ΓòÉΓòÉΓòÉ
  8973.  
  8974. The upper section of this screen is a read-only list of defined items in this 
  8975. PullDown. The operation of this screen is identical to the menu creation 
  8976. screen. See the Dlg SelMenu  entry in Help Contents. 
  8977.  
  8978.  
  8979. ΓòÉΓòÉΓòÉ 28. Dlg Statistic ΓòÉΓòÉΓòÉ
  8980.  
  8981. Option Statistics (ALT+O,S) 
  8982.  
  8983. Each time you create a window, control, or object, you are using some of the 
  8984. available Presentation Manager resources. Under versions 1.1 and 1.2 of OS/2 
  8985. Presentation Manager, there are a limited number of resources available. 
  8986.  
  8987. Gpf keeps track of how many resources of each type are being used by your 
  8988. current application definition. With the Option Statistics (ALT+O,S) pull-down, 
  8989. you can view the current state of resource consumption. 
  8990.  
  8991. Clicking on the Option Statistics pull-down action (ALT+O,S) will invoke the 
  8992. Statistics Dialog Window. This dialog window, and the resource indicators are 
  8993. described as follows: 
  8994.  
  8995. Statistics Dialog Window 
  8996.  
  8997. The Statistics dialog window is a read-only group of identifiers which indicate 
  8998. the current state of application definition resource usage. As a read-only 
  8999. dialog window, you will not be able to modify any of the values displayed. This 
  9000. dialog is for informational purposes only. Here are each of the identifiers: 
  9001.  
  9002.  Window         This indicates the number of windows or dialog windows 
  9003.                 currently defined for the application. By default this value 
  9004.                 will be 1 for the main window. 
  9005.  Control        This indicates the number of controls (i.e. Buttons, Static 
  9006.                 Text, List Boxes, etc.) currently defined in the application. 
  9007.  Menu           This indicates the total number of menu elements defined for 
  9008.                 the current application. Menu elements include both the high 
  9009.                 level menu bar items, as well as any pull-down or submenu 
  9010.                 items. 
  9011.  Help           This indicates the number of Entry Help descriptions defined 
  9012.                 for the current application. 
  9013.  SQL            This indicates the number of SQL associations defined in the 
  9014.                 current application. A SQL association is where you associate a 
  9015.                 control (e.g. List Box, Combobox, Entry Field) with an SQL 
  9016.                 table.column name. 
  9017.  Action         This indicates how many actions have been defined for any 
  9018.                 existing windows, menus, or other controls in the current 
  9019.                 application. 
  9020.  Source         This field indicates the number of source code files that have 
  9021.                 been identified in the current application. When you create a 
  9022.                 new window or dialog window, you have the option of having the 
  9023.                 source code generated to a file different than the main source 
  9024.                 file. 
  9025.  Threads        This indicates the number of threads that have been identified 
  9026.                 in the current application. When you create a new window or 
  9027.                 dialog window, you have the option of creating a separate 
  9028.                 thread of execution for each one. 
  9029.  Icon Bitmap    This indicates the number of Icon/Bitmap/Pointer objects that 
  9030.                 have been defined in the current application. 
  9031.  Message Box    This field indicates the number of Message Box objects that 
  9032.                 have been defined in the current application. 
  9033.  Presentation   This field indicates the number of Presentation objects that 
  9034.                 have been defined in the current application. 
  9035.  User Text      This field indicates the number of User Function objects that 
  9036.                 have been defined in the current application. 
  9037.  Resource Usage Graphic The Resource Usage graphic is a bar graph showing the 
  9038.                 ratio of the amount of resources used to the total number of 
  9039.                 resources available. 
  9040.  
  9041.  For OS/2 1.2 Extended Edition, the total number of available resources is set 
  9042.  at 8192. The resource usage field is calculated by: 
  9043.  
  9044.            THE_NUMBER_OF_USED_RESOURCE / 8192 
  9045.  
  9046.  where THE_NUMBER_OF_USED_RESOURCE is the sum total of the resource indicators. 
  9047.  
  9048.  The Resource Usage graph itself is broken into 25% quarters, where the current 
  9049.  resource usage will be graphed. 
  9050.  
  9051.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  9052.                 Gpf that you are through looking at the Statistics dialog 
  9053.                 window. 
  9054.  
  9055.  
  9056. ΓòÉΓòÉΓòÉ 29. Dlg Text ΓòÉΓòÉΓòÉ
  9057.  
  9058. ******************************* 
  9059.  
  9060. This dialog contains one or more of the following keys. Double-click on the key 
  9061. for which you need Help.  Action Associate Cancel Destroy EntryHelp Help Ok 
  9062. View/Modify... 
  9063.  
  9064. Create Text Static (ALT+C,T) 
  9065.  
  9066. Clicking on the Create Text Static (ALT+C,T) action will generate a static text 
  9067. control item and allow you to attach it to any visible window. Once the control 
  9068. is placed on the target window or dialog window, Gpf will invoke the Static 
  9069. Control Styles dialog window. Refer to Figure 3-8. 
  9070.  
  9071. Static controls are simple text fields, bitmaps, or icons that can be used to 
  9072. label, enclose, or separate other window control windows. Static controls do 
  9073. not accept user input and they do not send notification messages to their 
  9074. owning applications. 
  9075.  
  9076. As shown, the Static Control Styles dialog window consists of a number of entry 
  9077. fields, combination boxes, check boxes, radio buttons, and push buttons. Some 
  9078. of these controls are located in group boxes and will be noted in the following 
  9079. descriptions: 
  9080.  
  9081. Name 
  9082.  
  9083. Each static text control item has an identifying name. During program 
  9084. execution, the application's window procedure can manipulate the item using 
  9085. this name as an argument to the OS/2 Presentation Manager API functions. 
  9086.  
  9087. Sibling 
  9088.  
  9089. The Sibling control is a combination box which displays and allows you to 
  9090. choose which control item or window will be a sibling of the item currently 
  9091. being defined. 
  9092.  
  9093. Text 
  9094.  
  9095. The Text control is an entry field where you can type in the text associated 
  9096. with the currently created item. 
  9097.  
  9098. Item definitions where text entries are ignored will be identified at the 
  9099. appropriate control item description. 
  9100.  
  9101. Presentation 
  9102.  
  9103. The Presentation control is a combination box which displays and allows you to 
  9104. choose a presentation object for setting the font size, foreground, background, 
  9105. and border colors for the static control being defined. 
  9106.  
  9107. The Presentation object must have been previously identified as an object to 
  9108. Gpf. Refer to the Objects Pull-down section (Chapter 3.5) for information on 
  9109. defining presentation objects. 
  9110.  
  9111. Static Control Styles Group Box 
  9112.  
  9113. The Static Control Styles group box contains a number of radio buttons that 
  9114. define  what type of control the newly created item is. 
  9115.  
  9116. Radio buttons in a group box are mutually exclusive, only one can be set to on 
  9117. in the group at one time. Each of the control styles are described as follows: 
  9118.  
  9119.  Text           This option is set to on by default. With the control style of 
  9120.                 Text, various formatting options are available to produce 
  9121.                 formatted text in the boundaries of the control. The text 
  9122.                 entered in the text entry field control is displayed. Refer to 
  9123.                 the discussions of Horizontal and Vertical Options following 
  9124.                 this (Static Control Styles Group Box) section. 
  9125.  Group Box      This option is set to off by default. Group boxes are useful 
  9126.                 for grouping other kinds of control items, such as radio 
  9127.                 buttons and check boxes. The text entered in the text entry 
  9128.                 field control is displayed in the upper left corner of the 
  9129.                 group box when displayed in the application or dialog window. 
  9130.  ForeGround Frame This option is set to off by default. A control with this 
  9131.                 style is drawn as a rectangular frame with the current 
  9132.                 foreground color. Any text entered in the Text entry field is 
  9133.                 ignored with this option. 
  9134.  BackGround Frame This option is set to off by default. A control with this 
  9135.                 style draws a filled rectangle with the current background 
  9136.                 color. Any text entered in the Text entry field is ignored with 
  9137.                 this option. 
  9138.  Half Tone Frame This option is set to off by default. Half tone frames  draw a 
  9139.                 rectangular frame with a halftone pattern in the current 
  9140.                 foreground color. Any text entered in the Text entry field is 
  9141.                 ignored with this option. 
  9142.  
  9143.  Icon           This option is set to off by default. Click on this style if 
  9144.                 you want to display an icon on the application or dialog 
  9145.                 window. The icon must have been previously identified as an 
  9146.                 object to Gpf. Refer to the Objects Pull- down section (Chapter 
  9147.                 3.5) for information on defining icon objects. 
  9148.  Bitmaps        This option is set to off by default. Click on this style if 
  9149.                 you want to display a bitmap on the application or dialog 
  9150.                 window. The bitmap must have been previously identified as an 
  9151.                 object to Gpf. Refer to the Objects Pull-down section (Chapter 
  9152.                 3.5) for information on defining bitmap objects. 
  9153.  
  9154.  If either Icon or Bitmap is selected as a style, the Icon/Bitmap combination 
  9155.  box will become active with a list of defined Icon/Bitmap objects. Selecting 
  9156.  an object from the combination box will also fill in the Icon/Bitmap view box 
  9157.  located to the right of the Icon and Bitmap style radio button. 
  9158.  
  9159.  ForeGround Rect This option is set to off by default. This style draws a 
  9160.                 rectangle filled with the current foreground color. Any text 
  9161.                 entered in the Text entry field is ignored with this option. 
  9162.  BackGround Rect This option is set to off by default. This style draws a 
  9163.                 rectangle filled with the current background color. Any text 
  9164.                 entered in the Text entry field is ignored with this option. 
  9165.  Half Tone Rect This option is set to off by default. This style will draw a 
  9166.                 rectangle filled with a halftone pattern with the current 
  9167.                 foreground color. Any text entered in the Text entry field is 
  9168.                 ignored with this option. 
  9169.  
  9170.  Horz Options Group Box 
  9171.  
  9172.  The horizontal placement of the text in the Text field entry is controlled by 
  9173.  the options in this group box. These options are only available if the style 
  9174.  for the static control is marked Text. 
  9175.  
  9176.  Being radio button options, the horizontal controls are mutually exclusive. 
  9177.  
  9178.  Left Aligned   This option is set to on by default. Setting the Left Aligned 
  9179.                 option will draw the text entered in the text entry field flush 
  9180.                 left with the text box border. 
  9181.  Horizontal Centered This option is set to off by default. This option will 
  9182.                 center the text between the left and right boundaries of the 
  9183.                 text box. 
  9184.  Right Aligned  This option is set to off by default. Setting the Right Aligned 
  9185.                 option will draw the text entered in the text entry field flush 
  9186.                 right with the text box border. 
  9187.  
  9188.  Vert Options Group Box 
  9189.  
  9190.  The vertical placement of the text in the Text field entry is controlled by 
  9191.  the options in this group box. As with the horizontal controls, the style of 
  9192.  the static control must be set at Text. 
  9193.  
  9194.  Being radio button options, the vertical controls are mutually exclusive. 
  9195.  
  9196.  Top Aligned    This option is set to off by default. The Top Aligned option 
  9197.                 will draw the text entered in the Text entry field, starting in 
  9198.                 the top line of the text box. 
  9199.  Vert Centered  This option is set to on by default. Vertical centering will 
  9200.                 align the text between the top and bottom borders of the text 
  9201.                 box. This is typically used for single line text entries. 
  9202.  Bottom Aligned This option is set to off by default.  This option will draw 
  9203.                 the text entered in the Text entry field, starting along the 
  9204.                 bottom border of the text box. 
  9205.  
  9206.  Text Options Group Box 
  9207.  
  9208.  The Text Options group box contains a number of check boxes that will effect 
  9209.  the overall appearance of your text. 
  9210.  
  9211.  Check boxes are considered to turn on the related style when there is an 'X' 
  9212.  in the check box itself. If the check box is empty, Gpf will not generate the 
  9213.  option for the text. Each of the styles available will be described. 
  9214.  
  9215.   Word Wrap     This option is set to off by default. Click on this option if 
  9216.                 the text entry extends for more than one line, or if the text 
  9217.                 box is too small. Word wrap will automatically wrap the text to 
  9218.                 fit into the defined text box boundary. 
  9219.   Half Tone     This option is set to off by default. Setting this option on 
  9220.                 will display the text in a halftone pattern with the current 
  9221.                 text color. 
  9222.  
  9223.  Dialog Styles Group Box 
  9224.  
  9225.  The Dialog Styles group box contains a number of check boxes that will set 
  9226.  characteristics of the current static control. Typically these options are 
  9227.  used for defining characteristics of a control in dialog windows. 
  9228.  
  9229.   Group         This option is set to on by default. With this style set to on, 
  9230.                 the static control will act as the first member of a number of 
  9231.                 other controls in a group.  It will also be able to receive the 
  9232.                 keyboard or mouse focus. The group style remains in effect 
  9233.                 until the next control with a style such as this is found. 
  9234.   Tabstop       This option is set to off by default. This style is typically 
  9235.                 used in conjunction with the Group style. When set to on, the 
  9236.                 current control will be able to receive the focus when the user 
  9237.                 presses the TAB key to move between dialog controls. 
  9238.  
  9239.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  9240.                 will signal Gpf that you have completed any changes in the 
  9241.                 Static Control Styles dialog window and save your changes. 
  9242.  
  9243.            If any of the options you have selected will result in a change to 
  9244.            the controls appearance, Gpf will automatically update the control 
  9245.            to reflect those changes. 
  9246.  
  9247.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  9248.                 cause Gpf to abort the current operation . 
  9249.  
  9250.            If you have changed any options for the control while in the Static 
  9251.            Control Styles dialog window, Gpf will ignore the changes and 
  9252.            restore the original control settings. 
  9253.  
  9254.  ENTRY HELP     By clicking the Entry Extended Help (ALT+E) in the Static 
  9255.                 Control Styles dialog window, you will be able to define the 
  9256.                 general help text for your control. The text that you enter 
  9257.                 will be displayed by the Presentation Manager Help Facility if 
  9258.                 the user presses the F1 key when you finally run your compiled 
  9259.                 application. 
  9260.  
  9261.            You can also define an informational message for the control from 
  9262.            the Entry Extended Help dialog window. 
  9263.  
  9264.  Please refer to the Common Dialog Windows section (Chapter 3.10) for a 
  9265.  detailed explanation of the Entry Extended Help dialog window. 
  9266.  
  9267.  ACTION         Because static controls do not allow user input, the ACTION 
  9268.                 button is disabled. 
  9269.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove the 
  9270.                 static control. 
  9271.  
  9272.            When you select this button, Gpf will prompt you with a message to 
  9273.            confirm that you want to destroy this control, as well as any 
  9274.            children of this control. 
  9275.  
  9276.  
  9277. ΓòÉΓòÉΓòÉ 29.1. TEXT ΓòÉΓòÉΓòÉ
  9278.  
  9279. Static controls can have these styles: 
  9280.  
  9281. SS_TEXT 
  9282.  
  9283.  Creates a text field.  The text is formatted before it is displayed according 
  9284. to the setting of these text drawing-style flags: 
  9285.  
  9286.  Flag                   Meaning 
  9287.  DT_LEFT                Left-justified text 
  9288.  DT_CENTER              Centered text 
  9289.  DT_RIGHT               Right-justified text 
  9290.  
  9291.      ORed with one of: 
  9292.  
  9293.  Flag                   Meaning 
  9294.  DT_TOP                 Text is aligned to top of window 
  9295.  DT_VCENTER             Text is aligned vertically in center of window 
  9296.  DT_BOTTOM              Text is aligned to bottom of window 
  9297.  
  9298.  The following text drawing style can also be ORed, but only if DT_TOP and 
  9299.  DT_LEFT are also specified: 
  9300.  
  9301.  DT_WORDBREAK           Text is multi-line with word-wrapping at ends of lines. 
  9302.  
  9303.  Programming Note  For "static" text that can be selected, a Button Control 
  9304.  with a style of BS_NOBORDER can be used. 
  9305.  
  9306.  
  9307. ΓòÉΓòÉΓòÉ 29.2. GROUPBOX ΓòÉΓòÉΓòÉ
  9308.  
  9309. Static controls can have these styles: 
  9310.  
  9311. SS_GROUPBOX 
  9312.  
  9313.  A group box static control is a box that has an identifying text string in its 
  9314. upper left corner.  Group boxes are used to collect a group of radio buttons or 
  9315. other controls into a single unit. 
  9316.  
  9317.  
  9318. ΓòÉΓòÉΓòÉ 29.3. FGNDFRAME ΓòÉΓòÉΓòÉ
  9319.  
  9320. Static controls can have these styles: 
  9321.  
  9322. SS_FGNDFRAME 
  9323.  
  9324.  Creates a box with a foreground color frame. 
  9325.  
  9326.  
  9327. ΓòÉΓòÉΓòÉ 29.4. BKGNDFRAME ΓòÉΓòÉΓòÉ
  9328.  
  9329. Static controls can have these styles: 
  9330.  
  9331. SS_BKGNDFRAME 
  9332.  
  9333.  Creates a box with a background color frame. 
  9334.  
  9335.  
  9336. ΓòÉΓòÉΓòÉ 29.5. ICON ΓòÉΓòÉΓòÉ
  9337.  
  9338. Static controls can have these styles: 
  9339.  
  9340. SS_ICON 
  9341.  
  9342.  Draws an icon.  The text of the static control is a string that is used to 
  9343. derive the resource ID from which the icon is loaded. The format of the string 
  9344. is: 
  9345.  
  9346.  o The first byte is X'FF', the second byte is the low byte of the resource ID, 
  9347.    and the third byte is the high byte of the resource ID. 
  9348.  
  9349.  o The first character is "#"; subsequent characters make up the decimal text 
  9350.    representation of the resource ID. 
  9351.  
  9352.   This format can be used for specifying a system icon in a resource file. The 
  9353.  decimal string is the value of the appropriate SPTR_* constant. 
  9354.  
  9355.   If the string is empty or does not follow the format above, no resource is 
  9356.  loaded. 
  9357.  
  9358.   The resource is assumed to reside in the resource file of the current 
  9359.  process. 
  9360.  
  9361.   This control is resized to the size of the icon. 
  9362.  
  9363.  
  9364. ΓòÉΓòÉΓòÉ 29.6. BITMAPS ΓòÉΓòÉΓòÉ
  9365.  
  9366. Static controls can have these styles: 
  9367.  
  9368. SS_BITMAP 
  9369.  
  9370.  Draws a bit map.  The text of the static control names the bit-map resource, 
  9371. as for SS_ICON. 
  9372.  
  9373.  
  9374. ΓòÉΓòÉΓòÉ 29.7. FGNDRECT ΓòÉΓòÉΓòÉ
  9375.  
  9376. Static controls can have these styles: 
  9377.  
  9378. SS_FGNDRECT 
  9379.  
  9380.  Creates a foreground color-filled rectangle. 
  9381.  
  9382.  
  9383. ΓòÉΓòÉΓòÉ 29.8. BKGNDRECT ΓòÉΓòÉΓòÉ
  9384.  
  9385. Static controls can have these styles: 
  9386.  
  9387. SS_BKGNDRECT 
  9388.  
  9389.  Creates a background color-filled rectangle. 
  9390.  
  9391.  
  9392. ΓòÉΓòÉΓòÉ 29.9. TEXTLEFT ΓòÉΓòÉΓòÉ
  9393.  
  9394. Static controls can have these styles: 
  9395.  
  9396.  DT_LEFT   Left-justified text 
  9397.  
  9398.  
  9399. ΓòÉΓòÉΓòÉ 29.10. TEXTCENTER ΓòÉΓòÉΓòÉ
  9400.  
  9401. Static controls can have these styles: 
  9402.  
  9403.  DT_CENTER Centered text 
  9404.  
  9405.  
  9406. ΓòÉΓòÉΓòÉ 29.11. TEXTRIGHT ΓòÉΓòÉΓòÉ
  9407.  
  9408. Static controls can have these styles: 
  9409.  
  9410.  DT_RIGHT Right-justified text 
  9411.  
  9412.  
  9413. ΓòÉΓòÉΓòÉ 29.12. TOP ΓòÉΓòÉΓòÉ
  9414.  
  9415. Static controls can have these styles: 
  9416.  
  9417.  DT_TOP     Text is aligned to top of window 
  9418.  
  9419.  
  9420. ΓòÉΓòÉΓòÉ 29.13. VCENTER ΓòÉΓòÉΓòÉ
  9421.  
  9422. Static controls can have these styles: 
  9423.  
  9424.  DT_VCENTER Text is aligned vertically in center of window 
  9425.  
  9426.  
  9427. ΓòÉΓòÉΓòÉ 29.14. BOTTOM ΓòÉΓòÉΓòÉ
  9428.  
  9429. Static controls can have these styles: 
  9430.  
  9431.  DT_BOTTOM Text is aligned to bottom of window 
  9432.  
  9433.  
  9434. ΓòÉΓòÉΓòÉ 29.15. WORDBREAK ΓòÉΓòÉΓòÉ
  9435.  
  9436. Static controls can have these styles: 
  9437.  
  9438.  DT_WORDBREAK 
  9439.  
  9440.  Text is multi-line with word-wrapping at ends of lines. 
  9441.  
  9442.  
  9443. ΓòÉΓòÉΓòÉ 29.16. DlgTextGroup ΓòÉΓòÉΓòÉ
  9444.  
  9445. Styles for Windows in Dialogs 
  9446.  
  9447. WS_GROUP 
  9448.  
  9449.  This identifies the dialog items that make up a `group'. 
  9450.  
  9451.  This style should be specified on the first window of any group. Subsequent 
  9452. windows of the group must not have this style. The windows of the group must be 
  9453. adjacent siblings. This can be done by listing the windows consecutively in 
  9454. templates or by inserting each new window in the group behind the previous one 
  9455. (WinCreateWindow). 
  9456.  
  9457.  
  9458. ΓòÉΓòÉΓòÉ 29.17. DlgTextTabStop ΓòÉΓòÉΓòÉ
  9459.  
  9460. Styles for Windows in Dialogs 
  9461.  
  9462. WS_TABSTOP 
  9463.  
  9464.  This identifies a dialog item as one to which the operator can TAB. 
  9465.  
  9466.  
  9467. ΓòÉΓòÉΓòÉ 30. Dlg Actions List ΓòÉΓòÉΓòÉ
  9468.  
  9469. Action List Definition Dialog Window 
  9470.  
  9471. The Action List Definition dialog window is where you select from a number of 
  9472. predefined actions and associations. The dialog window itself contains three 
  9473. (3) list boxes: 
  9474.  
  9475.  Actions        Contains a list of all Gpf predefined actions that perform some 
  9476.                 action to either a window, control, menu item, or object. For 
  9477.                 example, if the action in the Action list is a menu action, 
  9478.                 then the Window list box will disappear and the Object list box 
  9479.                 will contain all the menu and pull-down objects currently 
  9480.                 defined. Each action, and the effect any action may have on the 
  9481.                 contents of the other list boxes, will be described below. 
  9482.  Windows        Contains a list of all windows or dialog windows in your 
  9483.                 application definition. Many of the actions selected from the 
  9484.                 Action list work on a window selected here. If a selected 
  9485.                 action does not effect a window this list box will not be 
  9486.                 displayed. 
  9487.  Objects        Contains a list of objects (i.e. Controls, Menus, User 
  9488.                 Functions ) that an action may directly effect. If the selected 
  9489.                 action in the Action list does not effect an object, this list 
  9490.                 will not be displayed or will display empty. 
  9491.  
  9492.  Gpf Predefined Action List 
  9493.  
  9494.  The following is a list of available actions as predefined by Gpf. A brief 
  9495.  description of the action, as well as the target object for the action, will 
  9496.  be provided. 
  9497.  
  9498.  This list contain actions typically performed to another window, which can be 
  9499.  selected in the Window list box. 
  9500.  
  9501.  Window Show (Visible) When selected this action will cause the target window 
  9502.                 to display itself on the screen. 
  9503.  Window Dismiss (Invisible) This action will cause the target window to dismiss 
  9504.                 itself from the screen. The window in effect hides itself. 
  9505.  Window Focus   This will cause the target window to obtain the keyboard and 
  9506.                 mouse input focus. This in effect switches the active window 
  9507.                 during the application run. 
  9508.  Window Enable  This action will cause the target window to become enabled. If 
  9509.                 the target window is already enabled this action will have no 
  9510.                 effect. 
  9511.  Window Disable This action will cause the target window to become disabled. If 
  9512.                 the target window is already disabled this action will have no 
  9513.                 effect. 
  9514.  Window Center Screen This action will cause the target window to center itself 
  9515.                 on the screen in relation to the parent window. 
  9516.  Window Top Screen This action will cause the target window to align the top of 
  9517.                 its border with the top of the desktop screen. 
  9518.  Window Max Screen This action will cause the target window to maximize itself. 
  9519.                 If the parent window is the DESKTOP, the application window 
  9520.                 will fill the entire screen, otherwise the window fills the 
  9521.                 parent window client area. 
  9522.  Window Reset Default Button This action will cause the button defined as the 
  9523.                 default button to reset itself to the default button status. 
  9524.                 Default buttons are drawn with a heavy black border. 
  9525.  
  9526.            NOTE: the next two items have several properties the user must be 
  9527.            aware of. First, they are both reserved for SQL associations. 
  9528.            Second, the code generated by GPF for these functions must NOT be 
  9529.            modified, though you can ADD code. Third, they are inactive if the 
  9530.            application has no associated DATABASE. Lastly, when invoked these 
  9531.            functions send data back and forth between the current CONTROL and 
  9532.            the "static sql area". 
  9533.  
  9534.  Window Send Data To Window This selection will cause Gpf to generate a 
  9535.                 function call and empty function shell for use by the 
  9536.                 developer. 
  9537.  Window Receive Data To Window This selection will cause Gpf to generate a 
  9538.                 function call and empty function shell for use by the 
  9539.                 developer. 
  9540.  
  9541.  This list contains actions that effect List boxes or Combination boxes. If a 
  9542.  window has any of these controls it will be listed in the Object list box. 
  9543.  Select different windows from the Window list box. 
  9544.  
  9545.  Listbox Load List/Combo Box (SQL) This action will generate the necessary SQL 
  9546.                 statements to fill a list box with table column headings . 
  9547.  Listbox Get Selection (SQL) This action will retrieve the row associated with 
  9548.                 the selection in the list box. 
  9549.  
  9550.  These actions work on controls within a window. Controls for a particular 
  9551.  window, created with the Create pull-down, appear in the Objects list box with 
  9552.  the window selected in the Windows list box. 
  9553.  
  9554.  Control Show (Visible) When selected this action will cause the target control 
  9555.                 to display itself on the screen. 
  9556.  Control Hide (Invisible) This action will cause the target control to dismiss 
  9557.                 itself from the screen. The Control in effect hides itself. 
  9558.  
  9559.                 Control Focus 
  9560.  This will cause the target control to obtain the keyboard and mouse input 
  9561.                 focus. This in effect switches the active control during the 
  9562.                 application run. 
  9563.  
  9564.  Control Enable This action will cause the target control to become enabled. If 
  9565.                 the target control is already enabled this action will have no 
  9566.                 effect. 
  9567.  Control Disable This action will cause the target control to become disabled. 
  9568.                 If the target control is already disabled this action will have 
  9569.                 no effect. 
  9570.  
  9571.  These actions work on buttons (Check boxes, Radio) within a window. Buttons 
  9572.  for a particular window, created with the Create pull-down, appear in the 
  9573.  Objects list box with the window selected in the Windows list box. 
  9574.  
  9575.  Button Check True This action will cause the target radio or check box button 
  9576.                 to be changed to an on state. 
  9577.  Button Check False This action will cause the target radio or check box button 
  9578.                 to be changed to an off state. 
  9579.  Button Check Alternate This action toggles the state of the target radio or 
  9580.                 check box button, i.e if ON it will be turned OFF, and vice 
  9581.                 versa. 
  9582.  Button Set Default Button This action will cause the target button to become 
  9583.                 the default button. Default buttons are drawn with a heavy 
  9584.                 black border, and are invoked if the user presses the ENTER 
  9585.                 key. 
  9586.  
  9587.  These actions work on menu pull-down, pull-down lists, and submenus.  Menus 
  9588.  for the window, as selected in the Windows list box, will be displayed in the 
  9589.  Object list box. 
  9590.  
  9591.  Menu Enable    This action will cause the target menu item to be enabled. When 
  9592.                 enabled, menu items can be selected with the mouse or keyboard. 
  9593.  Menu Disable   This action will cause the target menu item to become disabled. 
  9594.                 When menu items are disabled they are not selectable by the 
  9595.                 user. 
  9596.  Menu Mark      This action will place a check mark next to the target menu 
  9597.                 item. 
  9598.  Menu Unmark    This action will remove, if previously set, a check mark next 
  9599.                 to the target menu item. 
  9600.  Menu Swap Mark This option will alternate a check mark next to the target menu 
  9601.                 item.  If the menu item is checked it will be unchecked, if 
  9602.                 unchecked it will be checked. 
  9603.  
  9604.  These actions will send a message directly to the target window. 
  9605.  
  9606.  Send Did Ok    This is an OS/2 Presentation Manager predefined message for 
  9607.                 indicating a user has clicked on an OK button, or a button with 
  9608.                 a DID_OK identifier. 
  9609.  Send Did Cancel This is an OS/2 Presentation Manager predefined message for 
  9610.                 indicating a user has clicked on a CANCEL button, or a button 
  9611.                 with a DID_CANCEL identifier. 
  9612.  Send Text Message This action will display a message box object as defined in 
  9613.                 your application. A list of message box objects will appear in 
  9614.                 the Object list box. 
  9615.  
  9616.  The following actions do not have any windows or objects associated with them: 
  9617.  
  9618.  Quit Application This will cause the application to exit the system. 
  9619.  
  9620.  The following actions will generate a help subsystem call. The Window and 
  9621.  Object list boxes are removed when selecting these calls, with the exception 
  9622.  of the Help for Window action. 
  9623.  
  9624.  Help Help for Help This will issue a message to the help subsystem to display 
  9625.                 the general overview of using the help subsystem. 
  9626.  Help Help Extended This will issue a message to display the extended help 
  9627.                 screens for the application. 
  9628.  Help Help Index This action will issue a message to display the application 
  9629.                 index of help entries. 
  9630.  
  9631.                 Help Help Contents 
  9632.  This action will issue a message to display a hierarchical table of contents 
  9633.                 for all available apllication help panels. 
  9634.  
  9635.  Help Help Keys This action will issue a message to display all the help 
  9636.                 screens describing keyboard combinations for the application. 
  9637.  Help Help For Window This action will display the help information for a 
  9638.                 specific window as selected from the Window list box. 
  9639.  
  9640.  The following action will display a list of User Function objects in the 
  9641.  Object list box.  The name of this feature is intentionally "User Function", 
  9642.  as the proper way to utilize it is to create these objects in the form of 
  9643.  simple function calls (refer to section 3.5.2.4 for a detailed explanation .) 
  9644.  
  9645.  User Function  This will cause a User Function created with the Object 
  9646.                 pull-down action to be invoked. Gpf generates the appropriate 
  9647.                 source statements for these objects, placed in the appropriate 
  9648.                 place within the generated file. These functions MUST be 
  9649.                 defined prior to use, via the OBJECT pulldown of the GPF 
  9650.                 Editor. 
  9651.  
  9652.  
  9653. ΓòÉΓòÉΓòÉ 31. Dlg Associate ΓòÉΓòÉΓòÉ
  9654.  
  9655. The upper right area, Free Columns, is a read-only list of all columns (fields) 
  9656. found in the current table. Select an item from this list and press either Add, 
  9657. which inserts the item in next sequential order,  or Addtop to place it at the 
  9658. head of the list. 
  9659.  
  9660. Selected items appear in the left list and, in your application, will be 
  9661. written in top to bottom order. 
  9662.  
  9663. You can highlight and remove an item from the left list with the Destroy 
  9664. button. 
  9665.  
  9666.  
  9667. ΓòÉΓòÉΓòÉ 32. Dlg User Function Definition ΓòÉΓòÉΓòÉ
  9668.  
  9669. Object User Function Object (ALT+B,U) 
  9670.  
  9671. User objects are defined source code statements or references to external 
  9672. library functions that can be embedded into the Gpf application definition. 
  9673.  
  9674. This provides a 'safe' method for inserting source code into the definition. 
  9675. Source code that is entered directly into the Gpf generated source files will 
  9676. be overwritten the next time a Toolkit Generate action is performed. For a 
  9677. detailed description of the Gpf source generation function, refer to the 
  9678. Toolkit Pull-down Actions section (Chapter 3.8) in this document. 
  9679.  
  9680. Clicking on the Object User Function Object (ALT+B,U) pull-down action will 
  9681. invoke the User Function Object List dialog window. 
  9682.  
  9683. The User Object Function List dialog window contains a list of all currently 
  9684. defined User Objects for the current application definition. The following 
  9685. section will describe adding, editing, or deleting these objects. 
  9686.  
  9687.  OK             Clicking on the OK (ALT+O) button or pressing the ENTER key 
  9688.                 will signal Gpf that you have completed any changes in the User 
  9689.                 Object Function List dialog window. 
  9690.  View/Modify    Click on this button (ALT+V) to display or modify any defined 
  9691.                 user defined source or function objects. The current selection 
  9692.                 in the User Function list will be chosen for this operation. 
  9693.                 This will invoke the User Function Editor dialog window for 
  9694.                 modification of the selected object. The User Function Editor 
  9695.                 dialog window is described in the following section. 
  9696.  Add            Clicking on the Add (ALT+A) button will invoke the User 
  9697.                 Function Editor dialog window for creating and editing the 
  9698.                 source code function object. 
  9699.  
  9700.  The User Function Editor Dialog Window 
  9701.  
  9702.  The User Function Editor dialog window contains an entry field, a multiple 
  9703.  line entry field, and pushbuttons that allow you to define and type in source 
  9704.  code comprising the User Function object. 
  9705.  
  9706.  The User Function editor is not meant to replace high level program editors or 
  9707.  word processors, but to provide you with a convenient way to insert source 
  9708.  code functions into your application definition. 
  9709.  
  9710.  Name 
  9711.  
  9712.  Each User Function object has an identifying name. During the Gpf edit 
  9713.  session, when you are applying a User Function object to a particular action, 
  9714.  you would associate the action with this identifying object name. 
  9715.  
  9716.  For information on associating User Function objects with actions, refer to 
  9717.  the Common Dialog Window section (section 3.10). 
  9718.  
  9719.  User Function Multiple LE Edit Box 
  9720.  
  9721.  Below the Name entry field is the User Function edit box. This is where you 
  9722.  can enter either a reference to a pre- existing function, or raw source code 
  9723.  statements. Whatever statements are entered here will be generated into the 
  9724.  source code generated from your application definition. 
  9725.  
  9726.  Modifying any source statements here, as opposed to making changes in the 
  9727.  actual source file, will insure that Gpf will not overwrite these statements. 
  9728.  Gpf will overwrite any statements entered directly into the source code file 
  9729.  because your additions will be unknown to both Gpf and the definition file. 
  9730.  Ideally, you should save making modifications directly to the source code as 
  9731.  the last step you perform before actual compilation. 
  9732.  
  9733.  The edit box itself contains text editing features. Although they are not as 
  9734.  extensive as a specialized programmers editor, it will sufficiently facilitate 
  9735.  statement coding. Besides the basic features provided (i.e. Delete, Insert, 
  9736.  etc...) the following controls are available: 
  9737.  
  9738.            Cut And Paste - The standard cut and paste operations from the 
  9739.            Presentation Manager clipboard are supported which allow you to copy 
  9740.            source code from another file into the Gpf edit box. 
  9741.  
  9742.            Tabs- Tab characters are supported for the purpose of indenting 
  9743.            source code statements. 
  9744.  
  9745.  OK             Clicking on the OK button or pressing the ENTER key will signal 
  9746.                 Gpf that you have completed any additions or changes to the 
  9747.                 User Function Editor dialog window. 
  9748.  
  9749.  If any of the options you have selected will result in a change to the 
  9750.  application definition file, you will have to run the Toolkit Generate action 
  9751.  in Gpf to view the changes that occur in the target source code. Refer to the 
  9752.  Toolkit Pull-down section (section 3.8) for information on the Generate 
  9753.  function. 
  9754.  
  9755.  CANCEL         Clicking on the CANCEL button, or pressing the ESC key will 
  9756.                 signal Gpf that you want to dismiss the User Function Editor 
  9757.                 dialog window without retaining any changes you have made. 
  9758.  DESTROY        By clicking on the DESTROY (ALT+D) button, you can remove this 
  9759.                 User Function object. 
  9760.  
  9761.            When you select this button, Gpf will prompt you with a message to 
  9762.            confirm that you want to destroy this object, as well as any 
  9763.            children of the object. 
  9764.  
  9765.  
  9766. ΓòÉΓòÉΓòÉ 33. Dlg SelectFile ΓòÉΓòÉΓòÉ
  9767.  
  9768. The File Open Pull-down Action 
  9769.  
  9770. The next pull-down action on the File menu is the Open action. 
  9771.  
  9772. When you choose the File Open (ALT+F,O) action, you are indicating to Gpf that 
  9773. you want to open an existing application definition file.  Gpf definitions are 
  9774. where Gpf saves all the controls and windows that you create for your 
  9775. application. By default Gpf files have the following syntax: 
  9776.  
  9777. filename.ORC 
  9778.  
  9779. where filename is the eight character name that you originally assigned to the 
  9780. file when it was created. 
  9781.  
  9782. If you have a Gpf definition loaded in the current editing session, you will be 
  9783. prompted to save the definition before continuing. If you have made changes to 
  9784. the definition, and have not saved them, it is a good idea to save it now 
  9785. because they will be lost if you reply no to the save option. 
  9786.  
  9787. Gpf will then display the File Open dialog window, as shown in Figure 3-3. If 
  9788. you did not have a Gpf definition loaded, this dialog window would have 
  9789. appeared automatically. 
  9790.  
  9791. The File Open dialog window will allow you to enter the name of the target Gpf 
  9792. definition, as well as providing controls for locating other directories where 
  9793. the file may be located. Each of the controls in this dialog window will be 
  9794. discussed. 
  9795.  
  9796. Directory Is 
  9797.  
  9798. This is an informational, read only, display of the current working directory. 
  9799. If you change the target drive and directory with the Directories list box, 
  9800. this field will reflect the new target. 
  9801.  
  9802. File Name 
  9803.  
  9804. This entry field is where you can enter the name of the Gpf definition file you 
  9805. want to open. This field can be filled a number of ways; either by keying in 
  9806. the filename explicitly, or by making a selection from the FILES list box with 
  9807. the mouse. If you choose the latter, Gpf will automatically fill the File Name 
  9808. entry field with your list selection. 
  9809.  
  9810. By default Gpf will search for all files in the current working directory that 
  9811. have the following form: 
  9812.  
  9813. *.ORC 
  9814.  
  9815. where the '*' is the OS/2 wildcard character which means 'find all files with 
  9816. the ORC extension that can contain any characters before the extension'. 
  9817.  
  9818. Files 
  9819.  
  9820. This list box contains all the files that Gpf has found using the file name 
  9821. default pattern described above. You can use wild cards for searching file 
  9822. names with extensions other than the Gpf default by entering the pattern in the 
  9823. File Name field and pressing the ENTER key. The Files list box will display all 
  9824. the files that it finds that match the File Name pattern. 
  9825.  
  9826. You can select a filename from this list box by double clicking your selection. 
  9827. To use the keyboard in this list box, first use the TAB key to highlight the 
  9828. filename at the top of the list, and then use the UP and DOWN cursor keys to 
  9829. highlight different entries. Pressing the ENTER key will automatically load the 
  9830. selected entry in the Files list box. 
  9831.  
  9832. Directories 
  9833.  
  9834. If the file you want to open is not available in the current directory you can 
  9835. select a different drive or directory from the Directories list box. 
  9836.  
  9837. For example, if you want to load a file that has been stored to a floppy disk 
  9838. using drive A:, click on the drive identifier [A:] and Gpf will automatically 
  9839. search the drive with the pattern or explicit filename listed in the File Name 
  9840. field. 
  9841.  
  9842.  OK             By clicking on the OK button (ALT+O) you will signal Gpf that 
  9843.                 you are ready to load the current file that is listed in the 
  9844.                 File Name field. Gpf will check the drive and directory for 
  9845.                 that file's existence.  If the file does not exist, Gpf will 
  9846.                 notify you with a 'Requested File Not Found' message, otherwise 
  9847.                 the file will be loaded.  Another way to signal Gpf to load the 
  9848.                 file is by pressing the ENTER key. 
  9849.  CANCEL         Clicking on the CANCEL button will signal to Gpf that you want 
  9850.                 to abort  the File Load operation and ignore the settings in 
  9851.                 the File Open dialog window.  Another way to signal Gpf that 
  9852.                 you want to cancel the current operation is by pressing the ESC 
  9853.                 key. 
  9854.  
  9855.            Note that if you had saved and closed a Gpf definition when you 
  9856.            invoked the File Open dialog window, that definition is still 
  9857.            closed.  When you abort the File Open operation, Gpf will not have 
  9858.            any definitions loaded at all. 
  9859.  
  9860.  HELP           Clicking on the HELP button will invoke the Presentation 
  9861.                 Manager Help Facility. The Help window will provide you with 
  9862.                 information for options available when opening a Gpf definition 
  9863.                 file. 
  9864.  
  9865.  
  9866. ΓòÉΓòÉΓòÉ 33.1. Dlg SelectFile FileNameFilter ΓòÉΓòÉΓòÉ
  9867.  
  9868. File Name 
  9869.  
  9870. This entry field is where you can enter the name of the Gpf definition file you 
  9871. want to open. This field can be filled a number of ways; either by keying in 
  9872. the filename explicitly, or by making a selection from the FILES list box with 
  9873. the mouse. If you choose the latter, Gpf will automatically fill the File Name 
  9874. entry field with your list selection. 
  9875.  
  9876. By default Gpf will search for all files in the current working directory that 
  9877. have the following form: 
  9878.  
  9879. *.ORC 
  9880.  
  9881. where the '*' is the OS/2 wildcard character which means 'find all files with 
  9882. the ORC extension that can contain any characters before the extension'. 
  9883.  
  9884.  
  9885. ΓòÉΓòÉΓòÉ 33.2. Dlg SelectFile Directory ΓòÉΓòÉΓòÉ
  9886.  
  9887. Directories 
  9888.  
  9889. If the file you want to open is not available in the current directory you can 
  9890. select a different drive or directory from the Directories list box. 
  9891.  
  9892. For example, if you want to load a file that has been stored to a floppy disk 
  9893. using drive A:, click on the drive identifier [A:] and Gpf will automatically 
  9894. search the drive with the pattern or explicit filename listed in the File Name 
  9895. field. 
  9896.  
  9897.  
  9898. ΓòÉΓòÉΓòÉ 33.3. Dlg SelectFile File ΓòÉΓòÉΓòÉ
  9899.  
  9900. Files 
  9901.  
  9902. This list box contains all the files that Gpf has found using the file name 
  9903. default pattern described above. You can use wild cards for searching file 
  9904. names with extensions other than the Gpf default by entering the pattern in the 
  9905. File Name field and pressing the ENTER key. The Files list box will display all 
  9906. the files that it finds that match the File Name pattern. 
  9907.  
  9908. You can select a filename from this list box by double clicking your selection. 
  9909. To use the keyboard in this list box, first use the TAB key to highlight the 
  9910. filename at the top of the list, and then use the UP and DOWN cursor keys to 
  9911. highlight different entries. Pressing the ENTER key will automatically load the 
  9912. selected entry in the Files list box. 
  9913.  
  9914.  
  9915. ΓòÉΓòÉΓòÉ 33.4. Dlg SelectFile Ok ΓòÉΓòÉΓòÉ
  9916.  
  9917.  OK             By clicking on the OK button (ALT+O) you will signal Gpf that 
  9918.                 you are ready to load the current file that is listed in the 
  9919.                 File Name field. Gpf will check the drive and directory for 
  9920.                 that file's existence.  If the file does not exist, Gpf will 
  9921.                 notify you with a 'Requested File Not Found' message, otherwise 
  9922.                 the file will be loaded.  Another way to signal Gpf to load the 
  9923.                 file is by pressing the ENTER key. 
  9924.  
  9925.  
  9926. ΓòÉΓòÉΓòÉ 33.5. Dlg SelectFile Cancel ΓòÉΓòÉΓòÉ
  9927.  
  9928.  CANCEL         Clicking on the CANCEL button will signal to Gpf that you want 
  9929.                 to abort the File Load operation and ignore the settings in the 
  9930.                 File Open dialog window.  Another way to signal Gpf that you 
  9931.                 want to cancel the current operation is by pressing the ESC 
  9932.                 key. 
  9933.  
  9934.  
  9935. ΓòÉΓòÉΓòÉ 33.6. Dlg SelectFile Help ΓòÉΓòÉΓòÉ
  9936.  
  9937.  HELP           Clicking on the HELP button will invoke the Presentation 
  9938.                 Manager Help Facility. The Help window will provide you with 
  9939.                 information for options available when opening a Gpf definition 
  9940.                 file. 
  9941.  
  9942.  
  9943. ΓòÉΓòÉΓòÉ 34. Messages ΓòÉΓòÉΓòÉ
  9944.  
  9945. Messages
  9946.  
  9947.  Msg001    GPF001:  Grid X Error - Enter an integer in the range 1-5. 
  9948.  
  9949.  Msg002    GPF002:  Grid Y Error - Enter an integer in the range 1-5. 
  9950.  
  9951.  Msg003    GPF003:  File I/O Error: Write. 
  9952.  
  9953.  Msg004    GPF004:  File I/O Error: Read. 
  9954.  
  9955.  Msg005    GPF005:  File I/O Error: Write Open. 
  9956.  
  9957.  Msg006    GPF006:  File I/O Error: Read Open. 
  9958.  
  9959.  Msg007    GPF007:  Duplicate or Invalid Name. 
  9960.  
  9961.  Msg008    GPF008:  Delete this Window and its children? 
  9962.  
  9963.  Msg009    GPF009:  Delete this Control and its children? 
  9964.  
  9965.  Msg010    GPF010:  Delete this Menu and its children? 
  9966.  
  9967.  Msg011    GPF011:  Delete this Action and its children? 
  9968.  
  9969.  Msg012    GPF012:  Delete this help item and its children? 
  9970.  
  9971.  Msg013    GPF013:  Delete this 'Associate Data' and its children? 
  9972.  
  9973.  Msg014    GPF014:  Change this 'Associate Data' and Delete its children? 
  9974.  
  9975.  Msg015    GPF015:  Invalid Source Name. 
  9976.  
  9977.  Msg016    GPF016:  Invalid File Name. 
  9978.  
  9979.  Msg017    GPF017:  Icon/BitMap/Pointer File Not Found. 
  9980.  
  9981.  Msg018    GPF018:  Please Clean Desktop. 
  9982.  
  9983.  Msg019    GPF019:  Save the current File? 
  9984.  
  9985.  Msg020    GPF020:  DataBase Open Error. 
  9986.  
  9987.  Msg021    GPF021:  File not Found - (Binder) GpfEdit.Bnd 
  9988.  
  9989.  Msg022    GPF022:  Sql Host variable (Table_Column) is too long. 
  9990.  
  9991.  Msg023    GPF023:  Delete this Message and its children? 
  9992.  
  9993.  Msg024    GPF024:  Invalid Thread Name. 
  9994.  
  9995.  Msg025    GPF025:  Delete this Object and its children? 
  9996.  
  9997.  Msg026    GPF026:  Delete this Presentation and its children? 
  9998.  
  9999.  Msg027    GPF027:  Unable to execute GpfRun.Exe 
  10000.  
  10001.  Msg028    GPF028:  Set this window to 'SYSTEM MODAL'? 
  10002.  
  10003.  Msg029    GPF029:  This function will be implemented in future releases. 
  10004.  
  10005.  Msg030    GPF030:  CUA requires mnemonics for each choice in an ActionBar / 
  10006.            PullDown / Button. Mnemonics are specified by placing a tilde (~) 
  10007.            before the character which is to be the mnemonic for the choice. 
  10008.            Bypass CUA requirements? 
  10009.  
  10010.  Msg031    GPF031:  CUA does not allow mnemonics on the CANCEL push Button. 
  10011.            Bypass CUA requirements? 
  10012.  
  10013.  Msg032    GPF032:  The specified mnemonic has already been assigned to another 
  10014.            control within the same selection field. CUA requires mnemonics to 
  10015.            be unique within a selection field.  Bypass CUA requirements? 
  10016.  
  10017.  Msg033    GPF033:  CUA requires that controls begin with a capital letter. 
  10018.            Bypass CUA requirements? 
  10019.  
  10020.  Msg034    GPF034:  No DataBase specified in opening screen - Invalid Action. 
  10021.  
  10022.  Msg035    GPF035:  No Column Selected - Select Column or Set Null Table. 
  10023.  
  10024.  Msg036    GPF036:  Delete the UserText object and its children? 
  10025.  
  10026.  Msg037    GPF037:  The 'Max Length' field is invalid. 
  10027.  
  10028.  Msg038    GPF038:  Before EXIT, save the current File? 
  10029.  
  10030.  Msg039    GPF039:  Change the 'DATABASE NAME' and Delete all children? 
  10031.  
  10032.  Msg040    GPF040:  A file with this name already exists in this directory. 
  10033.            Overwrite? 
  10034.  
  10035.  Msg041    GPF041:  Not enough memory to complete  task. Terminate one or more 
  10036.            other jobs. Select OK when ready, or select Cancel to terminate. 
  10037.  
  10038.  Msg042    GPF042:  The CATALOG contains more than 255 DATABASE names. 
  10039.  
  10040.  Msg043    GPF043:  The DATABASE contains more than 127 TABLE names. 
  10041.  
  10042.  Msg044    GPF044:  The DATABASE contains more than 1023 COLUMN names. 
  10043.  
  10044.  Msg045    GPF045:  Invalid Dll Name OR Dll Load Error. 
  10045.  
  10046.  Msg046    GPF046:  'Dll User control' is not a Gpf API. 
  10047.  
  10048.  Msg047    GPF047:  Delete the UserControl object and its children? 
  10049.  
  10050.  
  10051. ΓòÉΓòÉΓòÉ 34.1. GPF007 ΓòÉΓòÉΓòÉ
  10052.  
  10053. Msg007
  10054.  
  10055.  Msg007    GPF007:  Duplicate or Invalid Name. 
  10056.  
  10057.  'Name' can contain as many as 20 characters, including underscore characters 
  10058.  (_), hyphens (-), and periods (.), as well as any letter or number. You cannot 
  10059.  use spaces in the Names field. 
  10060.  
  10061.  
  10062. ΓòÉΓòÉΓòÉ 34.2. GPF008 ΓòÉΓòÉΓòÉ
  10063.  
  10064. Msg008
  10065.  
  10066.  Msg008    GPF008:  Delete this Window and its children? 
  10067.  
  10068.  Press Ok to eliminate an object. This object and all its children will cease 
  10069.  to exist. 
  10070.  
  10071.   CAUTION:
  10072.  Destruction is FINAL. There is no UNDO function. 
  10073.  
  10074.  
  10075. ΓòÉΓòÉΓòÉ 34.3. GPF009 ΓòÉΓòÉΓòÉ
  10076.  
  10077. Msg009
  10078.  
  10079.  Msg009    GPF009:  Delete this Control and its children? 
  10080.  
  10081.  Press Ok to eliminate an object. This object and all its children will cease 
  10082.  to exist. 
  10083.  
  10084.   CAUTION:
  10085.  Destruction is FINAL. There is no UNDO function. 
  10086.  
  10087.  
  10088. ΓòÉΓòÉΓòÉ 34.4. GPF010 ΓòÉΓòÉΓòÉ
  10089.  
  10090. Msg010
  10091.  
  10092.  Msg010    GPF010:  Delete this Menu and its children? 
  10093.  
  10094.  Press Ok to eliminate an object. This object and all its children will cease 
  10095.  to exist. 
  10096.  
  10097.   CAUTION:
  10098.  Destruction is FINAL. There is no UNDO function. 
  10099.  
  10100.  
  10101. ΓòÉΓòÉΓòÉ 34.5. GPF011 ΓòÉΓòÉΓòÉ
  10102.  
  10103. Msg011
  10104.  
  10105.  Msg011    GPF011:  Delete this Action and its children? 
  10106.  
  10107.  Press Ok to eliminate an object. This object and all its children will cease 
  10108.  to exist. 
  10109.  
  10110.   CAUTION:
  10111.  Destruction is FINAL. There is no UNDO function. 
  10112.  
  10113.  
  10114. ΓòÉΓòÉΓòÉ 34.6. GPF012 ΓòÉΓòÉΓòÉ
  10115.  
  10116. Msg012
  10117.  
  10118.  Msg012    GPF012:  Delete this help item and its children? 
  10119.  
  10120.  Press Ok to eliminate an object. This object and all its children will cease 
  10121.  to exist. 
  10122.  
  10123.   CAUTION:
  10124.  Destruction is FINAL. There is no UNDO function. 
  10125.  
  10126.  
  10127. ΓòÉΓòÉΓòÉ 34.7. GPF013 ΓòÉΓòÉΓòÉ
  10128.  
  10129. Msg013
  10130.  
  10131.  Msg013    GPF013:  Delete this 'Associate Data' and its children? 
  10132.  
  10133.  Press Ok to eliminate an object. This object and all its children will cease 
  10134.  to exist. 
  10135.  
  10136.   CAUTION:
  10137.  Destruction is FINAL. There is no UNDO function. 
  10138.  
  10139.  
  10140. ΓòÉΓòÉΓòÉ 34.8. GPF019 ΓòÉΓòÉΓòÉ
  10141.  
  10142. Msg019
  10143.  
  10144.  Msg019    GPF019:  Save the current File? 
  10145.  
  10146.  The following will occur based on the response to the file save prompt: 
  10147.  
  10148.  o If you answer CANCEL to the prompt, Gpf aborts the 'SAVE'. 
  10149.  o If you answer NO to the prompt, Gpf  discard any changes you may have made 
  10150.    to the current definition. 
  10151.  o If you answer YES to the prompt, Gpf will save the current definition to 
  10152.    disk. 
  10153.  
  10154.  
  10155. ΓòÉΓòÉΓòÉ 34.9. GPF023 ΓòÉΓòÉΓòÉ
  10156.  
  10157. Msg023
  10158.  
  10159.  Msg023    GPF023:  Delete this Message and its children? 
  10160.  
  10161.  Press Ok to eliminate an object. This object and all its children will cease 
  10162.  to exist. 
  10163.  
  10164.   CAUTION:
  10165.  Destruction is FINAL. There is no UNDO function. 
  10166.  
  10167.  
  10168. ΓòÉΓòÉΓòÉ 34.10. GPF025 ΓòÉΓòÉΓòÉ
  10169.  
  10170. Msg025
  10171.  
  10172.  Msg025    GPF025:  Delete this Object and its children? 
  10173.  
  10174.  Press Ok to eliminate an object. This object and all its children will cease 
  10175.  to exist. 
  10176.  
  10177.   CAUTION:
  10178.  Destruction is FINAL. There is no UNDO function. 
  10179.  
  10180.  
  10181. ΓòÉΓòÉΓòÉ 34.11. GPF026 ΓòÉΓòÉΓòÉ
  10182.  
  10183. Msg026
  10184.  
  10185.  Msg026    GPF026:  Delete this Presentation and its children? 
  10186.  
  10187.  Press Ok to eliminate an object. This object and all its children will cease 
  10188.  to exist. 
  10189.  
  10190.   CAUTION:
  10191.  Destruction is FINAL. There is no UNDO function. 
  10192.  
  10193.  
  10194. ΓòÉΓòÉΓòÉ 34.12. GPF036 ΓòÉΓòÉΓòÉ
  10195.  
  10196. Msg036
  10197.  
  10198.  Msg036    GPF036:  Delete the UserText object and its children? 
  10199.  
  10200.  Press Ok to eliminate an object. This object and all its children will cease 
  10201.  to exist. 
  10202.  
  10203.   CAUTION:
  10204.  Destruction is FINAL. There is no UNDO function. 
  10205.  
  10206.  
  10207. ΓòÉΓòÉΓòÉ 34.13. GPF038 ΓòÉΓòÉΓòÉ
  10208.  
  10209. Msg038
  10210.  
  10211.  Msg038    GPF038:  Before EXIT, save the current File? 
  10212.  
  10213.  The following will occur based on the response to the file save prompt: 
  10214.  
  10215.  o If you answer CANCEL to the prompt, Gpf aborts the shutdown. 
  10216.  o If you answer NO to the prompt, Gpf will exit and discard any changes you 
  10217.    may have made to the current definition. 
  10218.  o If you answer YES to the prompt, Gpf will save the current definition to 
  10219.    disk before exiting. 
  10220.  
  10221.  
  10222. ΓòÉΓòÉΓòÉ 34.14. GPF047 ΓòÉΓòÉΓòÉ
  10223.  
  10224. Msg047
  10225.  
  10226.  Msg047    GPF047:  Delete the UserControl object and its children? 
  10227.  
  10228.  Press Ok to eliminate an object. This object and all its children will cease 
  10229.  to exist. 
  10230.  
  10231.   CAUTION:
  10232.  Destruction is FINAL. There is no UNDO function. 
  10233.  
  10234.  
  10235. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10236.  
  10237. There can be no keys associated with this item. The Window Menu Option simply 
  10238. lists all existing windows, and is, of course, a dynamic list. The names 
  10239. appearing in the list are user-defined. 
  10240.  
  10241.  
  10242. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10243.  
  10244. The Action key allows the interface designer to define the actions which are to 
  10245. occur if and when the user activates a particular control, or the control goes 
  10246. through a phase change (such as initializing or dismissing a window.) 
  10247.  
  10248.  
  10249. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10250.  
  10251. This button exists and is active under two conditions: 
  10252.  
  10253.  o the control is capable of displaying DB information 
  10254.  o you have defined the application as being related to a DataBase, in the 
  10255.    properties screen (see File- Properties.) 
  10256.  Press this key to define which fields from which tables are to appear in the 
  10257.  control (listbox, etc), and the order in which they are to appear. 
  10258.  
  10259.  Note:  The columns may not line up between adjacent lines if a proportional 
  10260.         font is used. Switch to monospace fonts if alignment is desired, or 
  10261.         turn ON the Owner Draw option for the list (combo) box. 
  10262.  
  10263.  
  10264. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10265.  
  10266. Press the Cancel key to leave a screen and disregard changes to that screen. 
  10267.  
  10268. Note:  This will not cause the object being defined to vanish; you must use the 
  10269.        Destroy button to eliminate an object. 
  10270.  
  10271.  
  10272. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10273.  
  10274. Press Destroy to eliminate an object. This object and all its children will 
  10275. cease to exist. 
  10276.  
  10277. CAUTION:
  10278. Destruction is FINAL. There is no UNDO function. 
  10279.  
  10280.  
  10281. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10282.  
  10283. Press EntryHelp if you want to: 
  10284.  
  10285.  o define a help panel for the current object 
  10286.  o define an information message for this object, the message to appear at the 
  10287.    bottom of the parent window (which must have this field enabled.) 
  10288.  
  10289.  
  10290. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10291.  
  10292. The Help key promises further help for the particular screen you're in. 
  10293.  
  10294.  
  10295. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10296.  
  10297. The Ok button should be pressed if and when you are satisfied with all 
  10298. definitions or edits to this screen. Your changes are registered and you are 
  10299. returned to the previous level or screen. 
  10300.  
  10301.  
  10302. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  10303.  
  10304. The View/Modify... key is used to look at or edit some defintions or actions. A 
  10305. list item must be selected prior to pressing this button. Alternatively, you 
  10306. can achieve the same effect by simply double clicking on the list item.