home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / PRESPM.ZIP / FNTDEMO.INF (.txt) < prev    next >
OS/2 Help File  |  1991-04-15  |  20KB  |  724 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Usage Instructions ΓòÉΓòÉΓòÉ
  3.  
  4. How to Use the Contents 
  5.  
  6. (The following instructions are taken from the OS/2 online Command Reference.) 
  7.  
  8. When the Contents window first appears, some topics have a plus (+) sign beside 
  9. them. The plus sign indicates that additional topics are available. 
  10.  
  11. To expand the Contents if you are using a mouse, click on the plus sign.  If 
  12. you are using the keyboard, use the Up or Down Arrow key to highlight the 
  13. topic, and press the plus (+) key. For example, Keyword Instructions has a plus 
  14. sign beside it. To see the complete list of REXX keyword instructions, click on 
  15. the plus sign or highlight that topic and press the plus (+) key. 
  16.  
  17. To view a topic, double-click on the topic (or press the Up or Down Arrow key 
  18. to highlight the topic, and then press the Enter key). 
  19.  
  20. How to Obtain Additional Information 
  21.  
  22. After you select a topic, the information for that topic appears in a window. 
  23. You will notice that certain words in the text may be specially highlighted 
  24. (The default color for this special highlighting is green). These words are 
  25. links to additional information. If you are using a mouse, double-click on the 
  26. highlighted word.  If you are using a keyboard, press the Tab key to move to 
  27. the highlighted word, and then press the Enter key.  Additional information 
  28. will appear in a pop-up window. 
  29.  
  30. How to Use Action Bar Choices 
  31.  
  32. A number of choices are available for managing information presented in the 
  33. REXX Quick Reference. If you want to see more information about these choices, 
  34. click on the name of the choice (or press the Tab key to move to the choice and 
  35. press Enter). 
  36.  
  37.  Bookmark 
  38.          Allows you to set a placeholder so you can retrieve information of 
  39.          interest to you. (This choice is available from the Services 
  40.          pull-down). 
  41.  
  42.  Search 
  43.          Allows you to find occurrences of a word or phrase in the current 
  44.          topic, selected topics, or all topics. (This choice is available from 
  45.          the Services pull-down). 
  46.  
  47.  Print 
  48.          Allows you to print one or more topics. (This choice is available from 
  49.          the Services pull-down). 
  50.  
  51.  Copy 
  52.          Allows you to copy a topic you are viewing to a file you can edit. 
  53.          (This choice is available from the Services pull-down). 
  54.  
  55.  Options 
  56.          Allows you to change the way your Contents is displayed. 
  57.  
  58.  
  59. ΓòÉΓòÉΓòÉ 2. About this package ΓòÉΓòÉΓòÉ
  60.  
  61. This package contains (among other things) the C code for a DLL that enables 
  62. the use of any font (including monospaced ones) in EASEL listboxes. 
  63.  
  64. I originally changed fonts only in listboxes, and to do so I subclassed the 
  65. dialog procedure, and changed the listbox style to owner draw.  This works just 
  66. fine, but adds the nuisance of having to keep around instance data for each 
  67. listbox while not being able to use window words (in EASEL) to store it. 
  68.  
  69. With the advent of OS/2 1.2, I switched techniques for font manipulation;  I 
  70. employ the WinSetPresParam API, which does not require me to store instance 
  71. data on a per listbox basis.  Now I can change fonts in any dialog control.  I 
  72. can change colors, also, although unless the user is given some options to 
  73. change them this is not really CUA. 
  74.  
  75. The original font changing program was based on the ideas found in a program 
  76. called LBFONT that was written by Easel Corp. and given away at one of their 
  77. EASEL training classes, and a different program called LBFONT that was found on 
  78. BIX.  The program in this package bears no real resemblance to either of those; 
  79. parts of the logic are based on ideas in Charles Petzold's fontlist.exe 
  80. program, and the IBM 1.2 PTI sample program fonttest.exe.  This was all done 
  81. pre-1.3, pre-ATM.  It *does* not appear as though there is any way to specify 
  82. an outline font for use with WinSetPresParam.  I would appreciate hearing from 
  83. anyone who finds a way to do so. 
  84.  
  85. This package is released into the public domain; use it any way you like. I 
  86. would appreciate hearing of any errors or omissions that you find. 
  87.  
  88. Now, to satisfy the lawyers: no warranties, guarantees, etc. are implied, no 
  89. liability is assumed.  You break it and you own both halves. Any opinions 
  90. expressed herein are my own, not that of my employer or any vendor. 
  91.  
  92.  Brian Buck          23SEP90 
  93.  Internet            76666.60@Compuserve.COM 
  94.  Compuserve          76666,60 
  95.  Phone               (708) 620-5000 
  96.  
  97.  Trademark Information. 
  98.  
  99.  EASEL is a trademark of Easel Corporation. 
  100.  
  101.  OS/2 is a trademark of International Business Machines Corporation. 
  102.  
  103.  Presentation Manager is a trademark of International Business Machines 
  104.  Corporation. 
  105.  
  106.  
  107. ΓòÉΓòÉΓòÉ 3. What's in this package? ΓòÉΓòÉΓòÉ
  108.  
  109. The following sections detail the contents of this package. 
  110.  
  111.  
  112. ΓòÉΓòÉΓòÉ 3.1. Read.Me ΓòÉΓòÉΓòÉ
  113.  
  114. The Read.Me file just tells you how to view this online reference. 
  115.  
  116.  
  117. ΓòÉΓòÉΓòÉ 3.2. FntDemo.IPF ΓòÉΓòÉΓòÉ
  118.  
  119. FntDemo.IPF contains (in source form) the information you are viewing now. 
  120.  
  121. The Information Presentation Facility (IPF, also known as the Help Manager) 
  122. provides an undocumented but nonetheless supported method for creating 
  123. standalone online references like the one you are using now, or like the OS/2 
  124. Command Reference. 
  125.  
  126. You can use the IPF compiler to create modular online documentation for your 
  127. library of reusable code. It is possible to view multiple .INF files as a 
  128. composite book -- just look at how the IBM OS/2 1.2 PTI (Programming Tools and 
  129. Information, aka toolkit) organizes the online programming reference. 
  130.  
  131. How to compile 
  132.  
  133. To compile an IPF file into a standalone reference (an INF file), you must have 
  134. the PTI (1.2 toolkit) installed.  Use the following: 
  135.  
  136. ipfc yourfile.ipf /inf /cou=001 /codepage=850 /l=enu
  137.  
  138. When you include the /inf command line switch, you generate an .INF file rather 
  139. than the default .HLP file. 
  140.  
  141.  
  142. ΓòÉΓòÉΓòÉ 3.3. FntDemo.INF ΓòÉΓòÉΓòÉ
  143.  
  144. The FntDemo.INF file is the compiled form of the .IPF file for the online 
  145. reference. 
  146.  
  147. How to view To view this (or any other .INF file) you can simply type: 
  148.  
  149. view fntdemo.inf
  150.  
  151. from the command line of any OS/2 command session.  You must fully qualify the 
  152. name of the .INF file if it is not in your current directory.  You can also 
  153. install this in an OS/2 program group. 
  154.  
  155.  
  156. ΓòÉΓòÉΓòÉ 3.4. FntDemo.C ΓòÉΓòÉΓòÉ
  157.  
  158. The FntDemo.C file contains the source code for the FntDemo.DLL dynalink 
  159. library.  This library contains the subroutines: 
  160.  
  161.  o ChangeHANDLE_FontToPOINTSFACE_ 
  162.  o ChangeHANDLE_FontToDefault 
  163.  o MakeHANDLE_ForegroundCOLOR_ 
  164.  o MakeHANDLE_BackgroundCOLOR_ 
  165.  o MakeHANDLE_HiliteForegroundCOLOR_ 
  166.  o MakeHANDLE_HiliteBackgroundCOLOR_ 
  167.  o MakeHANDLE_DisabledForegroundCOLOR_ 
  168.  o MakeHANDLE_DisabledBackgroundCOLOR_ 
  169.  o MakeHANDLE_BorderCOLOR_ 
  170.  o ErrMsgFromChangeHANDLEFont 
  171.  o ErrMsgFromMakeHANDLECOLOR 
  172.  
  173.  Because these subroutines are intended for use in EASEL programs, an EASEL 
  174.  style nomenclature is used rather than C style.  The idea is that you would 
  175.  ideally want to be able to code: 
  176.  
  177.   change LB_MyListbox font to 10 "System Monospaced"
  178.  
  179.  But since EASEL is not fully object-oriented, you can't define new methods 
  180.  using the same syntax as the underlying language. So instead you code: 
  181.  
  182.   string FONT_10_SYSTEM_MONOSPACED is "10.System Monospaced"
  183.   string Handle
  184.   ...
  185.   copy handle of LB_MyListbox to Handle
  186.   call ChangeHANDLE_FontToPOINTSFACE_ ( Handle, FONT_10_SYSTEM_MONOSPACED )
  187.   if (errorlevel != 0) then
  188.       # handle errors
  189.       send errorlevel " "
  190.           ErrMsgFromChangeHANDLEFont ( errorlevel )
  191.           to errorlog
  192.       end if
  193.  
  194.  
  195. ΓòÉΓòÉΓòÉ 3.5. FntDemo.INC ΓòÉΓòÉΓòÉ
  196.  
  197. The FntDemo.INC file is the EASEL include file that contains the subroutine and 
  198. function definitions for the following routines: 
  199.  
  200.  o ChangeHANDLE_FontToPOINTSFACE_ 
  201.  o ChangeHANDLE_FontToDefault 
  202.  o MakeHANDLE_ForegroundCOLOR_ 
  203.  o MakeHANDLE_BackgroundCOLOR_ 
  204.  o MakeHANDLE_HiliteForegroundCOLOR_ 
  205.  o MakeHANDLE_HiliteBackgroundCOLOR_ 
  206.  o MakeHANDLE_DisabledForegroundCOLOR_ 
  207.  o MakeHANDLE_DisabledBackgroundCOLOR_ 
  208.  o MakeHANDLE_BorderCOLOR_ 
  209.  o ErrMsgFromChangeHANDLEFont 
  210.  o ErrMsgFromMakeHANDLECOLOR 
  211.  
  212.  
  213. ΓòÉΓòÉΓòÉ 3.6. FntDemo.EAL ΓòÉΓòÉΓòÉ
  214.  
  215. The FntDemo.EAL file contains a trivial EASEL program that simply demonstrates 
  216. the use of the FntDemo subroutines. 
  217.  
  218.  
  219. ΓòÉΓòÉΓòÉ 3.7. FntDemo.EBI ΓòÉΓòÉΓòÉ
  220.  
  221. The FntDemo.EBI file contains the compiled form of the FntDemo.EAL program. 
  222.  
  223.  
  224. ΓòÉΓòÉΓòÉ 3.8. FntDemo.DEF ΓòÉΓòÉΓòÉ
  225.  
  226. The FntDemo.DEF file is the link definition file for the FntDemo.DLL dynalink 
  227. library. 
  228.  
  229.  
  230. ΓòÉΓòÉΓòÉ 3.9. FntDemo.DLL ΓòÉΓòÉΓòÉ
  231.  
  232. The FntDemo.DLL file contains the compiled and linked Dynalink library required 
  233. for EASEL programs to use the subroutines.  This file must be in a directory 
  234. that is specified in your LIBPATH in your CONFIG.SYS file.  Rather than 
  235. dedicate one directory to contain DLLs, I find it convenient to include a "." 
  236. as the first thing in my LIBPATH.  This means that the current directory is 
  237. searched first for DLLs.  A variation is to specify .\DLL; For example: 
  238.  
  239. LIBPATH=.;.\DLL;C:\OS2\DLL;E:\EASEL-EE\DLL;...etc.
  240.  
  241.  
  242. ΓòÉΓòÉΓòÉ 3.10. FntDemo.CMD ΓòÉΓòÉΓòÉ
  243.  
  244. Why a .CMD file and not a make file? Because the IBM C/2 Make and the Microsoft 
  245. C Make are so different that it is too confusing to provide only one, and too 
  246. much work for me to provide both.  A command file is not ambiguous. 
  247.  
  248.  
  249. ΓòÉΓòÉΓòÉ 3.11. MakeINF.CMD ΓòÉΓòÉΓòÉ
  250.  
  251. Compiles the FntDemo.IPF file with the IPF compiler.  It compiles it into the 
  252. FntDemo.INF file. 
  253.  
  254.  
  255. ΓòÉΓòÉΓòÉ 4. OS/2 1.2 Fonts ΓòÉΓòÉΓòÉ
  256.  
  257. The following sections provide some information on the fonts that are 
  258. distributed with OS/2 1.2 and are by default installed. 
  259.  
  260. Sources of info are visual comparisons of info from: 
  261.  
  262.  fontlist.exe (Petzold) 
  263.  fonttest.exe (IBM 1.2 PTI) 
  264.  system editor (1.2) 
  265.  
  266.  
  267. ΓòÉΓòÉΓòÉ 4.1. VGA Fonts ΓòÉΓòÉΓòÉ
  268.  
  269.  Font Device Res = 96 x 96
  270.  Cell := Average character width
  271.     x Max baseline extent
  272.  
  273. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  274. Γöé                    ΓöéCharacterΓöé PointΓöé
  275. ΓöéFace name           Γöé  Cell   Γöé Size Γöé
  276. Γö£ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓö╝ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓö╝ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓöñ
  277. ΓöéSystem Proportional Γöé  6 x 16 Γöé  10  Γöé
  278. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  279. Γöé  System Monospaced Γöé  9 x 20 Γöé  12  Γöé
  280. Γöé  System Monospaced Γöé  8 x 16 Γöé  10  Γöé
  281. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  282. Γöé            Courier Γöé  8 x 13 Γöé   8  Γöé
  283. Γöé            Courier Γöé  9 x 16 Γöé  10  Γöé
  284. Γöé            Courier Γöé 12 x 20 Γöé  12  Γöé
  285. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  286. Γöé               Helv Γöé  5 x 13 Γöé   8  Γöé
  287. Γöé               Helv Γöé  6 x 16 Γöé  10  Γöé
  288. Γöé               Helv Γöé  7 x 20 Γöé  12  Γöé
  289. Γöé               Helv Γöé  8 x 24 Γöé  14  Γöé
  290. Γöé               Helv Γöé 11 x 29 Γöé  18  Γöé
  291. Γöé               Helv Γöé 14 x 37 Γöé  24  Γöé
  292. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  293. Γöé            Tms Rmn Γöé  4 x 13 Γöé   8  Γöé
  294. Γöé            Tms Rmn Γöé  5 x 16 Γöé  10  Γöé
  295. Γöé            Tms Rmn Γöé  6 x 19 Γöé  12  Γöé
  296. Γöé            Tms Rmn Γöé  7 x 21 Γöé  14  Γöé
  297. Γöé            Tms Rmn Γöé 10 x 27 Γöé  18  Γöé
  298. Γöé            Tms Rmn Γöé 13 x 35 Γöé  24  Γöé
  299. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  300.  
  301.  
  302. ΓòÉΓòÉΓòÉ 4.2. EGA Fonts ΓòÉΓòÉΓòÉ
  303.  
  304.  Font Device Res = 96 x 72
  305.  Cell := Average character width
  306.     x Max baseline extent
  307.  
  308. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  309. Γöé                    ΓöéCharacterΓöé
  310. ΓöéFace name           Γöé  Cell   Γöé
  311. Γö£ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓö╝ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓöñ
  312. Γöé  System Monospaced Γöé  8 x 12 Γöé
  313. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  314. Γöé            Courier Γöé  6 x 12 Γöé
  315. Γöé            Courier Γöé  7 x 15 Γöé
  316. Γöé            Courier Γöé  8 x 10 Γöé
  317. Γöé            Courier Γöé  8 x 18 Γöé
  318. Γöé            Courier Γöé  9 x 12 Γöé
  319. Γöé            Courier Γöé 12 x 10 Γöé
  320. Γöé            Courier Γöé 12 x 15 Γöé
  321. Γöé            Courier Γöé 10 x 22 Γöé
  322. Γöé            Courier Γöé 14 x 28 Γöé
  323. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  324. Γöé               Helv Γöé  5 x 10 Γöé
  325. Γöé               Helv Γöé  6 x 12 Γöé
  326. Γöé               Helv Γöé  7 x 15 Γöé
  327. Γöé               Helv Γöé  8 x 18 Γöé
  328. Γöé               Helv Γöé 10 x 22 Γöé
  329. Γöé               Helv Γöé 14 x 28 Γöé
  330. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  331. Γöé            Tms Rmn Γöé  4 x 10 Γöé
  332. Γöé            Tms Rmn Γöé  5 x 12 Γöé
  333. Γöé            Tms Rmn Γöé  6 x 15 Γöé
  334. Γöé            Tms Rmn Γöé  7 x 16 Γöé
  335. Γöé            Tms Rmn Γöé 10 x 20 Γöé
  336. Γöé            Tms Rmn Γöé 13 x 26 Γöé
  337. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  338.  
  339.  
  340. ΓòÉΓòÉΓòÉ 4.3. CGA Fonts ΓòÉΓòÉΓòÉ
  341.  
  342.  Font Device Res = 96 x 48
  343.  Cell := Average character width
  344.     x Max baseline extent
  345.  
  346. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  347. Γöé                    ΓöéCharacterΓöé
  348. ΓöéFace name           Γöé  Cell   Γöé
  349. Γö£ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓö╝ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓöñ
  350. Γöé  System Monospaced Γöé  8 x  8 Γöé
  351. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  352. Γöé            Courier Γöé  8 x  7 Γöé
  353. Γöé            Courier Γöé  9 x  8 Γöé
  354. Γöé            Courier Γöé 12 x 10 Γöé
  355. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  356. Γöé               Helv Γöé  5 x  6 Γöé
  357. Γöé               Helv Γöé  6 x  8 Γöé
  358. Γöé               Helv Γöé  7 x 10 Γöé
  359. Γöé               Helv Γöé  8 x 12 Γöé
  360. Γöé               Helv Γöé 11 x 15 Γöé
  361. Γöé               Helv Γöé 14 x 19 Γöé
  362. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  363. Γöé            Tms Rmn Γöé  4 x  6 Γöé
  364. Γöé            Tms Rmn Γöé  6 x  8 Γöé
  365. Γöé            Tms Rmn Γöé  7 x 10 Γöé
  366. Γöé            Tms Rmn Γöé  7 x 11 Γöé
  367. Γöé            Tms Rmn Γöé 10 x 14 Γöé
  368. Γöé            Tms Rmn Γöé 14 x 18 Γöé
  369. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  370.  
  371.  
  372. ΓòÉΓòÉΓòÉ 4.4. 8514 Fonts ΓòÉΓòÉΓòÉ
  373.  
  374.  Font Device Res = 120 x 72  Cell := Average character width     x Max baseline 
  375. extent 
  376.  
  377. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  378. Γöé                    ΓöéCharacterΓöé
  379. ΓöéFace name           Γöé  Cell   Γöé
  380. Γö£ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓö╝ΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓòÉΓöñ
  381. Γöé            Courier Γöé10 x 10  Γöé
  382. Γöé            Courier Γöé12 x 12  Γöé
  383. Γöé            Courier Γöé15 x 15  Γöé
  384. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  385. Γöé               Helv Γöé 6 x 10  Γöé
  386. Γöé               Helv Γöé 7 x 12  Γöé
  387. Γöé               Helv Γöé 9 x 15  Γöé
  388. Γöé               Helv Γöé10 x 18  Γöé
  389. Γöé               Helv Γöé13 x 22  Γöé
  390. Γöé               Helv Γöé18 x 28  Γöé
  391. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  392. Γöé            Tms Rmn Γöé 6 x 10  Γöé
  393. Γöé            Tms Rmn Γöé 7 x 12  Γöé
  394. Γöé            Tms Rmn Γöé 9 x 15  Γöé
  395. Γöé            Tms Rmn Γöé10 x 16  Γöé
  396. Γöé            Tms Rmn Γöé13 x 21  Γöé
  397. Γöé            Tms Rmn Γöé17 x 27  Γöé
  398. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  399.  
  400.  
  401. ΓòÉΓòÉΓòÉ 5. EASEL Subroutines, Functions ΓòÉΓòÉΓòÉ
  402.  
  403. The following sections describe the EASEL subroutines and functions provided by 
  404. the FntDemo package through the FntDemo.INC and FntDemo.DLL files. 
  405.  
  406. The convention used for naming the subroutines corresponds as closely as 
  407. possible with the nomenclature used in the base EASEL language, and in the 
  408. descriptions of EASEL syntax.  A subroutine or function name consists of 
  409. several words.  Words that are descriptive of the function appear with the 
  410. first letter capitalized, and the rest in lower case. Words that represent a 
  411. parameter to be passed appear in all upper case, and are suffixed with an 
  412. underscore character.  For example, in the subroutine name 
  413. ChangeHANDLE_FontToPOINTSFACE_ the words that describe the function are Change, 
  414. Font, and To. The words that represent the parameters to be passed are HANDLE_ 
  415. and POINTSFACE_. 
  416.  
  417. This naming convention seems to mesh best with the native EASEL language 
  418. syntax. 
  419.  
  420.  
  421. ΓòÉΓòÉΓòÉ 5.1. ChangeHANDLE_FontToPOINTSFACE_ ΓòÉΓòÉΓòÉ
  422.  
  423. Changes the font used in displaying a dialog control.  Any EASEL control object 
  424. can be specified. 
  425.  
  426. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  427. successful change, and to a non-zero value for an unsuccessful change.  The 
  428. error message for an unsuccessful change can be retrieved with the 
  429. ErrMsgFromChangeHANDLEFont function. 
  430.  
  431. subroutine ChangeHANDLE_FontToPOINTSFACE_
  432.     ( integer   : Handle                    # input   handle of CONTROL
  433.     , string    : PointsDotFaceName         # input   e.g., "12.Helv"
  434.     )                                       #
  435.     library "FNTDEMO"                       # sets errorlevel
  436.  
  437.  
  438. ΓòÉΓòÉΓòÉ 5.2. ChangeHANDLE_FontToDefault ΓòÉΓòÉΓòÉ
  439.  
  440. Restores the dialog control's font to its original font. 
  441.  
  442. subroutine ChangeHANDLE_FontToDefault
  443.     ( integer   : Handle                    # input   handle of CONTROL
  444.     )                                       #
  445.     library "FNTDEMO"                       # sets errorlevel
  446.  
  447.  
  448. ΓòÉΓòÉΓòÉ 5.3. MakeHANDLE_PP_COLOR_ ΓòÉΓòÉΓòÉ
  449.  
  450. This is primarily an internal routine for use by the other EASEL 
  451. MakeHANDLE_<xxx>COLOR_ subroutines, but it can be called directly using the PP_ 
  452. defined constants from the 'C' header file PMWIN.H. Only the PP_ constants for 
  453. color changes should be used; no error checking is performed on the passed PP_ 
  454. constant. 
  455.  
  456. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  457. successful change, and to a non-zero value for an unsuccessful change.  The 
  458. error message for an unsuccessful change can be retrieved with the 
  459. ErrMsgFromMakeHANDLECOLOR function. 
  460.  
  461. subroutine MakeHANDLE_PP_COLOR_
  462.     ( integer   : Handle                    # input   handle of CONTROL
  463.     , integer   : PresParamConstant         # input   e.g., PP_BORDERCOLOR
  464.     , integer   : ColorNumber               # input   e.g., 1
  465.     )                                       #
  466.     library "FNTDEMO"                       # sets errorlevel
  467.  
  468.  
  469. ΓòÉΓòÉΓòÉ 5.4. MakeHANDLE_ForegroundCOLOR_ ΓòÉΓòÉΓòÉ
  470.  
  471. Changes the foreground color of the specified dialog control by changing the 
  472. value of its PP_FOREGROUNDCOLORINDEX presentation parameter. 
  473.  
  474. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  475. successful change, and to a non-zero value for an unsuccessful change.  The 
  476. error message for an unsuccessful change can be retrieved with the 
  477. ErrMsgFromMakeHANDLECOLOR function. 
  478.  
  479. subroutine MakeHANDLE_ForegroundCOLOR_
  480.     ( integer   : Handle                    # input   handle of CONTROL
  481.     , integer   : ColorNumber               # input   e.g., 1
  482.     )                                       #
  483.     library "FNTDEMO"                       # sets errorlevel
  484.  
  485.  
  486. ΓòÉΓòÉΓòÉ 5.5. MakeHANDLE_BackgroundCOLOR_ ΓòÉΓòÉΓòÉ
  487.  
  488. Changes the background color of the specified dialog control by changing the 
  489. value of its PP_BACKGROUNDCOLORINDEX presentation parameter. 
  490.  
  491. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  492. successful change, and to a non-zero value for an unsuccessful change.  The 
  493. error message for an unsuccessful change can be retrieved with the 
  494. ErrMsgFromMakeHANDLECOLOR function. 
  495.  
  496. subroutine MakeHANDLE_BackgroundCOLOR_
  497.     ( integer   : Handle                    # input   handle of CONTROL
  498.     , integer   : ColorNumber               # input   color, e.g., 1
  499.     )                                       #
  500.     library "FNTDEMO"                       # sets errorlevel
  501.  
  502.  
  503. ΓòÉΓòÉΓòÉ 5.6. MakeHANDLE_HiliteForegroundCOLOR_ ΓòÉΓòÉΓòÉ
  504.  
  505. Changes the hilite foreground color of the specified dialog control by changing 
  506. the value of its PP_HILITEFOREGROUNDCOLORINDEX presentation parameter. 
  507.  
  508. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  509. successful change, and to a non-zero value for an unsuccessful change.  The 
  510. error message for an unsuccessful change can be retrieved with the 
  511. ErrMsgFromMakeHANDLECOLOR function. 
  512.  
  513. subroutine MakeHANDLE_HiliteForegroundCOLOR_
  514.     ( integer   : Handle                    # input   handle of CONTROL
  515.     , integer   : ColorNumber               # input   e.g., 1
  516.     )                                       #
  517.     library "FNTDEMO"                       # sets errorlevel
  518.  
  519.  
  520. ΓòÉΓòÉΓòÉ 5.7. MakeHANDLE_HiliteBackgroundCOLOR_ ΓòÉΓòÉΓòÉ
  521.  
  522. Changes the hilite background color of the specified dialog control by changing 
  523. the value of its PP_HILITEBACKGROUNDCOLORINDEX presentation parameter. 
  524.  
  525. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  526. successful change, and to a non-zero value for an unsuccessful change.  The 
  527. error message for an unsuccessful change can be retrieved with the 
  528. ErrMsgFromMakeHANDLECOLOR function. 
  529.  
  530. subroutine MakeHANDLE_HiliteBackgroundCOLOR_
  531.     ( integer   : Handle                    # input   handle of CONTROL
  532.     , integer   : ColorNumber               # input   color, e.g., 1
  533.     )                                       #
  534.     library "FNTDEMO"                       # sets errorlevel
  535.  
  536.  
  537. ΓòÉΓòÉΓòÉ 5.8. MakeHANDLE_DisabledForegroundCOLOR_ ΓòÉΓòÉΓòÉ
  538.  
  539. Changes the disabled background color of the specified dialog control by 
  540. changing the value of its PP_DISABLEDBACKGROUNDCOLORINDEX presentation 
  541. parameter. 
  542.  
  543. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  544. successful change, and to a non-zero value for an unsuccessful change.  The 
  545. error message for an unsuccessful change can be retrieved with the 
  546. ErrMsgFromMakeHANDLECOLOR function. 
  547.  
  548. subroutine MakeHANDLE_DisabledForegroundCOLOR_
  549.     ( integer   : Handle                    # input   handle of CONTROL
  550.     , integer   : ColorNumber               # input   e.g., 1
  551.     )                                       #
  552.     library "FNTDEMO"                       # sets errorlevel
  553.  
  554.  
  555. ΓòÉΓòÉΓòÉ 5.9. MakeHANDLE_DisabledBackgroundCOLOR_ ΓòÉΓòÉΓòÉ
  556.  
  557. Changes the disabled background color of the specified dialog control by 
  558. changing the value of its PP_DISABLEDBACKGROUNDCOLORINDEX presentation 
  559. parameter. 
  560.  
  561. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  562. successful change, and to a non-zero value for an unsuccessful change.  The 
  563. error message for an unsuccessful change can be retrieved with the 
  564. ErrMsgFromMakeHANDLECOLOR function. 
  565.  
  566. subroutine MakeHANDLE_DisabledBackgroundCOLOR_
  567.     ( integer   : Handle                    # input   handle of CONTROL
  568.     , integer   : ColorNumber               # input   color, e.g., 1
  569.     )                                       #
  570.     library "FNTDEMO"                       # sets errorlevel
  571.  
  572.  
  573. ΓòÉΓòÉΓòÉ 5.10. MakeHANDLE_BorderCOLOR_ ΓòÉΓòÉΓòÉ
  574.  
  575. Changes the border color of the specified dialog control by changing the value 
  576. of its PP_BORDERCOLORINDEX presentation parameter. 
  577.  
  578. This subroutine sets the builtin EASEL errorlevel function to zero for a 
  579. successful change, and to a non-zero value for an unsuccessful change.  The 
  580. error message for an unsuccessful change can be retrieved with the 
  581. ErrMsgFromMakeHANDLECOLOR function. 
  582.  
  583. subroutine MakeHANDLE_BorderCOLOR_
  584.     ( integer   : Handle                    # input   handle of CONTROL
  585.     , integer   : ColorNumber               # input   e.g., 1
  586.     )                                       #
  587.     library "FNTDEMO"                       # sets errorlevel
  588.  
  589.  
  590. ΓòÉΓòÉΓòÉ 5.11. ErrMsgFromChangeHANDLEFont ΓòÉΓòÉΓòÉ
  591.  
  592. Returns an error message associated with the given errorlevel number passed 
  593. from EASEL.  It is assumed that: 
  594.  
  595.   1. the errorlevel represents an errorlevel due to the 
  596.      ChangeHANDLE_FontToPOINTSFACE_  call. 
  597.   2. no other PM Winxxx errors have occurred between the 
  598.      ChangeHANDLE_FontToPOINTSFACE_  call and this call. 
  599.  
  600.   function   ErrMsgFromChangeHANDLEFont
  601.       ( integer   : Errorlevel                # input   errorlevel
  602.       )
  603.       returns string                          # output  error message
  604.       library "FNTDEMO"                       #
  605.  
  606.  
  607. ΓòÉΓòÉΓòÉ 5.12. ErrMsgFromMakeHANDLECOLOR ΓòÉΓòÉΓòÉ
  608.  
  609. Returns an error message associated with the given errorlevel number passed 
  610. from EASEL.  It is assumed that: 
  611.  
  612.   1. the errorlevel represents an errorlevel due to one of the 
  613.      MakeHANDLE_<xxx>COLOR_ calls. 
  614.   2. no other PM Winxxx errors have occurred between the MakeHANDLE_<xxx>COLOR_ 
  615.      call and this call. 
  616.  
  617.   function   ErrMsgFromMakeHANDLEColor
  618.       ( integer   : Errorlevel                # input   errorlevel
  619.       )
  620.       returns string                          # output  error message
  621.       library "FNTDEMO"                       #
  622.  
  623.  
  624. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  625.  
  626. BookMark 
  627.  
  628. When you place a bookmark on a topic, it is added to a list of bookmarks you 
  629. have previously set.  You can view the list, and you can remove one or all 
  630. bookmarks from the list.  If you have not set any bookmarks, the list is empty. 
  631.  
  632. To set a bookmark, do the following: 
  633.  
  634.   1. Select a topic from the Contents. 
  635.  
  636.   2. When that topic appears, choose the Bookmark option from the Services 
  637.      pull-down. 
  638.  
  639.   3. If you want to change the name used for the bookmark, type the new name in 
  640.      the field. 
  641.  
  642.   4. Click on the Place radio button (or press the Up or Down Arrow key to 
  643.      select it) 
  644.  
  645.   5. Click on OK (or select it and press Enter). The bookmark is then added to 
  646.      the bookmark list. 
  647.  
  648.  
  649. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  650.  
  651. Search 
  652.  
  653. You can specify a word or phrase to be searched.  You can also limit the search 
  654. to a set of topics by first marking the topics on the Contents list. 
  655.  
  656. To search for a word or phrase in all topics, do the following: 
  657.  
  658.   1. Choose the Search option from the Services pull-down. 
  659.  
  660.   2. Type the word or words to be searched. 
  661.  
  662.   3. Click on All sections (or press the Up or Down Arrow keys to select it) 
  663.  
  664.   4. Click on Search (or select it and press Enter) to begin the search. 
  665.  
  666.   5. The list of topics where the word or phrase appears is displayed. If only 
  667.      one topic contains the word or phrase, a window containing that topic 
  668.      appears. 
  669.  
  670.  
  671. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  672.  
  673. Print 
  674.  
  675. You can print one or more topics.  You can also print a set of topics by first 
  676. marking the topics on the Contents list. 
  677.  
  678. To print the document Contents list, do the following: 
  679.  
  680.   1. Choose Print from the Services pull-down. 
  681.  
  682.   2. Click on Contents (or press the Up or Down Arrow key to select it) 
  683.  
  684.   3. Click on Print (or select it and press Enter). 
  685.  
  686.   4. The Contents list is printed on your printer. 
  687.  
  688.  
  689. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  690.  
  691. Copy 
  692.  
  693. You can copy a topic you are viewing into a temporary file named TEXT.TMP.  You 
  694. can later edit that file by using the editor of your choice. 
  695.  
  696. To copy a topic, do the following: 
  697.  
  698.   1. Expand the Contents list and select a topic. 
  699.  
  700.   2. When the topic appears, choose Copy to file from the Services pull-down. 
  701.  
  702.   3. The system puts the text pertaining to that topic in the temporary 
  703.      TEXT.TMP file. 
  704.  "p.For information on one of the other choices in the Services pull-down, 
  705.  highlight the choice and press the F1 key. 
  706.  
  707.  
  708. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  709.  
  710. Options 
  711.  
  712. You can control the appearance of the Contents list. 
  713.  
  714. To expand the Contents and show all levels for all topics, choose Expand all 
  715. from the Options pull-down. You can also press the Ctrl and * keys together. 
  716.  
  717. For information on one of the other choices in the Options pull-down, highlight 
  718. the choice and press the F1 key. 
  719.  
  720.  
  721. ΓòÉΓòÉΓòÉ <hidden>  ΓòÉΓòÉΓòÉ
  722.  
  723. IBM Level 2 says that the method for creating standalone references will be 
  724. documented in a future release, and is supported.