public RTShape() { _title = "Shape"; _titlePos = RTTitlePos.TopLeft; _titleColor = Color.DimGray; _titleFont = new Font(FontFamily.GenericSansSerif, 8); _shapeDim = new Size(30, 15); _frameColor = Color.DimGray; _shapeColor = Color.White; _anchorColor = Color.RoyalBlue; _anchorSize = 6; _attack = 1; _attackMin = 0.01; _attackMax = 100; _attackLevel = 1; _attackLevelMin = 0; _attackLevelMax = 10; _decay = 10; _decayMin = 0.01; _decayMax = 1000; _hold = 100; _holdMin = 1; _holdMax = 1000; _holdFix = false; _holdLevel = 0.5; _holdLevelMin = 0; _holdLevelMax = 10; _fade = 100; _fadeMin = 1; _fadeMax = 1000; _showYScale = false; _showXScale = false; _scaleColor = Color.DimGray; _scaleFont = new Font(FontFamily.GenericSansSerif, 8); _majorGridColor = Color.FromArgb(64, 64, 64); _minorGridColor = Color.FromArgb(32, 32, 32); _showMajorYGrid = true; _showMinorYGrid = true; _showMajorXGrid = true; _showMinorXGrid = true; reGrid(); this.DoubleBuffered = true; }
public RTLED() { _title = "LED"; _titlePos = RTTitlePos.Left; _titleColor = Color.DimGray; _titleFont = new Font(FontFamily.GenericSansSerif, 8); _LEDDim = new Size(15, 15); _onText = ""; _offText = ""; _LEDState = false; _textFont = new Font(FontFamily.GenericSansSerif, 8); _textOnColor = Color.Red; _textOffColor = Color.DimGray; _frameOnColor = Color.Red; _frameOffColor = Color.DimGray; _fillOnColor = Color.DarkRed; _fillOffColor = Color.Black; // this.DoubleBuffered = true; }
public RTButton() { _buttonType = RTButtonType.ClickButton; _title = "Button"; _titlePos = RTTitlePos.Left; _titleColor = Color.DimGray; _titleFont = new Font(FontFamily.GenericSansSerif, 8); _buttonDim = new Size(30, 15); _onText = "On"; _offText = "Off"; _buttonState = false; _textFont = new Font(FontFamily.GenericSansSerif, 8); _textOnColor = Color.Red; _textOffColor = Color.DimGray; _frameOnColor = Color.Red; _frameHoldColor = Color.Yellow; _frameOffColor = Color.DimGray; _fillOnColor = Color.DarkRed; _fillOffColor = Color.Black; holdState = false; // this.DoubleBuffered = true; }