The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



NeedleLayout


Unit:SDL_meter
Class:TMeter
Declaration:property NeedleLayout: TNeedleLayout;

The TMeter component offers two independent needles, the main needle which is, by default, visible and the secondary needle, which is, by default, invisible. The property NeedleLayout defines the layout of the meter needle and contains the following sub-properties:

ColorBody (TColor) The color of the needle body (if Thickness is greater than 0).
ColorOutline (TColor) The color of the needle outline.
HeadAngle (integer) The angle of the needle head.
HeadMidLeng (integer)  The length of the needle head as measured along the needle shaft (in pixels).
HeadSize (integer)  The size of the needle head (in pixel).
PercentNeedleLength (integer)  The length of the needle in percent of the full length.
ShadowColor (TColor) The color of the needle shadow.
ShadowDx (integer)  The displacement of the needle shadow along the x-axis.
ShadowDy (integer)  The displacement of the needle shadow along the y-axis.
Thickness (integer)  The thickness of the needle.
Visible (boolean)  Visibility of the needle.

METERNLY.gif

Hint: In the Light Edition the secondary needle is not available.

Example: This property is used in the following example program (see http://www.lohninger.com/examples.html for downloading the code): prjmeter



Last Update: 2012-Oct-20