64
ImageSize property on 32 (specifies the size of the control' icons)

axGauge1.BeginUpdate();
axGauge1.ImageSize = 32;
axGauge1.Font.Size = 16;
axGauge1.Images("gBJJgBAIDAAEg4AEEKAD/hz/EMNh8TIRNGwAjEZAEXjAojKAjMLjABhkaABAk0plUrlktl0vmExmUzmk1m03nE5nU7nk9miAoE+oVDolFo1HpFJpU5h8Sf9OqFNqUOq" +
"NUqdPq9VrFWrlbr1QpdhAFAkFis1ntFptVrtkrpszrNvmVxqk3uVtm1kmF3sdBvF/wGBmV+j9BYGHwWJulfxdax2NyFdx2JlV6l9Nw7AAGZymdz2Cy2GxErvWcz9ivlw" +
"yV21cuxugwktzGIzmvwtl0+53U5y0a0Wazmmyu/3dCyOMyXHx/J5nIr9q3uyqnBxFN3G46ma4vb7mD2Ng4nZze00fDkHC7t7us2rOX5tguetpHRlmz4HVqnXk1PjHO+C" +
"MPo9MBMC+j2vC8j7wS8cFNI4kBo05UIvfCT/NsnsApU+0Fqg/T+oy/kPxC0sEQfErKQK96+w28UWRI8UGvO8sTLS9r2PWmsMJTDTask3CsIbIEQRA3shOXEEAO/GclJ9" +
"FEKrrA8FRbKMXRIlb0JxCkjS1LMswhCcvuel0cv26cSMa8Ufx+2sQwhEUoSXOCjSbLcnxjKc7sdKUVyq28NtVI71P9P7JxtQEapjQ6fzfM8zPfNE2PhIsLL63E40slk5" +
"y7N89LcyU9SvMb3SdUc6VJLj5VLVLfO/PS9KzNFHUa/0XyBD0dxlS9cxhMlTRSoNXypPErWDPyfNS+MwprRNO0FD8wVVZ1AI08URwVRjtJ1WCn21QkkUrXVLVPQS/XIk" +
"FgTxT9iONZ9xVTdq+L1eKg3kkF6Upe68XtfV51/MtrVjBlwYFL1ev8y1/P6/lyzzYl02wntj0RVFmS1Qa+M5as93QxEUW9e993rfmQ2+vy65M/mL1lhl/2bj2ByVduMt" +
"NhCJT9hdz41nN14Ld12Z9UjfI/oUAaGseiw6+uFLLhcVabJOS5RqOE0BHlZ5VnEr5fOMs3st+aa/bbRzrJGV51Y0b0DbqaWXZD90hIsPbjWu52+6Wyadpe66hhO+P/Xi" +
"oW5rD8ZbrUZuVg6n1dsE/cXmewu1m9PVwnd35/nueXho/NaJzmjc61W76esuT77eG8pTquy9TwWH8LEzG8RDfFalx3Gcfvna9rvG/cptGLd9tuI6TZOP5Fiqi99vea+X" +
"4VRcBq/JZZtVQ9cwSs5lsXE372+a9z7PbfB3VVqHyvMctLto8uob6eV0m/cD6MN2v+T33t6sBut42vdv2bJ8a997x2maFJfK+qArbGJPEKE+1qTflMsIdW/GCJX17KcT" +
"6/czr/X+u1g29B7j/4BQfWkkx4zIHisjhPCmE0K4SwtXM+d4BvHRwNZOoBph9IJvPek9d40FoMJxf691jj2ywQQcHEWET4XJwkTszlVqm2GokewxtBT1DpQjRxDN0rUV" +
"DNKdC3lb6tzNOwh6upMSSYfv4YBCl/bsn9PxiFCEo7SI6Obc9HeOrnY8x4jtHtdpN4GRbaorhsbu18Pph5CiHymI0RpSXGJ/z2oUOxYxG858AyiI+bfJtuTcG5yelBJy" +
"T8okhqFd4a5yxL0rvulYtKCsZiWxWkc1s1cRoxxwhA31DLE0mR9l9HqX8fJgTDmFMVH0MIsRzVYnwnMi1dyzmhLt2kS2pxIiU62Wj5ptQGlSYFakLonTUJNLKaM5Wzlf" +
"fEkuFkk5wTrhVO2eE7G6lJhxFFYUZ55zmn0WuBCD4pzhirFCKkbomsOoIYmZx5p90LoYWGPdD5g0QmJRKYxbZ6zYoVQ2jVGylSak7KSkFH6RSjpHKFuU+YMyNo5SulkC" +
"6I0vonTCitMXPoEpVS2H5FQfEqp2R1opIgAEkJISYARTCukOhmPNI5Ex/wzGHUsicMwA1LHgQ90Y/KpoQHAD+pB/R4NzIaMAB9Xaw1gqaAOsh/A/ptIkWUfhGK1kZH8R" +
"gH5GqvgArqRmt4AAPrTroRofBGADkqr6Rmu4D7CEaHARiwpJrEEZsXXwlVjyMWRsaRqwdkLGNBABZmytmyMnaINZqyVpLR2ftKAAAdd6h2osbaskdiq4EZtgSmyNcbVW" +
"RJNXe3AA7REar3b0stlAAXBtoRmvJGLjEYAHUWsFcwCD/rnaop9aEICMAPdK5hT6xpeuzdOtAgKuJeGfdq6ggEbkTvAP+p9UCHXrvKkcgIA==");
axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<img>1</img>Caption");
axGauge1.EndUpdate();

63
ImageSize property on 16 (default) (specifies the size of the control' icons)

axGauge1.BeginUpdate();
axGauge1.ImageSize = 16;
axGauge1.Images("gBJJgBAIDAAEg4ACEKAD/hz/EMNh8TIRNGwAjEZAEXjAojJAjMLjABAAgjUYkUnlUrlktl0vmExmUzmk1m03nE5nU7nkrQCAntBoVDolFo1HoM/ADAplLptImdMYFOq" +
"dSqlXq1QrVbrlGpVWsFNrNdnNjsk7pQAtNroFnt0sh8Yr9iulTuNxs1Eu8OiT/vsnsNVutXlk/oGGtVKxGLxWNtsZtN8iUYuNvy0Zvd+xNYwdwvl4p870GCqc8vOeuVt" +
"tmp1knyOayWVy+WzN/ze1wOElenm+12WUz/Bv2/3UyyWrzeutux2GSyGP2dQ33C1ur3GD3M4zUNzHdlWjq/E3nGzVpjWv4HA7fRy/Tv2IrN8rPW6nZ3ve7mUlfu20Z8a" +
"cvQyb+vY9jasYoDwMm+LytVBDqKG3z8O3Cb8P+mkAuY9cCQ2uL4KaxDKvkp8RNLEjqugnrwQo/UWPzFyeQw5sNLZFENrI4kOqU66pw8uzmOKvTqNqjULJvGL1JO48GtT" +
"GsbLdEL3scxLlyiw8dQeoUVxdLTtyKmUjwGlslRPJsnK1HbAKbKCrsQo8uQk/CeP44iaR/ATnTNPLvyxPU+z9P9AUDQVBowiofJXQ6Oo+kKMpIkjztE4TKn4P6JowfgP" +
"nwD5/nAjB8AOeAPo0eAA1IAFH07UhAIMpYAVIYFHqBUhwVjV1S1EtQAHxW65V0AZwAeuQAnwB5gAPYViEDVhwAHTQBkCjB4gOhwDmCyhH0sACAg==");
axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<img>1</img>Caption");
axGauge1.EndUpdate();

62
I found that the control's needle/knob is too small to touch, is it possible somehow to make it working
axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.LayerAutoSize = -1;
axGauge1.Layers.Count = 10;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.Idem = "0,7";
axGauge1.LayerDragAny = 9;
axGauge1.EndUpdate();

61
How can I rotate/move multiple layers once the user drags the layer

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.LayerAutoSize = -1;
axGauge1.Layers.Count = 10;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.Idem = "0,7";
axGauge1.EndUpdate();

60
How can I show a layer as disabled

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("original");
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer.Background.Picture.Name = "Layer2.png";
	var_Layer.DefaultOffsetY = -164;
	var_Layer.Grayscale = 0;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers.Add("grayscale 50%");
	var_Layer1.Background.Picture.Name = "Layer2.png";
	var_Layer1.Grayscale = 50;
	var_Layer1.DefaultOffsetY = -82;
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers.Add("grayscale 100%");
	var_Layer2.Background.Picture.Name = "Layer2.png";
	var_Layer2.Grayscale = 100;
axGauge1.EndUpdate();

59
Is it possible to stretch all layers

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 2";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("empty");
	var_Layer.Background.Color.Value = (uint)ColorTranslator.ToWin32(Color.FromArgb(240,240,240));
	var_Layer.Position = 0;
axGauge1.LayerAutoSize = -1;
axGauge1.EndUpdate();

58
Tic Tac Toe Game

// MouseDown event - Occurs when the user presses a mouse button.
private void axGauge1_MouseDownEvent(object sender, AxEXGAUGELib._IGaugeEvents_MouseDownEvent e)
{
	// Left = Me.Layers(l).Left
	// Top = Me.Layers(l).Top
	// Width = Me.Layers(l).Width
	// Height = Me.Layers(l).Height
	int l = axGauge1.get_LayerFromPoint(-1,-1);
	EXGAUGELib.Layers var_Layers = axGauge1.Layers;
		EXGAUGELib.Layer var_Layer = var_Layers.Add(axGauge1.Layers.Count);
			EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
				var_Picture.Left = "8";
				var_Picture.Width = "width - 2 * 8";
				var_Picture.Top = "8";
				var_Picture.Height = "height - 2 * 8";
				var_Picture.Name = axGauge1.FormatABC("A mod 2 = 0 ? `x` : `o`",axGauge1.Layers.Count,null,null);
			var_Layer.Transparency = 0;
}
//this.axGauge1.MouseDownEvent += new AxEXGAUGELib._IGaugeEvents_MouseDownEventHandler(this.axGauge1_MouseDownEvent);

axGauge1.BeginUpdate();
axGauge1.VisualAppearance.Add(1,"gBFLBCJwBAEHhEJAAEhABS0IQAAYAQGKIYBkAKBQAGaAoDDcMQ5QwAAyDGKEEwsACEIrjKCRShyCYZRhGcTALD8EhhECTZKkAZAEiWIovRbHMBzFIMYRFFCcIRGSaYD" +
"iCNovTRNE7TfBMIhkGoSaKpCIRVDCSYJUzTc6wS79KgAASiJjjao6ZhaSpSABRYiyXRlHSxLiuYyoGTrJACEQxDhEEIjGLAazLMadJItCzabqGbJ8Ro6cQwTAIgI=");
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerWidth,"width/3");
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerHeight,"height/3");
axGauge1.set_HTMLPicture("x","C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Pictures\\x.png");
axGauge1.set_HTMLPicture("o","C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Pictures\\o.png");
axGauge1.LayerAutoSize = -1;
axGauge1.Layers.Count = 9;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Left = " width/3 - 4";
	var_Layer1.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.Left = "2 * (width/3 - 4) - 4";
	var_Layer2.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Top = "height/3 - 4";
	var_Layer3.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer4 = axGauge1.Layers[4];
	var_Layer4.Top = "height/3 - 4";
	var_Layer4.Left = " width/3 - 4";
	var_Layer4.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer5 = axGauge1.Layers[5];
	var_Layer5.Top = "height/3 - 4";
	var_Layer5.Left = "2 * (width/3 - 4) - 4";
	var_Layer5.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer6 = axGauge1.Layers[6];
	var_Layer6.Top = "2 * (height/3 - 4) ";
	var_Layer6.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer7 = axGauge1.Layers[7];
	var_Layer7.Top = "2 * (height/3 - 4) ";
	var_Layer7.Left = " width/3 - 4";
	var_Layer7.Background.Color.Value = 0x1000000;
