Meter Control

Purpose:

Returns the handle of a new meter control.

Syntax:

Meter(type,x,y,width,height,TITLE)

Comments:

Use this control to mimic analog meters.

Example:

vu = Meter(x, y ,w , h, "VU")

vu.xgrads = -20,-10,-7,-5,-3,0,3 // override computed x grade values
vu.meterangles = 140,-100,2

// the 20 label will sit at 140 degrees, the sweep is -100 degees with stroke angle of 2
vu.colorbackground = rgb(0,0,0)

   

vu.draw 1

// the needle is set when you use the draw function passing in the value.

// Here we set the value to 1