![]() |
![]() |
![]() |
![]() |
![]() |
|
Now, you need to install the meter. You click right > Add Custom
Pane, and then select MeterGraphPane. A click, drag, and release produces
a rectangle in which a meter is to appear when the application is launched.
Note, however, that the rectangle, being a graph pane, has scroll bars.
You eliminate them by selecting noScrollBars in the Style:
list box.
Next, you supply a name for the meter by typing the meter in the
Name: field. You need the name later when you define
the decrementMeter: and incrementMeter: methods.
Finally, you move to the When: list box and the
Perform: text field to specify two callback methods. For
the display event, you specify callDrawMeter. For the
getContents event, you specify initializeMeter.