EXGAUGELib.Layer var_Layer8 = axGauge1.Layers[8];
	var_Layer8.Top = "2 * (height/3 - 4) ";
	var_Layer8.Left = "2 * (width/3 - 4) - 4";
	var_Layer8.Background.Color.Value = 0x1000000;
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerTransparency,99);
axGauge1.EndUpdate();

57
What's the difference Rotate vs Rotamove

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 227
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Linear\\Button with LEDs";
EXGAUGELib.Layers var_Layers = axGauge1.Layers;
	EXGAUGELib.Layer var_Layer = var_Layers.Add("base");
	EXGAUGELib.Layer var_Layer1 = var_Layers.Add("rotate");
		var_Layer1.ToolTip = var_Layer1.Key.ToString();
		EXGAUGELib.Picture var_Picture = var_Layer1.Background.Picture;
			var_Picture.Name = "Example Button Up.png";
			var_Picture.Left = "width/2";
			var_Picture.Top = "height/2";
			var_Picture.Width = 128.ToString();
			var_Picture.Height = 64.ToString();
		EXGAUGELib.Foreground var_Foreground = var_Layer1.Foreground;
			var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<font ;14><sha ;;0>Rotate");
			var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionLeft,"width/2 + 32");
			var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,"height/2 + 16");
		var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
		var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
		var_Layer1.RotateAngle = 45;
	EXGAUGELib.Layer var_Layer2 = var_Layers.Add("rotamove");
		var_Layer2.ToolTip = var_Layer2.Key.ToString();
		EXGAUGELib.Picture var_Picture1 = var_Layer2.Background.Picture;
			var_Picture1.Name = "Example Button Up.png";
			var_Picture1.Left = "width/2";
			var_Picture1.Top = "height/2";
			var_Picture1.Width = 128.ToString();
			var_Picture1.Height = 64.ToString();
		EXGAUGELib.Foreground var_Foreground1 = var_Layer2.Foreground;
			var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<font ;14><sha ;;0>Rotamove");
			var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionLeft,"width/2 + 24");
			var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,"height/2 + 16");
		var_Layer2.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,100);
		var_Layer2.RotateAngle = 45;
		var_Layer2.Transparency = 25;
		var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;

56
How do I display a tooltip, when cursor hovers the layer

// MouseIn event - Notifies that the cursor enters the layer.
private void axGauge1_MouseIn(object sender, AxEXGAUGELib._IGaugeEvents_MouseInEvent e)
{
	axGauge1.Layers[9].ToolTip = axGauge1.FormatABC("`The current value is: <br><c><b>` + ((100 - A) format ``)",axGauge1.Value,null,null).ToString();
}
//this.axGauge1.MouseIn += new AxEXGAUGELib._IGaugeEvents_MouseInEventHandler(this.axGauge1_MouseIn);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 10;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.DefaultRotateAngle = -126;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.RotateAngleToValue = "100 - value / 360 * 100";
	var_Layer.ValueToRotateAngle = "(value)/100 * 360";
axGauge1.Layers[3].Visible = false;
axGauge1.Layers[4].Visible = false;
axGauge1.Layers[9].Value = 25;
axGauge1.EndUpdate();

55
I've noticed that the OnDrag can move the layer itself, but how about moving the clipping region

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Layers(DragInfo.Layer).Clip.Ellipse
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

axGauge1.BeginUpdate();
axGauge1.BackColor = Color.FromArgb(217,217,217);
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Guage";
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("background");
	var_Layer.Background.Picture.Name = "Guage_Background.png";
	EXGAUGELib.ClipEllipse var_ClipEllipse = var_Layer.Clip.Ellipse;
		var_ClipEllipse.RadiusX = "width/3";
		var_ClipEllipse.RadiusY = "height/3";
axGauge1.Layers.Add("needle").Background.Picture.Name = "Guage_Needle.png";
axGauge1.EndUpdate();

54
How do I show a portion of layer with a different color (sample 2)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["Color"].Clip.Value = axGauge1.Layers["Thumb"].RotateAngle;
	EXGAUGELib.Layer var_Layer = axGauge1.Layers["Color"];
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,var_Layer.RotateAngle);
	axGauge1.Layers["Thumb"].set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,axGauge1.Layers["Color"].RotateAngle);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 5;
axGauge1.Layers[1].Visible = false;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[4];
	var_Layer.Key = "Thumb";
	var_Layer.DefaultRotateAngle = -141;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers.Add("Color");
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Position = 3;
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
	var_Layer1.Background.Picture.Name = "Layer3.png";
	var_Layer1.Clip.Pie.SweepAngle = "value";
	EXGAUGELib.ClipEllipse var_ClipEllipse = var_Layer1.Clip.Ellipse;
		var_ClipEllipse.RadiusX = "150";
		var_ClipEllipse.RadiusY = "150";
		var_ClipEllipse.InverseClip = true;
axGauge1.Layers["Thumb"].RotateAngle = 135;
axGauge1.EndUpdate();

53
How do I show a portion of layer with a different color (sample 1)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["Color"].Clip.Value = axGauge1.Layers["Thumb"].RotateAngle;
	EXGAUGELib.Layer var_Layer = axGauge1.Layers["Color"];
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,var_Layer.RotateAngle);
	axGauge1.Layers["Thumb"].set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,axGauge1.Layers["Color"].RotateAngle);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 5;
axGauge1.Layers[1].Visible = false;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[4];
	var_Layer.Key = "Thumb";
	var_Layer.DefaultRotateAngle = -141;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,100);
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers.Add("Color");
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Position = 3;
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,100);
	var_Layer1.Background.Picture.Name = "Layer3.png";
	var_Layer1.Clip.Pie.SweepAngle = "value";
axGauge1.Layers["Thumb"].RotateAngle = 135;
axGauge1.EndUpdate();

52
How can I display / clip a picture with no transparency

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("default");
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer.Background.Picture.Name = "Layer2.png";
	var_Layer.DefaultOffsetY = -164;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers.Add("notransparency");
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer1.Background.Picture.Name = "Layer2.png";
	EXGAUGELib.ClipPicture var_ClipPicture = var_Layer1.Clip.Picture;
		var_ClipPicture.Name = axGauge1.Layers["notransparency"].Background.Picture.Name;
		var_ClipPicture.AlphaTo = "128";
	var_Layer1.Grayscale = 100;
axGauge1.EndUpdate();

51
How can I resize all layers

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 2";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("autosize");
	var_Layer.Visible = false;
	var_Layer.Width = 164.ToString();
	var_Layer.Height = 128.ToString();
axGauge1.LayerAutoSize = axGauge1.Layers["autosize"].Index;
axGauge1.EndUpdate();

50
How can I start moving any layer when user clicks it

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// Layers(DragInfo.Layer).OnDrag = 1
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 11;

49
How can I prevent dragging the layers when user right click it
// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// Cancel = Me.FormatABC("A=2",DragInfo.Button)
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 11;
axGauge1.Layers[0].OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;

48
Is your control DPI-Aware

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 11;
axGauge1.Layers[3].Grayscale = 100;
axGauge1.Layers[4].Grayscale = 100;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[10];
	var_Layer.Width = "128 * dpix";
	var_Layer.Height = "128 * dpiy";
