home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hdk11l.zip / HDKLIB.DOC < prev    next >
Text File  |  1994-01-08  |  14KB  |  308 lines

  1.  
  2.  ╔══════════════════════════════════════════════════════════════════════════╗
  3.  ║                                                                          ║
  4.  ║                               HyperAct, Inc.                             ║
  5.  ║                               P.O.Box. 5517                              ║
  6.  ║                         Coralville IA 52241 U.S.A                        ║
  7.  ║                          Compuserve - 76350,333                          ║
  8.  ║                        Phone/Fax - (319) 351-8413                        ║
  9.  ║                                                                          ║
  10.  ╚══════════════════════════════════════════════════════════════════════════╝ 
  11.  
  12. *******************************************************************************
  13. *                                   HDKLIB                                    *
  14. * HLPDK V11.0+ System Library Documentation.                                  *
  15. * Last Update - Jan. 08, 1994. (c) 1993, 94 HyperAct Inc.                     *
  16. * Author : Ron Loewy                                                          *
  17. *******************************************************************************
  18.  
  19.  HLPDK V11.0+ System Extention Library.
  20.  
  21.  "Write Once, Help Many!"
  22.       
  23. *******************************************************************************
  24. *                                Introduction                                 *
  25. *******************************************************************************
  26.  
  27. HDKLIB is an extention library to HLPDK that adds functionality to
  28. the HLPDK package, by including special "User Link Templates" that add support
  29. for special links, special graphics, enhanced text attributes and more.
  30.  
  31. HDKLIB uses the HLPDK .USERLINK statement to add functionality to the HLPDK
  32. system, and offer simple methods to create graphic links, normal text links,
  33. 256 color bitmap support, video, CDAudio, Multimedia MCI interface etc ..
  34.  
  35. WINHELP users have access to the complete macro API, using !xxx user links.
  36.  
  37. *******************************************************************************
  38. *                                  Warranty                                   *
  39. *******************************************************************************
  40.  
  41. There is no warranty what so ever, The package is supplied as is,
  42. The distributor (HyperAct Inc.), or the author (Loewy Ron), are not, 
  43. and will not be responsible for any damages, lost profits, 
  44. or inconveniences caused by the use, or inability to use this package. 
  45. The use of the program is at your own risk. 
  46. By using (or attempting to use) the package you agree to this.
  47.  
  48. *******************************************************************************
  49. *                                Distribution                                 *
  50. *******************************************************************************
  51.  
  52. HDKLIB is free to registered users of HLPDK. If you are not a HLPDK registered
  53. user, you are allowed to evaluate HLPDK and HDKLIB for a reasonable amount of
  54. time (Up to 1 Month).
  55.  
  56. Please consult the HLPDK.DOC and HLPDK.REG files that come with the evaluation
  57. package of HLPDK.
  58.  
  59. *******************************************************************************
  60. *                                   Contact                                   *
  61. *******************************************************************************
  62.  
  63. Please contact :
  64.  
  65.         HyperAct Inc.  
  66.         P.O.Box 5517
  67.         Coralville IA 52241
  68.         U.S.A
  69.  
  70.         E-Mail  : Compuserve - 76350,333
  71.         Phone   : (319) 351-8413
  72.            
  73. To contact the author directly please write to : 
  74.  
  75.         Loewy Ron
  76.  
  77.         E-Mail  : Compuserve - 100274,162
  78.  
  79. *******************************************************************************
  80. *                                    Setup                                    *
  81. *******************************************************************************
  82.  
  83. Copy the files to the directory you use to keep HLPDK.
  84.  
  85. Every help/hypertext/hypermedia database you use with HDKLIB should include
  86. a line of the format :
  87.  
  88. .include [d:\path\to\hdklib-directory\]HDKLIB.HDF
  89.  
  90. and all the HDKLIB functions are available.
  91.  
  92. *******************************************************************************
  93. *                                  Operation                                  *
  94. *******************************************************************************
  95.  
  96. After you have .INCLUDEd the HDKLIB.HDF library in your HDF source, you
  97. can use the following NEW functions and templates :
  98.  
  99. winHelp
  100. -------
  101.  
  102. Text Attributes :
  103.  
  104. boldText        - Display Text in Bold.     ~Text to display~boldText~
  105. italicText      - Display Text in Italic    ~Text to display~italicText~
  106. underlineText   - Display Text underlined   ~Text to display~underlineText~
  107. boldItalicText  - Display Bold Italic Text  ~Text to display~boldItalicText~
  108. fontText        - Display Text in font X    ~Text in font 3~fontText(3)~
  109.  
  110. Links :
  111.  
  112. NormalTextLink  - Link not underlined       ~Click Here~NormalTextLink(linkId)~
  113. NormalTextPopup - Popup not underlined      ~Click Here~NormalTextPopup(popupId)~
  114.  
  115. graphicLink     - Link connected to bitmap  ~Text~graphicLink(myBmp LinkId)~
  116.                   Should declare a .GRAPHIC myBmp c:\..\myfile.bmp
  117. graphicPopup    - Popup connected to bitmap ~Text~graphicPopup(myBmp PopupId)
  118.                   Should declared a .GRAPHIC myBmp c:\..\myfile.bmp
  119.  
  120.  
  121. Macros :
  122.  
  123. Complete WINHELP macro API reference is provided, if there is a macro such
  124. as the About() WINHELP macro, you can rfer to it with the !about user link.
  125.  
  126. e.g. - Using the ExecProgram WINHELP macro, to start NOTEPAD.EXE in minimized
  127.        mode can be used with !execProgram(notepad.exe 2)
  128.  
  129. For the complete macro reference, please consult the WINHELP macro 
  130. documentation in the programming reference guide that came with your
  131. development package, or the Microsoft WHAG package.
  132.  
  133. WINHELP Macros Quick Referece -
  134.  
  135. About                - Displays the About dialog box 
  136.                       e.g. ~text~!about~      
  137. AddAccelerator        - Assigns a macro to an accelerator key 
  138.                       e.g. ~text~!addAccelerator(0x73 7 'About()')~
  139. Annotate        - Displays Annotation dialog box 
  140.                       e.g. ~text~!annotate~
  141. AppendItem        - Appends a menu item 
  142.                       e.g. ~text~!appendItem(ID_MENU ID_ITEM &Item 'JI("","TOP")'~
  143. Back                - Displays previous topic in the history list 
  144.                       e.g. ~text~!back~
  145. BookmarkDefine        - Displays the Define dialog box 
  146.                       e.g. ~text~!bookmarkDefine~
  147. BookmarkMore        - Displays the More dialog box 
  148.                       e.g. ~text~!bookmarkMore~
  149. BrowseButtons        - Adds browse buttons 
  150.                       e.g. ~text~!browseButtons~
  151. ChangeButtonBinding - Assigns a macro to a button 
  152.                       e.g. ~text~!ChangeButtonBinding(btn_contents 'JI("","NEWTOP")')~
  153. ChangeItemBinding   - Assigns a macro to a menu item 
  154.                       e.g. ~text~!changeItemBinding(DISP_ABOUT About())~
  155. CheckItem        - Checks a menu item 
  156.                       e.g. ~text~!checkItem(ID_ITEM)~
  157. CloseWindow        - Closes a window 
  158.                       e.g. ~text~!closeWindow(ID_WIN)~
  159. Contents        - Displays the Contents topic                             
  160.                       e.g. ~text~!contents~
  161. CopyDialog        - Displays the Copy dialog box 
  162.                       e.g. ~text~!copyDialog~
  163. CopyTopic        - Copies current topic to the clipboard 
  164.                       e.g. ~text~!copyTopic~
  165. CreateButton        - Adds a new button to the button bar 
  166.                       e.g. ~text~!createButton(ID_BUTTON BUT_NAME JI("","TOP")~
  167. DeleteItem        - Removes a menu item 
  168.                       e.g. ~text~!deleteItem(ID_ITEM)~
  169. DeleteMark        - Deletes a text marker 
  170.                       e.g. ~text~!deleteMark(Marker)~
  171. DestroyButton        - Removes a button from the button bar 
  172.                       e.g. ~text~!destroyButton(ID_BUTTON)~
  173. DisableButton        - Disables a button 
  174.                       e.g. ~text~!disableButton(ID_BUTTON)~
  175. DisableItem        - Disables a menu item 
  176.                       e.g. ~text~!disableItem(ID_ITEM)~
  177. EnableButton        - Enables a button 
  178.                       e.g. ~text~!enableButton(ID_BUTTON)~
  179. EnableItem        - Enables a menu item 
  180.                       e.g. ~text~!enableItem(ID_ITEM)~
  181. ExecProgram        - Executes a program 
  182.                       e.g. ~text~!execProgram(clock.exe 0)~
  183. Exit                - Exits  
  184.                       e.g. ~text~!exit~
  185. FileOpen        - Displays the Open dialog box 
  186.                       e.g. ~text~!fileOpen~
  187. FocusWindow        - Changes the focus window 
  188.                       e.g. ~text~!focusWindow(ID_WIN)~
  189. GoToMark            - Jumps to a marker 
  190.                       e.g. ~text~!gotoMark(MARKER)~
  191. HelpOn                - Displays the Help on Using topic 
  192.                       e.g. ~text~!helpOn~
  193. HelpOnTop           - Toggles on-top state of help 
  194.                       e.g. ~text~!helpOnTop~
  195. History                - Displays the history list 
  196.                       e.g. ~text~!history~
  197. IfThen                - Executes macro if marker exists 
  198.                       e.g. ~text~!ifThen(MARKER 'JI("","TOP")')~
  199. IfThenElse        - Executes one of two macros if marker exists 
  200.                       e.g. ~text~!ifThenElse(Marker MACROTRUE MACROFALSE)~
  201. InsertItem        - Inserts a menu item 
  202.                       e.g. ~text~!insertItem(ID_MENU ID_ITEM &Item MACRO 3)~
  203. InsertMenu        - Inserts a new menu 
  204.                       e.g. ~text~!insertMenu(ID_MENU &Menu 2)~
  205. IsMark                - Tests if a marker is set 
  206.                       e.g. ~text~!ismark(MARKER)~
  207. JumpContents        - Jumps to the Contents topic
  208.                       e.g. ~text~!JumpContents(FILENAME)~ 
  209. JumpContext        - Jumps to the specified context 
  210.                       e.g. ~text~jumpContext(FILENAME TOP_ID)~
  211. JumpHelpOn        - Jumps to Using Help file 
  212.                       e.g. ~text~!jumpHelpOn~
  213. JumpId                - Jumps to the specified topic 
  214.                       e.g. ~text~!jumpId(FILENAME TOP_NAME)~
  215. JumpKeyword         - Jumps to the topic containing the keyword 
  216.                       e.g. ~text~!jumpKeyword(FILENAME KEYWORD)~
  217. Next                - Displays the next topic in the browse sequence 
  218.                       e.g. ~text~!next~
  219. Not                - Reverses the IsMark macro 
  220.                       e.g. ~text~!not(MARKER)~
  221. PopupContext        - Displays a topic in a popup window 
  222.                       e.g. ~text~!popupContext(FILENAE POPUP_ID)~
  223. PopupId                - Displays topic in a popup window 
  224.                       e.g. ~text~!popupId(FILENAE POPUP_NAME)~
  225. PositionWindow        - Sets the size and position of a window 
  226.                       e.g. ~text~!positionWindow(x y w h state ID_WIN)~
  227. Prev                - Displays previous topic in browse sequence 
  228.                       e.g. ~text~!prev~
  229. Print                - Prints the current topic 
  230.                       e.g. ~text~!print~
  231. PrinterSetup        - Displays the Printer Setup dialog box 
  232.                       e.g. ~text~!printerSetup~
  233. RegisterRoutine        - Registers a DLL function 
  234.                       e.g. ~text~!registerRoutine(DLL FUNC PARAMETERS)~
  235. RemoveAccelerator   - Assigns a macro to an accelerator key 
  236.                       e.g. ~text~!removeAccelerator(KEY SHIFT_STATE)~
  237. SaveMark        - Saves a marker 
  238.                       e.g. ~text~!saveMark(MARKER)~
  239. Search                - Displays the Search dialog box 
  240.                       e.g. ~text~!search~
  241. SetContents         - Sets the Contents topic 
  242.                       e.g. ~text~!setContents(FILENAME TOP_ID)~
  243. SetHelpOnFile        - Sets the Using Help help file 
  244.                       e.g. ~text~!setHelpOnFile(FILENAME)~
  245. UncheckItem        - Unchecks a menu item 
  246.                       e.g. ~text~!uncheckItem(ID_ITEM)~
  247.  
  248. Multimedia :
  249.  
  250. Interface to the MCI String Command interface, with support for VfW AVI Video
  251. files, CDAudio, and any MCI String for any MultiMedia device supported by MCI.
  252.  
  253. videoLink           - Play AVI video.
  254.                       e.g. ~text~videoLink(MOVIE.AVI)~
  255. CDAudioLink         - Play a range of CDAudio tracks (From, To)
  256.                       e.g. ~text~CDAudioLink(5 7)~
  257. mciStringLink       - Send a genric MCI String command
  258.                       e.g. ~text~mciStringLink('open sequenced!mymusic.mid alias music')~
  259.  
  260. Multimedia Viewer
  261. -----------------
  262.  
  263. Text Attributes : Same as winHelp
  264. Links           : Same as winHelp
  265. Macros          : Same as winHelp
  266. MultiMedia      : Interface to MCI String commands, as in WINHELP.
  267.  
  268. 256 Bitmaps :
  269.  
  270. bmp256, bmp256Left, bmp256Right - Display 256 color bitmap in an embedded pane.
  271. Gbmp256, Gbmp256Left and Gbmp256Right - are the same, but associate bitmaps
  272.                                         defined in .graphic command.
  273. Ebmp256, Ebmp256Left, EbmpRight - are the same, but for graphics defined
  274.                                   in .embedd commands. This is the prefered
  275.                                   method for MM Viewer!
  276.  
  277. RTF Word Processors
  278. -------------------
  279.  
  280. Text Attributes : Same as winHelp
  281.  
  282. IPF (OS/2)
  283. ----------
  284.  
  285. IPF extention need HLPDK V11.0 or later, Version 10.0 is NOT enough.
  286.  
  287. Text Attributes :
  288.  
  289. boldText        - Display Text in Bold.     ~Text to display~boldText~
  290. italicText      - Display Text in Italic    ~Text to display~italicText~
  291. underlineText   - Display Text underlined   ~Text to display~underlineText~
  292. boldItalicText  - Display Bold Italic Text  ~Text to display~boldItalicText~
  293.  
  294. Links :
  295. graphicLink     - Link connected to bitmap  ~Text~graphicLink(myBmp LinkId)~
  296.                   Should declare a .GRAPHIC myBmp c:\..\myfile.bmp
  297.  
  298.  
  299. HTML (WWW)
  300. ----------
  301.  
  302. Text Attributes :
  303.  
  304. boldText        - Display Text in Bold.     ~Text to display~boldText~
  305. italicText      - Display Text in Italic    ~Text to display~italicText~
  306. boldItalicText  - Display Bold Italic Text  ~Text to display~boldItalicText~
  307.  
  308.