home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / vista_1 / !Manual_manual_tools < prev    next >
Encoding:
Text File  |  1996-01-25  |  2.1 KB  |  56 lines

  1. <html>
  2. <title>Tools</title>
  3. <h1>6.0 Tools</h1>
  4.  
  5. An <a href="file:icon">Icon</a> in Vista is a class which represents one of the tools within a window.  An
  6. Icon can be mapped onto more that one 'icon' in the window.  Vista supplies
  7. a few tools which are Icons that do something.  Please see the example program
  8. '!DBox' for examples of how to use the tools.  The tools supplied are:
  9. <p>
  10. <ol>
  11. <li><b>Adjuster</b>:
  12. <p>
  13.    This consists of 3 WIMP icons: a writeable; an up arrow; and a down arrow.  The
  14.    up arrow increments the value in the writeable icon and the down arrow decrements
  15.    it.
  16. <p>   
  17. <li><b>Meter</b>:
  18. <p>
  19.    This is a display tool consisting of two WIMP icons: the background and the value.
  20.    The background icon surrounds the value and is bigger than it.  The value is a
  21.    horizontal bar which can be made to display a certain value.  When you create the
  22.    Meter, you specify the maximum value it can take.  When it is set using the 'set'
  23.    method, it works out the percantage of the maximum value your are setting it to and
  24.    displays the value as a bar of the appropriate length.
  25. <p>   
  26. <li><b>Slider</b>:
  27. <p>
  28.    This is a combination of the Adjuster and Meter tools.  It consts of 4 WIMP icons:
  29. <p>
  30. <ol>   
  31.    <li>The up arrow
  32.    <li>The down arrow
  33.    <li>The background
  34.    <li>The value
  35. </ol>   
  36. <p>
  37.    Like the meter you specify the maximum value it can take and as you click
  38.    on the up and down icons it will adjust the size of the meter appropriately.
  39.    The meter can also be dragged.
  40. <p>
  41. <li><b>Popup</b>:
  42. <p>
  43. This is a popup menu.  It consists of 2 icons which display a menu and
  44. a value.  When creating the object you can either specify a menu to use,
  45. of supply a get_menu() function to generate one on request.  When the
  46. user selects a menu option, the contents of the option are written into
  47. the value icon.  This may be read as a string.
  48.  
  49. </ol>
  50. <p>
  51. The value of any Icon can be read using the various 'read' functions.  This applies
  52. to the tools.  The Adjuster and Slider tools contain integral values.  The Popup
  53. tools contains a string value.
  54. <p>
  55. Please see the source files for more information.
  56.