axGauge1.Layers[9].OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
axGauge1.LayerAutoSize = 10;

47
Is it possible to make the control transparent, I would like to put the control on a form, then make the form transparent so the control appears on the desktop with just the images contained in the layers visible

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 10;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
axGauge1.AllowMoveOnClick = true;
axGauge1.LayerUpdate = EXGAUGELib.LayerUpdateEnum.exLayerUpdateScreen;

46
How can I show the layers on perspective

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 10;
axGauge1.Debug = EXGAUGELib.DebugLayerEnum.exDebugLayers;

45
Is it possible to resize all layers after they are loaded (method 2)

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 11;
axGauge1.Layers[3].Grayscale = 100;
axGauge1.Layers[4].Grayscale = 100;
axGauge1.Layers[9].OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[10];
	var_Layer.Width = 128.ToString();
	var_Layer.Height = 128.ToString();
axGauge1.LayerAutoSize = 10;

44
Is it possible to resize all layers after they are loaded (method 1)

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 10;
axGauge1.Layers[3].Grayscale = 100;
axGauge1.Layers[4].Grayscale = 100;
axGauge1.LayerAutoSize = -1;

43
Is it possible to load images for different layers from different folders

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 12;
axGauge1.Layers[0].Background.Picture.Name = "\\..\\Clock\\vista_clock.png";
axGauge1.Layers[9].Background.Picture.Name = "\\..\\Knob 2\\Layer3.png";
axGauge1.Layers[10].Background.Picture.Name = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Led\\Speed\\noBack.png";
EXGAUGELib.Layer var_Layer = axGauge1.Layers[11];
	var_Layer.DefaultOffsetX = 64;
	var_Layer.DefaultOffsetY = -36;
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Name = "gCJKBOI4NBQaBQAhQNJJIIhShQAEEREAIA0ROZ6PT0hQEX5JIhBKhYQrFSxNNhUKoUY7/c6+R6+a7pPg0UAjaISTQwCzMEgtWQ2IyDBJJMYiNJCJgTVJuMghNTcSgFA" +
"xlNZiMinYKNRQ2NxMBhWNQkSRUAQkRRNEhYEBhMogMADOwGfY6N7eXb3DgXeamZgMGbQIStE55RZ7c7ce7/XpzZycOaBf7ZNAlZwiGQIMAnQBnAL4ACKAACABXADMAY4" +
"BLgHYiXS6VQAESyDbAHYAGwvea9E4BXhPIgXD4KQCZD4FeAJzqWFLcNQf1KkSgyFYGMDmVoAEwAHjxQDiOo7AbgKqlaj8WQBRgxDYBfmabpDRTXdumF5ZSwVboXIBrTo" +
"AhgBIwHWFREvoNZtlsb42G6Kg2g4b59AeYgAnAMpWnqBZWk2JoIkQcY8AGQAvgAPBWkcScUnceh6FoLYWAsepsGwLBsCcMIMh8C4AHYOAODOVIUHaYwviKMgvh2eIxmO" +
"RxcnHJ5MjYExBlmM5nBAVgqGodY9nuFxXGoA5al8WIJmAe5OgAIxtD6bJUimU5uC4GxFiOaxXkOc59lwOh0kkFYREWFZ6iSdhiiMQBSg0VArFWAZ0CgepijEKJdlcBZn" +
"nuaJ2n2PBZCgaAHnESZsHmRpFlKBBECQY5hA2DoOgaYYYCoC4zjObpAkCAJ+mVGgQBEFZ7CSVgbgYYYGk8c4ugODRFFgKRUnYAZ4C8E5ECqWwOl8d5/gcGgjmALQRjiU" +
"BQmg9oVDWBAIFoAZ8DmBoAlcWoBlwWAjHEK5pnSehpDALR9A2U1+FWAB3B2X4rmCJwaBcLQNmiG4AG8do6FkLRWjEOw7GsEwRBQUogCIEBRH0LJEAQeR8h4c55jyXwDm" +
"AK9TlMLIoBcS4pgAZwBGwaB3FIGIDBHopsmWS4Xh2HpUgoPhvkOcYcWANBWiCIh5GicJhnKUOvCcJp0CIGxNg6doEIUUopHSGoAA+OhhFeKgVBoGIYnCfo7HcTgdhuG4" +
"zkWBB68GdJmkKQQPcSVx6Hue47l0foMAAZ5yjkXJTBoW5ekgSglFKZ4AAYO5BDwIAdkgZZykcWg3G8OoPlgNpDicT4fH6AwZk+M4zDEMwZGMVB9GGZgqGeO51kmfAbny" +
"GQZjSVofmeepzB8Nojmqah+gQEAzCsKfvgoI5oniYOvCCZaghiWfeiWNY2mOOJ2CMKJyDUVpOhwR38EcDpWlq/4Ox6xLAxCMIkRAShQCoC4C4D42RaCpH+BAGY1wDiDF" +
"oGgbwFQIjbHuH0Y48x+BUCeE8O47h0DRBeN8FwFAFC7ESMgJ4AAOARFyCsOQSgIhbEsK0FoywZC2DaOsFAig3DOGYMwPguAzjPE8G8QZFT1ghEA5IG4QhaHIB4M8Jrag" +
"UitDqK5jIrhvj2HoLYU49hHjvA+NsWQZRligHWLoDwRAkAaGcBICIExIshBwAgQQ8ojjMCeAcB4Hh8DiGMI0X4rhiixEyNcLQBwRASAEIgKAKxjB7CMEAfIfhbjrB0E4" +
"JQGxOgWEiF4CIzhFjgDi+gfQdh2jaBqLQPo+x7CNHSEwYwfwWCfHeA5WYXgsBYAQG4bougag/B6P0eYHwpg/A4D8F4pBXArGQJwRI9RviGHyDYQARQAAVAAPoTwAACCQ" +
"GoCADgrxljzF0KwVwbgDBnGIJIDgGxnCxHgDoGInAxhmC+O4agjwUCQBMEIVAiA3ALCiMkRAKgAhcGsHEKgTg3BFikGoEQ3hqCkE0DsMILQbgCGADgVwGwsiOCKCYGQB" +
"BAgREiKoRABIkATGYK4AAThJAGBCEACYEAEhRGKBAFoCAmBgEYAkSQCQthtEuPsWwAAkgUCIAARzUgnD3HoHAS46xMDFWgDUbQLAlDMgiKsFwIw2AzGwEoUQJXQjXCIG" +
"IAwQhUh9DiJQBAxwQAwFID0IA2wjCkCQBEBYUw3g2AWMsKwNAvgqFWLQJIOwbAcBOEIMgLwxDRGkNACw7gAAwDUPkRokwYBrCKKQLo1xKhIDWGEMYOhnCGD+AETIaBOC" +
"ABEEYVY0yI1SCKE4IgrghBgEEQEA=";
		var_Picture.Width = 64.ToString();
		var_Picture.Height = 64.ToString();

42
How can I specify whether an object can be selected or not

// MouseMove event - Occurs when the user moves the mouse.
private void axGauge1_MouseMoveEvent(object sender, AxEXGAUGELib._IGaugeEvents_MouseMoveEvent e)
{
	System.Diagnostics.Debug.Print( axGauge1.get_LayerFromPoint(-1,-1).ToString() );
}
//this.axGauge1.MouseMoveEvent += new AxEXGAUGELib._IGaugeEvents_MouseMoveEventHandler(this.axGauge1_MouseMoveEvent);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 12;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[10];
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	EXGAUGELib.Picture var_Picture = var_Layer.Background.get_ExtraPicture("extra1");
		var_Picture.Name = "Layer1.png";
		var_Picture.Left = "32";
		var_Picture.Top = "32";
		var_Picture.Width = 64.ToString();
		var_Picture.Height = 64.ToString();
	EXGAUGELib.Foreground var_Foreground = var_Layer.Foreground;
		var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<sha ;;0>selectable");
		var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionLeft,38);
		var_Foreground.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,-5);
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[11];
	EXGAUGELib.Picture var_Picture1 = var_Layer1.Background.get_ExtraPicture("extra2");
		var_Picture1.Name = "Layer1.png";
		var_Picture1.Left = "width-64";
		var_Picture1.Top = "height-84 - 32";
		var_Picture1.Width = 64.ToString();
		var_Picture1.Height = 64.ToString();
		var_Picture1.Selectable = false;
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,25);
	EXGAUGELib.Foreground var_Foreground1 = var_Layer1.Foreground;
		var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"<sha ;;0>not selectable");
		var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionAnchor,8);
		var_Foreground1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,"height-theight/4");
axGauge1.EndUpdate();

41
How do I get the layer/object/picture from the cursor
// MouseMove event - Occurs when the user moves the mouse.
private void axGauge1_MouseMoveEvent(object sender, AxEXGAUGELib._IGaugeEvents_MouseMoveEvent e)
{
	System.Diagnostics.Debug.Print( axGauge1.get_LayerFromPoint(-1,-1).ToString() );
}
//this.axGauge1.MouseMoveEvent += new AxEXGAUGELib._IGaugeEvents_MouseMoveEventHandler(this.axGauge1_MouseMoveEvent);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 10;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;

