home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS 1992 June / SIMTEL_0692.cdr / msdos / desqview / api_exam.arc / PASCAL.DOC < prev    next >
Text File  |  1988-10-01  |  12KB  |  285 lines

  1.                     Pascal Interfaces
  2.  
  3. Listed below are the DESQview API Pascal interfaces available with the
  4. DESQview API Pascal Library.
  5.  
  6.  
  7. General Subroutines
  8.  
  9. api_beginc      begin critical region
  10. api_cancel      cancel current Window Manager operation
  11. api_endc        end critical region
  12. api_exit        exit API interface
  13. api_freebit     disconnect 2nd level interrupt handler
  14. api_getbit      define 2nd level interrupt handler
  15. api_getmem      get system memory buffer
  16. api_init        initialize API interface
  17. api_isobj       determine if a given handle is valid
  18. api_justify     enable/disable automatic justification of task window
  19. api_kmouse      turn keyboard mouse on and off
  20. api_level       define API revision level that application requires
  21. api_pause       give other tasks a chance to run
  22. api_poke        display debug information on bottom line of screen
  23. api_pushkey     push key into input stream
  24. api_putmem      return system memory buffer
  25. api_setbit      schedule a 2nd level interrupt handler
  26. api_shadow      get task's logical window buffer and start shadowing
  27. api_sound       make a sound
  28. api_update      redraw a portion of a task's logical window
  29.  
  30.  
  31. Application Management Subroutines
  32.  
  33. app_foreonly    indicate whether an application can run in background
  34. app_free        free an application and its window
  35. app_goback      force an application into background
  36. app_gofore      force an application into foreground
  37. app_hide        hide all windows of an application
  38. app_new         start a new application in the current process
  39. app_number      get the current applications Switch number
  40. app_show        display all windows of an application
  41. app_snew        start a new application in the current process
  42. app_start       start a new application in a new process
  43. app_suspend     suspend and hide all tasks in an application
  44.  
  45.  
  46. Field Management Subroutines
  47.  
  48. fld_altmode     set Alternate Field Processing mode
  49. fld_attr        fill a field with a given attribute
  50. fld_char        fill a field with a given character
  51. fld_clear       clear a field
  52. fld_cursor      move cursor to a field
  53. fld_entry       change field table entry
  54. fld_header      change field table header
  55. fld_lentry      load field table entry of field table window stream
  56. fld_lheader     load field table header of field table window stream
  57. fld_marker      define selected-field marker character
  58. fld_point       move pointer to a given position in a field
  59. fld_reset       reset selected and modified bits
  60. fld_scroll      scroll a field
  61. fld_swrite      write a string into a field
  62. fld_type        change the type of a field
  63. fld_write       write characters into a field
  64.  
  65.  
  66. Keyboard Management Subroutines
  67.  
  68. key_addto       set keyboard behavior flags
  69. key_close       disconnect keyboard from its window
  70. key_erase       discard pending keyboard input
  71. key_free        free a keyboard object
  72. key_getc        wait for next key (keystroke mode)
  73. key_me          get current task's keyboard handle
  74. key_new         create a new keyboard object
  75. key_of          get handle of a given task's keyboard
  76. key_open        attach keyboard to a given window
  77. key_read        read input from keyboard
  78. key_setesc      define function to filter keys in field mode
  79. key_sizeof      get # keyboard messages pending
  80. key_status      get status of last keyboard message
  81. key_subfrom     clear keyboard behavior flags
  82. key_swrite      write string to keyboard
  83. key_write       write data to keyboard
  84.  
  85.  
  86. Mailbox Management Subroutines
  87.  
  88. mal_addr        return sender of last message
  89. mal_addto       send a message by value with given status
  90. mal_close       close a mailbox
  91. mal_erase       erase all pending messages
  92. mal_find        find a mailbox by name
  93. mal_free        free a mailbox object
  94. mal_lock        lock access to a resource
  95. mal_me          get handle of current task's mailbox
  96. mal_name        assign a global name to a mailbox
  97. mal_new         create a new mailbox
  98. mal_of          get handle of a given task's mailbox
  99. mal_open        open a mailbox
  100. mal_read        wait for next message
  101. mal_saddto      send a string message by value with given status
  102. mal_sfind       find a mailbox by string name
  103. mal_sizeof      get # messages pending
  104. mal_sname       assign a global name by string to a mailbox
  105. mal_sread       wait for next message to copy into string
  106. mal_ssubfrom    send string message by reference with given status
  107. mal_status      get status of last message received
  108. mal_subfrom     send message by reference with given status
  109. mal_swrite      send a string message by value with status zero
  110. mal_unlock      unlock access to a resource
  111. mal_write       send a message by value with status zero
  112.  
  113.  
  114. Objectq Management Subroutines
  115.  
  116. obq_close       close the task's objectq
  117. obq_erase       erase contents of the task's objectq
  118. obq_open        open the task's objectq
  119. obq_read        wait for any object to have input
  120. obq_sizeof      get # of objectq entries pending
  121. obq_status      determine if the task's objectq is open
  122. obq_subfrom     remove copies of object from the task's objectq
  123.  
  124.  
  125. Panel Management Subroutines
  126.  
  127. pan_apply       display a named panel and prepare for input
  128. pan_close       close a panel file
  129. pan_dir         get list of panels in the panel file
  130. pan_free        free a panel object
  131. pan_new         create a panel object
  132. pan_open        open a panel file
  133. pan_sapply      display a panel named by string and prepare for input
  134. pan_sizeof      get # panels in the panel file
  135. pan_sopen       open a panel file specified by string name
  136. pan_status      get status of last pan_open or pan_apply
  137.  
  138.  
  139. Pointer Managemet Subroutines
  140.  
  141. ptr_addto       set pointer control flags
  142. ptr_close       close a pointer object
  143. ptr_erase       erase pending pointer messages
  144. ptr_free        free a pointer object
  145. ptr_getscale    get current scaling factors
  146. ptr_new         create a new pointer object
  147. ptr_open        open pointer and assign to a window
  148. ptr_read        wait for next pointer message
  149. ptr_setscale    set current scaling factors
  150. ptr_sizeof      get # messages pending
  151. ptr_status      get button status from last message received
  152. ptr_subfrom     clear pointer control flags
  153. ptr_write       move the pointer to a given position
  154.  
  155.  
  156. Query Subroutines
  157.  
  158. qry_atread      TRUE if win_read and win_readn will read attributes
  159. qry_attr        get current output attribute
  160. qry_color       get physical attribute for given logical attribute
  161. qry_ctrl        TRUE if processing control codes
  162. qry_cursor      get current cursor position
  163. qry_entry       get field table entry
  164. qry_field       get contents of a field
  165. qry_frame       TRUE if the window has a frame
  166. qry_frattr      get current frame attribute
  167. qry_header      get field table header
  168. qry_hidden      TRUE if the window is hidden
  169. qry_kmouse      TRUE if using a keyboard mouse
  170. qry_leave       TRUE if leaving attribute untouched when writing
  171. qry_logattr     TRUE if using logical attributes
  172. qry_lsize       get size of logical window buffer
  173. qry_origin      get origin of physical window relative to logical
  174. qry_position    get position of physical window
  175. qry_sfield      get contents of a field into a string
  176. qry_size        get size of physical window
  177. qry_stitle      get window's title into a string
  178. qry_title       get window's title
  179. qry_type        get type of field
  180.  
  181.  
  182. Text File Device Driver Subroutines
  183.  
  184. tfd_attach      attach a given window to TFDD
  185. tfd_close       close TFDD
  186. tfd_lock        lock access to TFDD
  187. tfd_open        open TFDD and attach given window
  188. tfd_unlock      unlock access to TFDD
  189.  
  190.  
  191. Timer Management Subroutines
  192.  
  193. tim_addto       start a timer for a given interval
  194. tim_close       close a timer object
  195. tim_erase       stop a running timer
  196. tim_free        free a timer object
  197. tim_len         get time remaining until timer expires
  198. tim_new         create a new timer object
  199. tim_open        open a timer object
  200. tim_read        wait for timer to expire
  201. tim_sizeof      get time since a timer started running
  202. tim_status      determine if a timer is running
  203. tim_write       start a timer for a given time of day
  204.  
  205.  
  206. Task Management Subroutines
  207.  
  208. tsk_free        free a task and its window
  209. tsk_me          get handle of current task
  210. tsk_new         create a new task
  211. tsk_pgmint      software interrupt another task
  212. tsk_post        restart a task and post its objectq
  213. tsk_snew        create a new task with specified string title
  214. tsk_start       restart a stopped task
  215. tsk_stop        temporarily stop a task
  216.  
  217.  
  218. Window Management Subroutines
  219.  
  220. win_addto       write characters and attributes to a window
  221. win_adopt       adopt a window
  222. win_allow       specify which DESQview commands are allowed
  223. win_async       define asynchronous notify subroutine
  224. win_atread      set read mode to read either characters or attributes
  225. win_attach      attach window to its parent task window
  226. win_attr        set current output attribute
  227. win_blanks      write blanks to a window
  228. win_bottom      make window bottommost in its application
  229. win_buffer      get pointer to window's logical window buffer
  230. win_cancel      cancel notification on a given event
  231. win_color       change logical attribute mapping
  232. win_ctrl        enable/disable interpretation of control characters
  233. win_cursor      move window's logical cursor
  234. win_dflt        change default notify window
  235. win_disallow    specify which DESQview commands are not allowed
  236. win_disperor    display an error message window
  237. win_eof         TRUE if logical cursor is beyond end of window
  238. win_erase       clear window
  239. win_frame       enable/disable display of a window's frame
  240. win_frattr      define window frame attribute
  241. win_free        remove a window from the screen and free its handle
  242. win_hcur        display hardware cursor at logical cursor position
  243. win_hide        mark a window as hidden
  244. win_leave       leave existing attribute when writing to a window
  245. win_len         return width of logical window
  246. win_locate      return which window is visible at given screen position
  247. win_logattr     use logical/physical attributes
  248. win_lsize       set windows logical dimensions
  249. win_maxsize     set windows maximum physical dimensions
  250. win_me          get current task's window handle
  251. win_minsize     set windows minimum physical dimensions
  252. win_move        move physical window
  253. win_new         create a new window
  254. win_notify      enable notification on a given event
  255. win_nread       read n characters from a window
  256. win_open        fill a window with a given character
  257. win_origin      define portion of logical window viewed in physical window
  258. win_orphan      orphan a window
  259. win_paste       define window as current clipboard window
  260. win_point       jump mouse to logical cursor position
  261. win_poswin      position window relative to another window
  262. win_putc        write a character/attribute pair to a window
  263. win_read        read rest of current line from window
  264. win_redraw      redraw a window
  265. win_reorder     reorder an application's windows
  266. win_repattr     write an attribute to a window n times
  267. win_repchar     write a character to a window n times
  268. win_resize      set physical dimensions of a window
  269. win_saddto      write strings of characters and attributes to a window
  270. win_scroll      scroll all or part of a window
  271. win_sdisperor   display a string error message window
  272. win_sizeof      get # character positions in the logical window
  273. win_snew        create a new window with a given string title
  274. win_sstream     write a string stream to a window
  275. win_ssubfrom    write a string of attributes to a window
  276. win_stitle      change a window's title to given string
  277. win_stream      write a stream to a window
  278. win_subfrom     write attributes to a window
  279. win_swrite      write a string of characters to a window
  280. win_title       change a window's title
  281. win_top         make window topmost in its application
  282. win_topsys      make window topmost in the system
  283. win_unhide      mark a window as not hidden
  284. win_write       write characters to a window
  285.