home *** CD-ROM | disk | FTP | other *** search
- <html>
- <title>Tools</title>
- <h1>6.0 Tools</h1>
-
- An <a href="file:icon">Icon</a> in Vista is a class which represents one of the tools within a window. An
- Icon can be mapped onto more that one 'icon' in the window. Vista supplies
- a few tools which are Icons that do something. Please see the example program
- '!DBox' for examples of how to use the tools. The tools supplied are:
- <p>
- <ol>
- <li><b>Adjuster</b>:
- <p>
- This consists of 3 WIMP icons: a writeable; an up arrow; and a down arrow. The
- up arrow increments the value in the writeable icon and the down arrow decrements
- it.
- <p>
- <li><b>Meter</b>:
- <p>
- This is a display tool consisting of two WIMP icons: the background and the value.
- The background icon surrounds the value and is bigger than it. The value is a
- horizontal bar which can be made to display a certain value. When you create the
- Meter, you specify the maximum value it can take. When it is set using the 'set'
- method, it works out the percantage of the maximum value your are setting it to and
- displays the value as a bar of the appropriate length.
- <p>
- <li><b>Slider</b>:
- <p>
- This is a combination of the Adjuster and Meter tools. It consts of 4 WIMP icons:
- <p>
- <ol>
- <li>The up arrow
- <li>The down arrow
- <li>The background
- <li>The value
- </ol>
- <p>
- Like the meter you specify the maximum value it can take and as you click
- on the up and down icons it will adjust the size of the meter appropriately.
- The meter can also be dragged.
- <p>
- <li><b>Popup</b>:
- <p>
- This is a popup menu. It consists of 2 icons which display a menu and
- a value. When creating the object you can either specify a menu to use,
- of supply a get_menu() function to generate one on request. When the
- user selects a menu option, the contents of the option are written into
- the value icon. This may be read as a string.
-
- </ol>
- <p>
- The value of any Icon can be read using the various 'read' functions. This applies
- to the tools. The Adjuster and Slider tools contain integral values. The Popup
- tools contains a string value.
- <p>
- Please see the source files for more information.
-