40
How can I display a speedometer

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["arc"].Clip.Value = axGauge1.Value;
	axGauge1.Layers["noDigit"].Background.get_ExtraPicture("80").Name = axGauge1.FormatABC("`no` + int((value MIN 0 MAX 99)/10) + `.png`",axGauge1.Value,null,null);
	axGauge1.Layers["noDigit"].Background.get_ExtraPicture("08").Name = axGauge1.FormatABC("`no` + int((value MIN 0 MAX 99) mod 10) + `.png`",axGauge1.Value,null,null);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value + B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.BackColor = Color.FromArgb(40,40,40);
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Led\\Speed";
axGauge1.Layers.Count = 6;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Key = "arcBack";
	var_Layer.Background.Picture.Name = "noArcBack.png";
	EXGAUGELib.ClipPie var_ClipPie = var_Layer.Clip.Pie;
		var_ClipPie.StartAngle = 240.ToString();
		var_ClipPie.SweepAngle = 240.ToString();
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Key = "arc";
	var_Layer1.Background.Picture.Name = "noArc.png";
	EXGAUGELib.ClipPie var_ClipPie1 = var_Layer1.Clip.Pie;
		var_ClipPie1.StartAngle = 240.ToString();
		var_ClipPie1.SweepAngle = "value/100 * 240";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer2.Key = "pointer";
	var_Layer2.Background.Picture.Name = "noLine.png";
	var_Layer2.DefaultRotateAngle = 240;
	var_Layer2.RotateAngleToValue = "value/240 * 100";
	var_Layer2.ValueToRotateAngle = "value / 100 * 240";
	var_Layer2.RotateAngleValid = "value > 240 ? (value > 300 ? 0 : 240) : value";
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Key = "noBack";
	var_Layer3.Left = "(width - 55 * 2)/2";
	var_Layer3.Top = "(height - 94 * 1)/2";
	var_Layer3.Width = "2 * 45 + 8";
	var_Layer3.Height = "1 * 94";
	var_Layer3.Transparency = 90;
	EXGAUGELib.Picture var_Picture = var_Layer3.Background.get_ExtraPicture("80");
		var_Picture.Name = "noBack.png";
		var_Picture.Left = "-4";
		var_Picture.Width = "70";
	EXGAUGELib.Picture var_Picture1 = var_Layer3.Background.get_ExtraPicture("08");
		var_Picture1.Name = "noBack.png";
		var_Picture1.Left = "36";
		var_Picture1.Width = 70.ToString();
EXGAUGELib.Layer var_Layer4 = axGauge1.Layers[4];
	var_Layer4.Key = "noDigit";
	var_Layer4.Left = "(width - 55 * 2)/2";
	var_Layer4.Top = "(height - 94 * 1)/2";
	var_Layer4.Width = "2 * 45 + 8";
	var_Layer4.Height = "1 * 94";
	EXGAUGELib.Picture var_Picture2 = var_Layer4.Background.get_ExtraPicture("80");
		var_Picture2.Name = "no1.png";
		var_Picture2.Left = "-4";
		var_Picture2.Width = "70";
	EXGAUGELib.Picture var_Picture3 = var_Layer4.Background.get_ExtraPicture("08");
		var_Picture3.Name = "no2.png";
		var_Picture3.Left = "36";
		var_Picture3.Width = 70.ToString();
EXGAUGELib.Layer var_Layer5 = axGauge1.Layers[5];
	var_Layer5.Key = "noCap";
	var_Layer5.Background.Picture.Name = "noCap.png";
	var_Layer5.Transparency = 45;
axGauge1.Layers["pointer"].Position = axGauge1.Layers["noCap"].Position;
axGauge1.LayerOfValue = axGauge1.Layers["pointer"].Index;
axGauge1.Value = 56;
axGauge1.EndUpdate();

39
How can I display LED-numbers

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value MIN 0 MAX 99",.Value,null,null);
	axGauge1.Layers["noDigit"].Background.get_ExtraPicture("80").Name = axGauge1.FormatABC("`no` + int((value MIN 0 MAX 99)/10) + `.png`",axGauge1.Value,null,null);
	axGauge1.Layers["noDigit"].Background.get_ExtraPicture("08").Name = axGauge1.FormatABC("`no` + int((value MIN 0 MAX 99) mod 10) + `.png`",axGauge1.Value,null,null);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value + B",axGauge1.Layers["noDigit"].Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

// Timer event - Occurs when the interval elapses.
private void axGauge1_Timer(object sender, AxEXGAUGELib._IGaugeEvents_TimerEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value = 99 ? 0 : ( value  + B )",axGauge1.Value,1,null);
}
//this.axGauge1.Timer += new AxEXGAUGELib._IGaugeEvents_TimerEventHandler(this.axGauge1_Timer);

axGauge1.BeginUpdate();
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Led\\Speed";
axGauge1.Layers.Count = 3;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[1];
	var_Layer.Key = "noBack";
	var_Layer.Left = "(width - 55 * 2)/2";
	var_Layer.Top = "(height - 94 * 1)/2";
	var_Layer.Width = "2 * 45 + 8";
	var_Layer.Height = "1 * 94";
	var_Layer.Transparency = 90;
	EXGAUGELib.Picture var_Picture = var_Layer.Background.get_ExtraPicture("80");
		var_Picture.Name = "noBack.png";
		var_Picture.Left = "-4";
		var_Picture.Width = "70";
	EXGAUGELib.Picture var_Picture1 = var_Layer.Background.get_ExtraPicture("08");
		var_Picture1.Name = "noBack.png";
		var_Picture1.Left = "36";
		var_Picture1.Width = 70.ToString();
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[2];
	var_Layer1.Key = "noDigit";
	var_Layer1.Left = "(width - 55 * 2)/2";
	var_Layer1.Top = "(height - 94 * 1)/2";
	var_Layer1.Width = "2 * 45 + 8";
	var_Layer1.Height = "1 * 94";
	EXGAUGELib.Picture var_Picture2 = var_Layer1.Background.get_ExtraPicture("80");
		var_Picture2.Name = "no1.png";
		var_Picture2.Left = "-4";
		var_Picture2.Width = "70";
	EXGAUGELib.Picture var_Picture3 = var_Layer1.Background.get_ExtraPicture("08");
		var_Picture3.Name = "no2.png";
		var_Picture3.Left = "36";
		var_Picture3.Width = 70.ToString();
axGauge1.LayerOfValue = axGauge1.Layers["noDigit"].Index;
axGauge1.Value = 73;
axGauge1.TimerInterval = 100;
axGauge1.EndUpdate();

38
How can I display a simple knob, to fit the control's client area

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.LayerAutoSize = -1;
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerWidth,"width MAX height");
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerHeight,"width MAX height");
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[4];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.DefaultRotateAngle = -142;

37
How can I display a switch

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
private void axGauge1_ClickEvent(object sender, EventArgs e)
{
	axGauge1.Value = axGauge1.FormatABC("(value + 1) mod 2",.Value,null,null);
}
//this.axGauge1.ClickEvent += new EventHandler(this.axGauge1_ClickEvent);

// DragEnd event - Occurs once the user ends dragging a layer.
private void axGauge1_DragEnd(object sender, AxEXGAUGELib._IGaugeEvents_DragEndEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("(value < 24 ? 0 : 1)",axGauge1.Layers["knob"].OffsetX,null,null);
}
//this.axGauge1.DragEnd += new AxEXGAUGELib._IGaugeEvents_DragEndEventHandler(this.axGauge1_DragEnd);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value > 0 ? 1 : 0",e.delta,null,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Linear\\Switch";
axGauge1.Layers.Count = 4;
axGauge1.Layers[0].Background.Picture.Name = "background.png";
EXGAUGELib.Layer var_Layer = axGauge1.Layers[1];
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Name = "Indicator_ON.png";
		var_Picture.DisplayAs = EXGAUGELib.PictureDisplayEnum.MiddleLeft;
	var_Layer.OffsetXValid = 48.ToString();
	var_Layer.OffsetYValid = 0.ToString();
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[2];
	EXGAUGELib.Picture var_Picture1 = var_Layer1.Background.Picture;
		var_Picture1.Name = "Indicator_OFF.png";
		var_Picture1.DisplayAs = EXGAUGELib.PictureDisplayEnum.MiddleRight;
	var_Layer1.OffsetXValid = -12.ToString();
	var_Layer1.OffsetYValid = 0.ToString();
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[3];
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer2.Key = "knob";
	EXGAUGELib.Picture var_Picture2 = var_Layer2.Background.Picture;
		var_Picture2.Name = "knob.png";
		var_Picture2.DisplayAs = EXGAUGELib.PictureDisplayEnum.MiddleCenter;
	var_Layer2.DefaultOffsetY = "9";
	var_Layer2.DefaultOffsetX = "-5";
	var_Layer2.OffsetYValid = "0";
	var_Layer2.ValueToOffsetX = "value = 0 ? 0 : 48";
	var_Layer2.OffsetToValue = "value = 0 ? 0 : 1";
	var_Layer2.OffsetXValid = "(value MIN 0 MAX 48)";
axGauge1.LayerOfValue = axGauge1.Layers["knob"].Index;
axGauge1.Value = 1;

36
How can I colorize the layer

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (value format ``)",axGauge1.Layers[4].Value,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// Click event - Occurs when the user presses and then releases the left mouse button over the control.
private void axGauge1_ClickEvent(object sender, EventArgs e)
{
	Object var_Object = axGauge1.Layers[axGauge1.get_LayerFromPoint(-1,-1)];
}
//this.axGauge1.ClickEvent += new EventHandler(this.axGauge1_ClickEvent);

// MouseIn event - Notifies that the cursor enters the layer.
private void axGauge1_MouseIn(object sender, AxEXGAUGELib._IGaugeEvents_MouseInEvent e)
{
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[e.layer];
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,0);
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,0);
}
//this.axGauge1.MouseIn += new AxEXGAUGELib._IGaugeEvents_MouseInEventHandler(this.axGauge1_MouseIn);

