button.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <html>
  2. <head>
  3. <title>Button</title>
  4. </head>
  5. <body bgcolor="FFFFFF">
  6. <h1><img align="center" src="../../../../en/icons/button.gif" width="32" height="32">
  7. <em>Button</em></h1>
  8. <p><table>
  9. <tr><td><strong>Library:</strong></td>
  10. <td><a href="index.html">Input/Output</a></td></tr>
  11. <tr><td><strong>Introduced:</strong></td>
  12. <td>2.1.3</td></tr>
  13. <tr><td valign="top"><strong>Appearance:</strong></td>
  14. <td valign="top"><img src="../../../../en/img-libs/button.png" width="23" height="21"></td></tr>
  15. </table></p>
  16. <h2>Behavior</h2>
  17. <p>Outputs 0 normally; but when the user is pressing the
  18. the button using the Poke Tool, the output is 1.</p>
  19. <h2>Pins</h2>
  20. <p>A button has only one pin, a 1-bit output, which is 0 except when the
  21. user is pressing the button using the Poke Tool, when it is 1.</p>
  22. <h2>Attributes</h2>
  23. <p>When the component is selected or being added,
  24. the arrow keys alter its <q>Facing</q> attribute.</p>
  25. <dl>
  26. <dt>Facing</dt>
  27. <dd>The location of the output pin relative to the component.</dd>
  28. <dt>Color</dt>
  29. <dd>The color with which to display the button.</dd>
  30. <dt>Label</dt>
  31. <dd>The text within the label associated with the component.</dd>
  32. <dt>Label Location</dt>
  33. <dd>The location of the label relative to the component.</dd>
  34. <dt>Label Font</dt>
  35. <dd>The font with which to render the label.</dd>
  36. <dt>Label Color</dt>
  37. <dd>The color with which to draw the label.</dd>
  38. </dl>
  39. <h2>Poke Tool Behavior</h2>
  40. <p>When the mouse button is pressed, the component's output will be 1.
  41. Upon releasing the mouse button, the output reverts back to 0.</p>
  42. <h2>Text Tool Behavior</h2>
  43. <p>Allows the label associated with the component to be edited.</p>
  44. <p><a href="../index.html">Back to <em>Library Reference</em></a></p>
  45. </body>
  46. </html>