acceleratorsresource.xml 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <fpdoc-descriptions>
  3. <package name="fcl-res">
  4. <!--
  5. ====================================================================
  6. acceleratorsresource
  7. ====================================================================
  8. -->
  9. <module name="acceleratorsresource">
  10. <short>Contains an accelerator table resource type</short>
  11. <descr>
  12. <p>This unit contains <link id="TAcceleratorsResource"/>, a <link id="resource.TAbstractResource">TAbstractResource</link> descendant specialized in handling resource of type <link id="resource.RT_ACCELERATOR">RT_ACCELERATOR</link>.</p>
  13. <p>Adding this unit to a program's <var>uses</var> clause registers class <link id="TAcceleratorsResource"/> for type <link id="resource.RT_ACCELERATOR">RT_ACCELERATOR</link> with <link id="resfactory.TResourceFactory">TResourceFactory</link>.</p>
  14. </descr>
  15. <!-- unresolved type reference Visibility: default -->
  16. <element name="Classes">
  17. </element>
  18. <!-- unresolved type reference Visibility: default -->
  19. <element name="SysUtils">
  20. </element>
  21. <!-- unresolved type reference Visibility: default -->
  22. <element name="resource">
  23. </element>
  24. <!-- constant Visibility: default -->
  25. <element name="FVirtKey">
  26. <short>The accelerator key is a virtual key code</short>
  27. <descr>
  28. <p>When this flag is set, the accelerator key is a virtual key code. Otherwise, it is a ASCII character</p>
  29. </descr>
  30. <seealso>
  31. <link id="TAccelerator"/>
  32. </seealso>
  33. </element>
  34. <!-- constant Visibility: default -->
  35. <element name="FNoInvert">
  36. <short>Obsolete</short>
  37. <descr>
  38. <p>This flag is obsolete and is provided only for compatibility with 16 bit Windows.</p>
  39. </descr>
  40. <seealso>
  41. <link id="TAccelerator"/>
  42. </seealso>
  43. </element>
  44. <!-- constant Visibility: default -->
  45. <element name="FShift">
  46. <short>The accelerator is activated only if <var>SHIFT</var> key is pressed</short>
  47. <descr>
  48. <p>This flag is valid only if the key is a virtual key.</p>
  49. </descr>
  50. <seealso>
  51. <link id="TAccelerator"/>
  52. </seealso>
  53. </element>
  54. <!-- constant Visibility: default -->
  55. <element name="FControl">
  56. <short>The accelerator is activated only if <var>CTRL</var> key is pressed</short>
  57. <descr>
  58. <p>This flag is valid only if the key is a virtual key.</p>
  59. </descr>
  60. <seealso>
  61. <link id="TAccelerator"/>
  62. </seealso>
  63. </element>
  64. <!-- constant Visibility: default -->
  65. <element name="FAlt">
  66. <short>The accelerator is activated only if <var>ALT</var> key is pressed</short>
  67. <descr>
  68. <p>This flag is valid only if the key is a virtual key.</p>
  69. </descr>
  70. <seealso>
  71. <link id="TAccelerator"/>
  72. </seealso>
  73. </element>
  74. <!-- record type Visibility: default -->
  75. <element name="TAccelerator">
  76. <short>A single accelerator entry</short>
  77. <descr>
  78. <p>A single accelerator entry in the accelerator table resource.</p>
  79. <p>The key associated with the accelerator is represented by <var>Ansi</var> field: it can be a character or a virtual-key code (in the latter case, <link id="FVirtKey"/> flag must be active).</p>
  80. <p>The accelerator is identified by the value of <var>id</var> field.</p>
  81. <p><var>Flags</var> is a combination of the following values:</p>
  82. <ul>
  83. <li><link id="FVirtKey"/></li>
  84. <li><link id="FShift"/></li>
  85. <li><link id="FNoInvert"/></li>
  86. <li><link id="FControl"/></li>
  87. <li><link id="FAlt"/></li>
  88. </ul>
  89. </descr>
  90. </element>
  91. <!-- variable Visibility: default -->
  92. <element name="TAccelerator.Flags">
  93. <short>A set of flags that can be combined to specify an accelerator's characteristics.</short>
  94. </element>
  95. <!-- variable Visibility: default -->
  96. <element name="TAccelerator.Ansi">
  97. <short>An ANSI character value or a virtual-key code</short>
  98. </element>
  99. <!-- variable Visibility: default -->
  100. <element name="TAccelerator.Id">
  101. <short>An integer value that identifies the accelerator</short>
  102. </element>
  103. <!-- variable Visibility: default -->
  104. <element name="TAccelerator.padding">
  105. <short>Used to keep record size aligned on a DWORD boundary</short>
  106. </element>
  107. <!-- pointer type Visibility: default -->
  108. <element name="PAccelerator">
  109. <short>A pointer to a TAccelerator record</short>
  110. <seealso>
  111. <link id="TAccelerator"/>
  112. </seealso>
  113. </element>
  114. <!-- object Visibility: default -->
  115. <element name="TAcceleratorsResource">
  116. <short>Accelerator table resource type</short>
  117. <descr>
  118. <p>This class represents a resource of type <link id="resource.RT_ACCELERATOR">RT_ACCELERATOR</link>.</p>
  119. <p>An accelerator table resource is a collection of accelerators (represented by <link id="TAccelerator"/> records).</p>
  120. <p>An accelerator represents a keystroke that can be associated with some action.</p>
  121. <p>This resource type is very Microsoft Windows-specific, so it might not be of interest for many users.</p>
  122. <p>Methods are provided to add, delete and modify single accelerators.</p>
  123. <remark>This class doesn't allow its type to be changed to anything else than <link id="resource.RT_ACCELERATOR">RT_ACCELERATOR</link>. Attempts to do so result in a <link id="resource.EResourceDescChangeNotAllowedException">EResourceDescChangeNotAllowedException</link>.</remark>
  124. </descr>
  125. </element>
  126. <!-- constructor Visibility: public -->
  127. <element name="TAcceleratorsResource.Create">
  128. <short>Creates a new accelerator table resource</short>
  129. <descr>
  130. <p>Please note that <var>aType</var> parameter is not used, since this class always uses <link id="resource.RT_ACCELERATOR">RT_ACCELERATOR</link> as type.</p>
  131. </descr>
  132. </element>
  133. <!-- argument Visibility: default -->
  134. <element name="TAcceleratorsResource.Create.aType">
  135. <short>Ignored. Can be <var>nil</var>.</short>
  136. </element>
  137. <!-- argument Visibility: default -->
  138. <element name="TAcceleratorsResource.Create.aName">
  139. <short>The name of the resource</short>
  140. </element>
  141. <!-- procedure Visibility: public -->
  142. <element name="TAcceleratorsResource.Add">
  143. <short>Adds a new accelerator to the table</short>
  144. <seealso>
  145. <link id="TAcceleratorsResource.Items"/>
  146. </seealso>
  147. </element>
  148. <!-- argument Visibility: default -->
  149. <element name="TAcceleratorsResource.Add.aItem">
  150. <short>The accelerator to add</short>
  151. </element>
  152. <!-- procedure Visibility: public -->
  153. <element name="TAcceleratorsResource.Clear">
  154. <short>Empties the accelerator table</short>
  155. <seealso>
  156. <link id="TAcceleratorsResource.Items"/>
  157. <link id="TAcceleratorsResource.Delete"/>
  158. </seealso>
  159. </element>
  160. <!-- procedure Visibility: public -->
  161. <element name="TAcceleratorsResource.Delete">
  162. <short>Deletes an accelerator from the table</short>
  163. <seealso>
  164. <link id="TAcceleratorsResource.Items"/>
  165. <link id="TAcceleratorsResource.Clear"/>
  166. </seealso>
  167. </element>
  168. <!-- argument Visibility: default -->
  169. <element name="TAcceleratorsResource.Delete.aIndex">
  170. <short>The index of the accelerator to delete</short>
  171. </element>
  172. <!-- property Visibility: public -->
  173. <element name="TAcceleratorsResource.Count">
  174. <short>The number of accelerators in the table</short>
  175. <seealso>
  176. <link id="TAcceleratorsResource.Items"/>
  177. </seealso>
  178. </element>
  179. <!-- property Visibility: public -->
  180. <element name="TAcceleratorsResource.Items">
  181. <short>Indexed array of accelerators in the table</short>
  182. <descr>
  183. <p>This property can be used to access all accelerators in the object.</p>
  184. <remark>This array is 0-based: valid elements range from 0 to <link id="TAcceleratorsResource.Count">Count</link>-1.</remark>
  185. <remark>If you need to access <link id="resource.TAbstractResource.RawData">RawData</link> after you added, deleted or modified accelerators, be sure to call <link id="resource.TAbstractResource.UpdateRawData">UpdateRawData</link> first. This isn't needed however when resource is written to a stream, since <link id="resource.TResources">TResources</link> takes care of it.</remark>
  186. </descr>
  187. <seealso>
  188. <link id="TAcceleratorsResource.Count"/>
  189. <link id="TAccelerator"/>
  190. </seealso>
  191. </element>
  192. <!-- argument Visibility: default -->
  193. <element name="TAcceleratorsResource.Items.index">
  194. <short>The index of the accelerator to access</short>
  195. </element>
  196. </module> <!-- acceleratorsresource -->
  197. </package>
  198. </fpdoc-descriptions>