// MouseOut event - Notifies that the cursor exits the layer.
private void axGauge1_MouseOut(object sender, AxEXGAUGELib._IGaugeEvents_MouseOutEvent e)
{
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[e.layer];
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,axGauge1.get_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerBrightness));
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,axGauge1.get_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerBrightness));
		var_Layer.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exBlueChannel,axGauge1.get_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerBrightness));
}
//this.axGauge1.MouseOut += new AxEXGAUGELib._IGaugeEvents_MouseOutEventHandler(this.axGauge1_MouseOut);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - B",.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerBrightness,51);
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 2";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 6;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.RotateCenterX = "lwidth/2-3";
	var_Layer.RotateCenterY = "lheight/2+23";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[4];
	var_Layer1.DefaultRotateAngle = -132;
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer1.RotateAngleValid = "value < 0 ? 0  : (value > 236 ? (value > 300 ? 0 : 236 ) : value)";
	var_Layer1.ValueToRotateAngle = "value < 20 ? (value /20 * 86) : (value - 20) / (90-20) * (236-86) + 86";
	var_Layer1.RotateAngleToValue = "value < 86 ? value / 86 * 20: ( 20 + ( value -86 ) / (236-86) * 70 )";
axGauge1.Value = 45;
axGauge1.EndUpdate();

35
How can I imitate the rotating angle on an unequal scale

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (value format ``)",axGauge1.Layers[4].Value,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - B",.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 2";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 6;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.RotateCenterX = "lwidth/2-3";
	var_Layer.RotateCenterY = "lheight/2+23";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[4];
	var_Layer1.DefaultRotateAngle = -132;
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer1.RotateAngleValid = "value < 0 ? 0  : (value > 236 ? (value > 300 ? 0 : 236 ) : value)";
	var_Layer1.ValueToRotateAngle = "value < 20 ? (value /20 * 86) : (value - 20) / (90-20) * (236-86) + 86";
	var_Layer1.RotateAngleToValue = "value < 86 ? value / 86 * 20: ( 20 + ( value -86 ) / (236-86) * 70 )";
axGauge1.Value = 45;
axGauge1.EndUpdate();

34
How can I rotate more knobs at once

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (value format ``)",axGauge1.Layers[4].Value,null,null));
	axGauge1.Layers[2].RotateAngle = axGauge1.Layers[4].RotateAngle;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[4].RotateAngle = axGauge1.FormatABC("A - B",axGauge1.Layers[4].RotateAngle,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[4];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.DefaultRotateAngle = -142;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[2];
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;

33
How can I clip one layer while other is rotating

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (value format ``)",axGauge1.Layers[9].Value,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotateAngle: <b>` + ( A format `` ) + `°`",axGauge1.Layers[9].RotateAngle,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,18);
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveCenter: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY,null));
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,36);
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveOffset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveOffsetX,axGauge1.Layers[9].RotamoveOffsetY,null));
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,54);
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Offset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].OffsetX,axGauge1.Layers[9].OffsetY,null));
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,72);
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`<sha ;;0><font ;12><b>` + ((100 - value) format ``)",axGauge1.Value,null,null));
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionLeft,axGauge1.FormatABC("value - 12",[9].get_LayerToClientX(axGauge1.Layers.RotamoveCenterX,.RotamoveCenterY),null,null));
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,axGauge1.FormatABC("value - 36",[9].get_LayerToClientY(axGauge1.Layers.RotamoveCenterX,.RotamoveCenterY),null,null));
	axGauge1.Layers[3].Clip.Value = axGauge1.Layers[9].RotateAngle;
	axGauge1.Layers[4].Clip.Value = axGauge1.Layers[3].Clip.Value;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.RotateAngleValid = "value < 0 ? 0 : ( value >= 360 ? 359.999 : value )"
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("100 - value - B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 11;
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.DefaultRotateAngle = -126;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.RotateAngleToValue = "100 - value / 360 * 100";
	var_Layer.ValueToRotateAngle = "(value)/100 * 360";
axGauge1.Layers[3].Clip.Pie.SweepAngle = "value";
axGauge1.Layers[4].Clip.Pie.SweepAngle = axGauge1.Layers[3].Clip.Pie.SweepAngle;
axGauge1.Layers[9].Value = 25;
axGauge1.EndUpdate();

32
Can I move one or more layers at once

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers[3].set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,axGauge1.FormatABC("100 - value ",axGauge1.Value,null,null));
	axGauge1.Layers[4].set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,axGauge1.Layers[3].get_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel));
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (100 - value format ``)",axGauge1.Layers[9].Value,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotateAngle: <b>` + ( A format `` ) + `°`",axGauge1.Layers[9].RotateAngle,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,18);
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveCenter: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY,null));
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,36);
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveOffset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveOffsetX,axGauge1.Layers[9].RotamoveOffsetY,null));
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,54);
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Offset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].OffsetX,axGauge1.Layers[9].OffsetY,null));
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,72);
	axGauge1.Layers[10].RotateAngle = axGauge1.Layers[9].RotateAngle;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void axGauge1_DblClick(object sender, AxEXGAUGELib._IGaugeEvents_DblClickEvent e)
{
	axGauge1.Value = 0;
}
//this.axGauge1.DblClick += new AxEXGAUGELib._IGaugeEvents_DblClickEventHandler(this.axGauge1_DblClick);

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// ExtraCaption("Clockwise",0) = FormatABC( "` Clockwise: <b>` + ( value != 0 ? `Yes` : `No`) ", DragInfo.Clockwise )
	// ExtraCaption("Cumulative",0) = FormatABC( "` CumulativeRotateAngle: <b>` + ( value format `` ) + `°` ", DragInfo.CumulativeRotateAngle )
	System.Diagnostics.Debug.Print( e.dragInfo.ToString() );
	axGauge1.set_ExtraCaption("Clockwise",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,90);
	axGauge1.set_ExtraCaption("Cumulative",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,108);
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragEnd event - Occurs once the user ends dragging a layer.
private void axGauge1_DragEnd(object sender, AxEXGAUGELib._IGaugeEvents_DragEndEvent e)
{
	axGauge1.set_ExtraCaption("Clockwise",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"");
}
//this.axGauge1.DragEnd += new AxEXGAUGELib._IGaugeEvents_DragEndEventHandler(this.axGauge1_DragEnd);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug  = 227
	// DragInfo.RotateAngleValid = "value < 0 ? 0 : (value > 360 ? 359.999999 : value)"
	axGauge1.set_ExtraCaption("Clockwise",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"");
	axGauge1.set_ExtraCaption("Cumulative",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,"");
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("100 - A - B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 11;
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.DefaultRotateAngle = -126;
	var_Layer.RotateAngleToValue = "100 - (value ) / 360 * 100";
	var_Layer.ValueToRotateAngle = "(value)/100 * 360";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[10];
	var_Layer1.Grayscale = 100;
	var_Layer1.Transparency = 25;
	var_Layer1.DefaultRotateAngle = -69.5;
	var_Layer1.RotateAngleToValue = "100 - (value ) / 360 * 100";
	var_Layer1.ValueToRotateAngle = "(value 1)/100 * 360";
	var_Layer1.Background.Picture.Value = "Highlighted_Layer4.png";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[3];
	var_Layer2.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer2.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,0);
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[4];
	var_Layer3.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer3.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,0);
axGauge1.LayerOfValue = 9;
axGauge1.Value = 5;
axGauge1.EndUpdate();

31
How can I rotate a knob by moving ( rotamove )

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers[3].Transparency = axGauge1.Value;
	axGauge1.Layers[4].Transparency = axGauge1.Value;
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (100 - value format ``)",axGauge1.Layers[9].Value,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotateAngle: <b>` + ( A format `` ) + `°`",axGauge1.Layers[9].RotateAngle,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,18);
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveCenter: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY,null));
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,36);
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveOffset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveOffsetX,axGauge1.Layers[9].RotamoveOffsetY,null));
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,54);
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Offset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].OffsetX,axGauge1.Layers[9].OffsetY,null));
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,72);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DblClick event - Occurs when the user dblclk the left mouse button over an object.
private void axGauge1_DblClick(object sender, AxEXGAUGELib._IGaugeEvents_DblClickEvent e)
{
	axGauge1.Value = 0;
}
//this.axGauge1.DblClick += new AxEXGAUGELib._IGaugeEvents_DblClickEventHandler(this.axGauge1_DblClick);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.RotateAngleValid = "value < 0 ? 0 : (value > 360 ? 359.999999 : value)"
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("100 - A - B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 11;
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.DefaultRotateAngle = -126;
	var_Layer.RotateAngleToValue = "100 - value / 360 * 100";
	var_Layer.ValueToRotateAngle = "(value)/100 * 360";
	var_Layer.Background.get_ExtraPicture("Aka").Value = "Highlighted_Layer4.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[3];
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[4];
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer2.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
	var_Layer2.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exRedChannel,100);
axGauge1.Value = 15;
axGauge1.EndUpdate();

30
How can I display a knob, and displays the current value on it

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Value: <b>` + (100 - value format ``)",axGauge1.Layers[9].Value,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotateAngle: <b>` + ( A format `` ) + `°`",axGauge1.Layers[9].RotateAngle,null,null));
	axGauge1.set_ExtraCaption("RotateAngle",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,18);
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveCenter: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY,null));
	axGauge1.set_ExtraCaption("RotamoveCenter",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,36);
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` RotamoveOffset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].RotamoveOffsetX,axGauge1.Layers[9].RotamoveOffsetY,null));
	axGauge1.set_ExtraCaption("RotamoveOffset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,54);
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("` Offset: <b> (` + A + `,` + B + `)`",axGauge1.Layers[9].OffsetX,axGauge1.Layers[9].OffsetY,null));
	axGauge1.set_ExtraCaption("Offset",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,72);
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`<sha ;;0><font ;12><b>` + (100 - value format `0`)",axGauge1.Value,null,null));
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionLeft,axGauge1.FormatABC("value - 8",axGauge1.Layers[9].get_LayerToClientX(axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY),null,null));
	axGauge1.set_ExtraCaption("Client",EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaptionTop,axGauge1.FormatABC("value - 26",axGauge1.Layers[9].get_LayerToClientY(axGauge1.Layers[9].RotamoveCenterX,axGauge1.Layers[9].RotamoveCenterY),null,null));
	axGauge1.Layers[7].RotateAngle = axGauge1.Layers[0].RotateAngle;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("100 - A - B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob";
axGauge1.PicturesName = "`Layer` + str(value + 1) + `.png`";
axGauge1.Layers.Count = 11;
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[9];
	var_Layer.DefaultRotateAngle = -126;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotamove;
	var_Layer.RotateAngleToValue = "100 - (value / 360 * 100)";
	var_Layer.ValueToRotateAngle = "(value)/100 * 360";
	var_Layer.ValueToOffsetX = "value";
	var_Layer.OffsetToValue = "value";
	var_Layer.RotateAngleValid = "int(value / 360 * 100)/100 * 360";
axGauge1.Layers[3].Visible = false;
axGauge1.Layers[4].Visible = false;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[0];
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[7];
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer2.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
axGauge1.Value = 25;
axGauge1.EndUpdate();

29
How can I display an indicator

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[1].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",.Layers[1].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Linear\\Indicator";
axGauge1.Layers.Count = 3;
axGauge1.Layers[0].Background.Picture.Name = "Background.png";
EXGAUGELib.Layer var_Layer = axGauge1.Layers[1];
	var_Layer.Background.Picture.Name = "Green_Lights.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipRectangle var_ClipRectangle = var_Clip.Rectangle;
			var_ClipRectangle.Height = "(100 - value)/100 * height";
			var_ClipRectangle.InverseClip = true;
		var_Clip.Value = 50;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[2];
	var_Layer1.Visible = false;
	var_Layer1.Background.Picture.Name = "overlay_top_layer.png";

28
How can I display a gauge

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers[1].set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exGreenChannel,axGauge1.Value);
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.BeginUpdate();
axGauge1.BackColor = Color.FromArgb(217,217,217);
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Guage";
axGauge1.Layers.Count = 2;
axGauge1.AllowSmoothChange = EXGAUGELib.SmoothPropertyEnum.exSmoothChangeless;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.RotateCenterY = "lheight/2 + 78";
	var_Layer.Background.Picture.Name = "Guage_Background.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Background.Picture.Name = "Guage_Needle.png";
	var_Layer1.RotateAngleValid = "value < 90 ? value : (value < 180 ? 90 : ( value < 270 ? 270 : value ))";
	var_Layer1.RotateAngleToValue = "value >= 270 ? (value - 270)/90*50 : (value/90)*50 + 50";
	var_Layer1.ValueToRotateAngle = "value < 50 ? (270 + value/50*90) : (value - 50)/50 * 90";
	var_Layer1.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer1.set_Brightness(EXGAUGELib.ColorAdjustmentChannelEnum.exAllChannels,0);
axGauge1.Value = 78;
axGauge1.EndUpdate();

27
How can I display a clock (rotate,wolf)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["sec"].Value = axGauge1.Value;
	axGauge1.Layers["min"].Value = axGauge1.Value;
	axGauge1.Layers["hour"].Value = axGauge1.Value;
	axGauge1.Layers["range"].Clip.Value = axGauge1.Layers["pointer"].Value;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = -1
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers["pointer"].Value = axGauge1.FormatABC("A - B",axGauge1.Layers["pointer"].Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

// Timer event - Occurs when the interval elapses.
private void axGauge1_Timer(object sender, AxEXGAUGELib._IGaugeEvents_TimerEvent e)
{
	axGauge1.Value = axGauge1.FormatABC(" date(`now`)",null,null,null);
	axGauge1.Layers["pointer"].Value = axGauge1.FormatABC("sin((value/100 mod 100)/100 * 2 * asin(1)) * 100",e.tickCount,null,null);
	axGauge1.Layers["range"].Clip.Value = axGauge1.Layers["pointer"].Value;
}
//this.axGauge1.Timer += new AxEXGAUGELib._IGaugeEvents_TimerEventHandler(this.axGauge1_Timer);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Clock - Wolf";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 9;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	var_Layer.Background.Picture.Name = "Back.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Key = "scale";
	var_Layer1.DefaultOffsetX = -90;
	var_Layer1.DefaultOffsetY = -150;
	var_Layer1.Background.Picture.Name = "Scale.png";
	var_Layer1.RotateCenterLayer = 1;
	var_Layer1.RotateCenterX = "(lwidth+181)/2";
	var_Layer1.RotateCenterY = "(lheight+232)/2";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.Key = "range";
	var_Layer2.DefaultOffsetX = axGauge1.Layers["scale"].DefaultOffsetX;
	var_Layer2.DefaultOffsetY = axGauge1.Layers["scale"].DefaultOffsetY;
	var_Layer2.RotateCenterLayer = axGauge1.Layers["scale"].Index;
	EXGAUGELib.Picture var_Picture = var_Layer2.Background.Picture;
		var_Picture.Name = "ScalePointerArc.png";
	var_Layer2.RotateCenterLayer = axGauge1.Layers["scale"].Index;
	EXGAUGELib.ClipPie var_ClipPie = var_Layer2.Clip.Pie;
		var_ClipPie.RadiusX = 100.ToString();
		var_ClipPie.RadiusY = 100.ToString();
		var_ClipPie.CenterX = axGauge1.Layers["scale"].RotateCenterX;
		var_ClipPie.CenterY = axGauge1.Layers["scale"].RotateCenterY;
		var_ClipPie.StartAngle = -148.ToString();
		var_ClipPie.SweepAngle = "value/100 * 300";
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Key = "pointer";
	var_Layer3.DefaultOffsetX = axGauge1.Layers["scale"].DefaultOffsetX;
	var_Layer3.DefaultOffsetY = axGauge1.Layers["scale"].DefaultOffsetY;
	EXGAUGELib.Picture var_Picture1 = var_Layer3.Background.Picture;
		var_Picture1.Name = "ScalePointer.png";
	var_Layer3.RotateCenterLayer = axGauge1.Layers["scale"].Index;
	var_Layer3.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer3.DefaultRotateAngle = -148;
	var_Layer3.RotateAngleValid = "value > 300 ? (value > 330 ? 0 : 300) : value";
	var_Layer3.RotateAngleToValue = "value / 300 * 100";
	var_Layer3.ValueToRotateAngle = "value /100 * 300";
EXGAUGELib.Layer var_Layer4 = axGauge1.Layers[4];
	var_Layer4.Key = "bolt";
	var_Layer4.DefaultOffsetX = axGauge1.Layers["scale"].DefaultOffsetX;
	var_Layer4.DefaultOffsetY = axGauge1.Layers["scale"].DefaultOffsetY;
	EXGAUGELib.Picture var_Picture2 = var_Layer4.Background.Picture;
		var_Picture2.Name = "Bolt.png";
EXGAUGELib.Layer var_Layer5 = axGauge1.Layers[5];
	var_Layer5.Left = "(width-512)/2";
	var_Layer5.Top = "(height-512)/2";
	var_Layer5.Height = 512.ToString();
	var_Layer5.Width = 512.ToString();
	var_Layer5.Key = "sec";
	var_Layer5.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer5.Selectable = false;
	var_Layer5.Background.Picture.Name = "second-hand.png";
	var_Layer5.ValueToRotateAngle = "((2:=(((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - " +
"floor(=:1)) * 60 )) - floor(=:2) ) * 360";
	var_Layer5.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer6 = axGauge1.Layers[6];
	var_Layer6.Left = "(width-512)/2";
	var_Layer6.Top = "(height-512)/2";
	var_Layer6.Height = 512.ToString();
	var_Layer6.Width = 512.ToString();
	var_Layer6.Key = "min";
	var_Layer6.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer6.Selectable = false;
	var_Layer6.Background.Picture.Name = "Minute.png";
	var_Layer6.ValueToRotateAngle = "((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - floor(" +
"=:1)) * 360";
	var_Layer6.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer7 = axGauge1.Layers[7];
	var_Layer7.Left = "(width-512)/2";
	var_Layer7.Top = "(height-512)/2";
	var_Layer7.Height = 512.ToString();
	var_Layer7.Width = 512.ToString();
	var_Layer7.Key = "hour";
	var_Layer7.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer7.Background.Picture.Name = "Hour.png";
	var_Layer7.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer7.RotateAngleToValue = "value / 360 * 0.5";
EXGAUGELib.Layer var_Layer8 = axGauge1.Layers[8];
	var_Layer8.Left = "(width-512)/2";
	var_Layer8.Top = "(height-512)/2";
	var_Layer8.Height = 512.ToString();
	var_Layer8.Width = 512.ToString();
	var_Layer8.Key = "front";
	var_Layer8.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer8.Background.Picture.Name = "front.png";
axGauge1.LayerOfValue = axGauge1.Layers["hour"].Index;
axGauge1.Value = axGauge1.FormatABC("date(`now`)",null,null,null);
axGauge1.TimerInterval = 100;

26
How can I display a clock (rotate,vintage)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["sec"].Value = axGauge1.Value;
	axGauge1.Layers["min"].Value = axGauge1.Value;
	axGauge1.Layers["hour"].Value = axGauge1.Value;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - 1/24/60/60*B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

// Timer event - Occurs when the interval elapses.
private void axGauge1_Timer(object sender, AxEXGAUGELib._IGaugeEvents_TimerEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value + 1/24/60/60",axGauge1.Value,null,null);
}
//this.axGauge1.Timer += new AxEXGAUGELib._IGaugeEvents_TimerEventHandler(this.axGauge1_Timer);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Clock - Vintage";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	var_Layer.Background.Picture.Name = "Back.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Position = 3;
	var_Layer1.Left = "(width-512)/2";
	var_Layer1.Top = "(height-512)/2";
	var_Layer1.Height = 512.ToString();
	var_Layer1.Width = 512.ToString();
	var_Layer1.Key = "sec";
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Selectable = false;
	var_Layer1.Background.Picture.Name = "second-hand.png";
	var_Layer1.ValueToRotateAngle = "((2:=(((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - " +
"floor(=:1)) * 60 )) - floor(=:2) ) * 360";
	var_Layer1.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.Left = "(width-512)/2";
	var_Layer2.Top = "(height-512)/2";
	var_Layer2.Height = 512.ToString();
	var_Layer2.Width = 512.ToString();
	var_Layer2.Position = 2;
	var_Layer2.Key = "min";
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer2.Selectable = false;
	var_Layer2.Background.Picture.Name = "Minute.png";
	var_Layer2.ValueToRotateAngle = "((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - floor(" +
"=:1)) * 360";
	var_Layer2.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Left = "(width-512)/2";
	var_Layer3.Top = "(height-512)/2";
	var_Layer3.Height = 512.ToString();
	var_Layer3.Width = 512.ToString();
	var_Layer3.Position = 1;
	var_Layer3.Key = "hour";
	var_Layer3.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer3.Background.Picture.Name = "Hour.png";
	var_Layer3.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer3.RotateAngleToValue = "value / 360 * 0.5";
EXGAUGELib.Layer var_Layer4 = axGauge1.Layers[4];
	var_Layer4.Left = "(width-512)/2";
	var_Layer4.Top = "(height-512)/2";
	var_Layer4.Height = 512.ToString();
	var_Layer4.Width = 512.ToString();
	var_Layer4.Position = 1;
	var_Layer4.Key = "front";
	var_Layer4.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer4.Background.Picture.Name = "front.png";
	var_Layer4.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer4.RotateAngleToValue = "value / 360 * 0.5";
axGauge1.LayerOfValue = 3;
axGauge1.Value = axGauge1.FormatABC("date(`now`)",null,null,null);
axGauge1.TimerInterval = 1000;

25
How can I display a clock (rotate,london)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["sec"].Value = axGauge1.Value;
	axGauge1.Layers["min"].Value = axGauge1.Value;
	axGauge1.Layers["hour"].Value = axGauge1.Value;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - 1/24/60/60*B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

// Timer event - Occurs when the interval elapses.
private void axGauge1_Timer(object sender, AxEXGAUGELib._IGaugeEvents_TimerEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value + 1/24/60/60",.Value,null,null);
}
//this.axGauge1.Timer += new AxEXGAUGELib._IGaugeEvents_TimerEventHandler(this.axGauge1_Timer);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Clock - London";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 6;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	var_Layer.Background.Picture.Name = "Back.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Position = 3;
	var_Layer1.Left = "(width-512)/2";
	var_Layer1.Top = "(height-512)/2";
	var_Layer1.Height = 512.ToString();
	var_Layer1.Width = 512.ToString();
	var_Layer1.Key = "sec";
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Selectable = false;
	var_Layer1.RotateCenterLayer = 1;
	var_Layer1.Background.Picture.Name = "second-hand.png";
	var_Layer1.ValueToRotateAngle = "((2:=(((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - " +
"floor(=:1)) * 60 )) - floor(=:2) ) * 360";
	var_Layer1.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.Left = "(width-512)/2";
	var_Layer2.Top = "(height-512)/2";
	var_Layer2.Height = 512.ToString();
	var_Layer2.Width = 512.ToString();
	var_Layer2.Position = 2;
	var_Layer2.RotateCenterLayer = 2;
	var_Layer2.Key = "min";
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer2.Selectable = false;
	var_Layer2.Background.Picture.Name = "Minute.png";
	var_Layer2.ValueToRotateAngle = "((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - floor(" +
"=:1)) * 360";
	var_Layer2.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Left = "(width-512)/2";
	var_Layer3.Top = "(height-512)/2";
	var_Layer3.Height = 512.ToString();
	var_Layer3.Width = 512.ToString();
	var_Layer3.Position = 1;
	var_Layer3.Key = "hour";
	var_Layer3.RotateCenterLayer = 3;
	var_Layer3.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer3.Background.Picture.Name = "Hour.png";
	var_Layer3.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer3.RotateAngleToValue = "value / 360 * 0.5";
EXGAUGELib.Layer var_Layer4 = axGauge1.Layers[4];
	var_Layer4.Left = "(width-512)/2";
	var_Layer4.Top = "(height-512)/2";
	var_Layer4.Height = 512.ToString();
	var_Layer4.Width = 512.ToString();
	var_Layer4.Position = 1;
	var_Layer4.Key = "front";
	var_Layer4.RotateCenterLayer = 4;
	var_Layer4.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer4.Background.Picture.Name = "front.png";
	var_Layer4.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer4.RotateAngleToValue = "value / 360 * 0.5";
EXGAUGELib.Layer var_Layer5 = axGauge1.Layers[5];
	var_Layer5.Left = "(width-512)/2";
	var_Layer5.Top = "(height-512)/2";
	var_Layer5.Height = 512.ToString();
	var_Layer5.Width = 512.ToString();
	var_Layer5.Key = "bolt";
	var_Layer5.RotateCenterLayer = 5;
	var_Layer5.Background.Picture.Name = "Bolt.png";
axGauge1.LayerOfValue = axGauge1.Layers["hour"].Index;
axGauge1.Value = axGauge1.FormatABC("date(`now`)",null,null,null);
axGauge1.TimerInterval = 1000;

24
How can I display a clock (rotate)

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["sec"].Value = axGauge1.Value;
	axGauge1.Layers["min"].Value = axGauge1.Value;
	axGauge1.Layers["hour"].Value = axGauge1.Value;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("A - 1/24/60/60*B",axGauge1.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

// Timer event - Occurs when the interval elapses.
private void axGauge1_Timer(object sender, AxEXGAUGELib._IGaugeEvents_TimerEvent e)
{
	axGauge1.Value = axGauge1.FormatABC("value + 1/24/60/60",axGauge1.Value,null,null);
}
//this.axGauge1.Timer += new AxEXGAUGELib._IGaugeEvents_TimerEventHandler(this.axGauge1_Timer);

axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Clock";
axGauge1.set_DefaultLayer(EXGAUGELib.DefaultLayerPropertyEnum.exDefLayerRotateType,2);
axGauge1.Layers.Count = 4;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Name = "vista_clock.png";
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Position = 3;
	var_Layer1.Key = "sec";
	var_Layer1.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer1.Selectable = false;
	var_Layer1.Background.Picture.Name = "second-hand.png";
	var_Layer1.ValueToRotateAngle = "((2:=(((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - " +
"floor(=:1)) * 60 )) - floor(=:2) ) * 360";
	var_Layer1.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer2 = axGauge1.Layers[2];
	var_Layer2.Position = 2;
	var_Layer2.Key = "min";
	var_Layer2.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer2.Selectable = false;
	var_Layer2.Background.Picture.Name = "Minute.png";
	var_Layer2.ValueToRotateAngle = "((1:=( ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) ) * 24 ))  - floor(" +
"=:1)) * 360";
	var_Layer2.RotateAngleToValue = "value / 360 / 24 / 60";
EXGAUGELib.Layer var_Layer3 = axGauge1.Layers[3];
	var_Layer3.Position = 1;
	var_Layer3.Key = "hour";
	var_Layer3.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer3.Background.Picture.Name = "Hour.png";
	var_Layer3.ValueToRotateAngle = "2 * 360 * ( (0:=(value < 0 ? floor(value) + 1 - value : value - floor(value))) < 0.5 ? =:0 : (0:= (=:0 - 0.5)) )";
	var_Layer3.RotateAngleToValue = "value / 360 * 0.5";
axGauge1.LayerOfValue = 3;
axGauge1.Value = axGauge1.FormatABC("date(`now`)",null,null,null);
axGauge1.TimerInterval = 1000;

23
How can I clip as a triangle

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaY )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipPolygon var_ClipPolygon = var_Clip.Polygon;
			var_ClipPolygon.Points = 3;
			var_ClipPolygon.set_X(0,0.ToString());
			var_ClipPolygon.set_Y(0,"height");
			var_ClipPolygon.set_X(1,"width/2");
			var_ClipPolygon.set_Y(1,"value/100*width");
			var_ClipPolygon.set_X(2,"width");
			var_ClipPolygon.set_Y(2,"height");
			var_ClipPolygon.InverseClip = true;
		var_Clip.Value = 50;

22
How can I limit the rotation from 0 to 360 degree, while dragging
// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
	// DragInfo.RotateAngleValid = "value < 0 ? 0 : (value > 360 ? 359.999999 : value)"
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngle = -45;

21
How can I clip as a pie

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("value + B/360 * 100", Me.Layers(0).UserData, DragInfo.DeltaAngle )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = -1
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-128)/2";
	var_Layer.Top = "(height-128)/2";
	var_Layer.Height = 128.ToString();
	var_Layer.Width = 128.ToString();
	var_Layer.Background.Color.Value = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipPie var_ClipPie = var_Clip.Pie;
			var_ClipPie.InverseClip = true;
			var_ClipPie.StartAngle = 0.ToString();
			var_ClipPie.SweepAngle = "value/100*360";
		var_Clip.Value = 15;

20
How can I use a picture to clip the layer

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.Layers["Clip"].Clip.Value = axGauge1.Layers["Thumb"].RotateAngle;
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

axGauge1.BeginUpdate();
axGauge1.PicturesPath = "C:\\Program Files\\Exontrol\\ExGauge\\Sample\\Design\\Circular\\Knob 1";
axGauge1.PicturesName = "`Layer` + int(value  + 1) + `.png`";
axGauge1.Layers.Count = 5;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[4];
	var_Layer.Key = "Thumb";
	var_Layer.DefaultRotateAngle = -141;
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
EXGAUGELib.Layer var_Layer1 = axGauge1.Layers[1];
	var_Layer1.Key = "Clip";
	EXGAUGELib.Clip var_Clip = var_Layer1.Clip;
		var_Clip.Pie.SweepAngle = "value";
		EXGAUGELib.ClipPicture var_ClipPicture = var_Clip.Picture;
			var_ClipPicture.Name = axGauge1.Layers["Clip"].Background.Picture.Name;
			var_ClipPicture.AlphaTo = "128";
axGauge1.Layers["Thumb"].RotateAngle = 90;
axGauge1.EndUpdate();

19
How do I clip a circle/ellipse

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaX )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-128)/2";
	var_Layer.Top = "(height-128)/2";
	var_Layer.Height = 128.ToString();
	var_Layer.Width = 128.ToString();
	var_Layer.Background.Color.Value = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		var_Clip.Ellipse.RadiusX = "value/100 * width";
		var_Clip.Value = 25;

18
What InverseClip does

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaX )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-128)/2";
	var_Layer.Top = "(height-128)/2";
	var_Layer.Height = 128.ToString();
	var_Layer.Width = 128.ToString();
	var_Layer.Background.Color.Value = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipRoundRectangle var_ClipRoundRectangle = var_Clip.RoundRectangle;
			var_ClipRoundRectangle.Width = "value/100 * width";
			var_ClipRoundRectangle.RoundRadiusX = "width/8";
			var_ClipRoundRectangle.RoundRadiusY = "height/8";
			var_ClipRoundRectangle.InverseClip = true;
		var_Clip.Value = 50;

17
How do I clip as rectangle (round), from left to right

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaX )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Left = "(width-128)/2";
	var_Layer.Top = "(height-128)/2";
	var_Layer.Height = 128.ToString();
	var_Layer.Width = 128.ToString();
	var_Layer.Background.Color.Value = (uint)ColorTranslator.ToWin32(Color.FromArgb(0,255,0));
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipRoundRectangle var_ClipRoundRectangle = var_Clip.RoundRectangle;
			var_ClipRoundRectangle.Width = "value/100 * width";
			var_ClipRoundRectangle.RoundRadiusX = "width/8";
			var_ClipRoundRectangle.RoundRadiusY = "height/8";
		var_Clip.Value = 50;

16
How do I clip as rectangle, from bottom to top

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaY )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipRectangle var_ClipRectangle = var_Clip.Rectangle;
			var_ClipRectangle.Height = "value/100 * height";
			var_ClipRectangle.InverseClip = true;
		var_Clip.Value = 50;

15
How do I clip as rectangle, from top to bottom

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaY )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		var_Clip.Rectangle.Height = "value/100 * height";
		var_Clip.Value = 50;

14
How do I clip as rectangle, from right to left

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaX )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		EXGAUGELib.ClipRectangle var_ClipRectangle = var_Clip.Rectangle;
			var_ClipRectangle.Width = "value/100 * width";
			var_ClipRectangle.InverseClip = true;
		var_Clip.Value = 50;

13
How do I clip as rectangle, from left to right

// Drag event - Notifies that the user drags the layer.
private void axGauge1_Drag(object sender, AxEXGAUGELib._IGaugeEvents_DragEvent e)
{
	// Me.Layers(0).Clip.Value = Me.FormatABC("(value + B) MIN 0 MAX 100", Me.Layers(0).UserData, DragInfo.DeltaX )
}
//this.axGauge1.Drag += new AxEXGAUGELib._IGaugeEvents_DragEventHandler(this.axGauge1_Drag);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug= 287
	EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
		var_Layer.UserData = var_Layer.Clip.Value;
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

// MouseWheel event - Occurs when the mouse wheel moves while the control has focus
private void axGauge1_MouseWheel(object sender, AxEXGAUGELib._IGaugeEvents_MouseWheelEvent e)
{
	axGauge1.Layers[0].Clip.Value = axGauge1.FormatABC("(value + B) MIN 0 MAX 100",axGauge1.Layers[0].Clip.Value,e.delta,null);
}
//this.axGauge1.MouseWheel += new AxEXGAUGELib._IGaugeEvents_MouseWheelEventHandler(this.axGauge1_MouseWheel);

axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	EXGAUGELib.Clip var_Clip = var_Layer.Clip;
		var_Clip.Rectangle.Width = "value/100 * width";
		var_Clip.Value = 50;

12
How can I associate a value to rotation angle

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`Value: <b>` + (value format ``) ",axGauge1.Layers[0].Value,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.DefaultRotateAngle = 45;
	var_Layer.RotateCenterY = "lheight/2 + 32";
	var_Layer.RotateCenterX = "lwidth/2 + 32";
	var_Layer.RotateAngleToValue = "value/360 * 100";
	var_Layer.ValueToRotateAngle = "value / 100 * 360";
	var_Layer.Value = 50;

11
How can I associate a value to vertical offset

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`Value: <b>` + (value format ``)",axGauge1.Layers[0].Value,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 287
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer.DefaultOffsetY = -100;
	var_Layer.OffsetYValid = "value MIN 0 MAX 200";
	var_Layer.OffsetXValid = 0.ToString();
	var_Layer.OffsetToValue = "offsety /200 * 100";
	var_Layer.ValueToOffsetY = "value / 100 * 200";
	var_Layer.Value = 50;

10
How can I associate a value to horizontal offset

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`Value: <b>` + (value format ``)",axGauge1.Layers[0].Value,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 287
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer.DefaultOffsetX = -100;
	var_Layer.OffsetXValid = "value MIN 0 MAX 200";
	var_Layer.OffsetYValid = 0.ToString();
	var_Layer.OffsetToValue = "offsetx /200 * 100";
	var_Layer.ValueToOffsetX = "value / 100 * 200";
	var_Layer.Value = 50;

9
How can I display the current angle

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`Angle: <b>` + (value format ``) + `°`",axGauge1.Layers[0].RotateAngle,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngleValid = "(value > 180 ? value - 360 : value)  MIN 15 MAX 65";

8
How can I limit the rotation angle

// Change event - Occurs when the layer's value is changed.
private void axGauge1_Change(object sender, AxEXGAUGELib._IGaugeEvents_ChangeEvent e)
{
	axGauge1.set_Caption(EXGAUGELib.PropertyLayerCaptionEnum.exLayerCaption,axGauge1.FormatABC("`Angle: <b>` + (value format ``) + `°`",axGauge1.Layers[0].RotateAngle,null,null));
}
//this.axGauge1.Change += new AxEXGAUGELib._IGaugeEvents_ChangeEventHandler(this.axGauge1_Change);

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngleValid = "(value > 180 ? value - 360 : value)  MIN 15 MAX 65";

7
Can I specify a different center while rotating

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.RotateType = EXGAUGELib.RotateTypeEnum.exRotateBilinearInterpolation;
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngle = -45;
	var_Layer.RotateCenterY = "lheight/2 + 32";
	var_Layer.RotateCenterX = "lwidth/2 + 32";

6
How can I rotate a layer, without cutting off the picture

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Left = "(width-512)/2";
	var_Layer.Top = "(height-512)/2";
	var_Layer.Height = 512.ToString();
	var_Layer.Width = 512.ToString();
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Left = "(width-pwidth)/2";
		var_Picture.Top = "(height-pheight)/2";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngle = -45;

5
How can I rotate a layer

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 483
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	EXGAUGELib.Picture var_Picture = var_Layer.Background.Picture;
		var_Picture.Value = "c:\\exontrol\\images\\card.png";
		var_Picture.Width = "pwidth";
		var_Picture.Height = "pheight";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoRotate;
	var_Layer.RotateAngle = 45;

4
Is there any way to debug the layer while moving

// DragStart event - Occurs once the user starts dragging a layer.
private void axGauge1_DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e)
{
	// DragInfo.Debug = 287
}
//this.axGauge1.DragStart += new AxEXGAUGELib._IGaugeEvents_DragStartEventHandler(this.axGauge1_DragStart);

EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;

3
How do I specify where to move the layer, while dragging
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;
	var_Layer.OffsetXValid = "int(value / 64) * 64";
	var_Layer.OffsetYValid = "int(value / 64) * 64";

2
How can I add layers to the control
EXGAUGELib.Layer var_Layer = axGauge1.Layers.Add("back");
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;

1
How can I add layers to the control
axGauge1.Layers.Count = 1;
EXGAUGELib.Layer var_Layer = axGauge1.Layers[0];
	var_Layer.Background.Picture.Value = "c:\\exontrol\\images\\card.png";
	var_Layer.OnDrag = EXGAUGELib.OnDragLayerEnum.exDoMove;