public override object EditValue( ITypeDescriptorContext context, IServiceProvider provider, object value ) { if( context != null && provider != null ) { editorService = (IWindowsFormsEditorService)provider.GetService( typeof( IWindowsFormsEditorService ) ); if( editorService != null ) { // Create a new trackbar and set it up. TrackBar trackBar = new TrackBar(); trackBar.ValueChanged += new EventHandler( this.ValueChanged ); trackBar.MouseLeave += new EventHandler( this.MouseLeave ); trackBar.Minimum = 0; trackBar.Maximum = 100; trackBar.TickStyle = TickStyle.None; // Get the low/high values. PropertyDescriptor prop = context.PropertyDescriptor; RangeAttribute ra = prop.Attributes[typeof( RangeAttribute )] as RangeAttribute; valueLow = ra.Low; valueHigh = ra.High; // Set the corresponding trackbar value. double percent = ( System.Convert.ToDouble( value ) - valueLow ) / ( valueHigh - valueLow ); trackBar.Value = (int)( 100 * percent ); // Show the control. editorService.DropDownControl( trackBar ); // Here is the output value. value = valueLow + ( (double)trackBar.Value / 100 ) * ( valueHigh - valueLow ); } } return value; }
public Form1() { this.textBox1 = new System.Windows.Forms.TextBox(); this.textBox2 = new System.Windows.Forms.TextBox(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.textBox1.Location = new System.Drawing.Point(240, 16); this.textBox1.Size = new System.Drawing.Size(48, 20); this.textBox2.Location = new System.Drawing.Point(240 + 50, 16); this.textBox2.Size = new System.Drawing.Size(48, 20); this.trackBar1.Location = new System.Drawing.Point(8, 8); this.trackBar1.Size = new System.Drawing.Size(224, 45); this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); this.trackBar1.Maximum = 100; this.trackBar1.TickFrequency = 5; this.trackBar1.LargeChange = 3; this.trackBar1.SmallChange = 2; // Set up how the form should be displayed and add the controls to the form. this.ClientSize = new System.Drawing.Size(360, 62); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.textBox1, this.textBox2, this.trackBar1 }); this.Text = "TrackBar Example"; listen = new Thread(new ThreadStart(delegate() { while (true) { string cin = Console.ReadLine(); Console.WriteLine(cin); } })); listen.Start(); }
public MainLayout(DockPanel panel, List<ToolStripComboBox> comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar, string path) { Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger); Panel = panel; ComboBoxes = comboBoxes; Buttons = buttons; TrackBar = trackBar; if (!Directory.Exists(path)) Directory.CreateDirectory(path); DockConfigPath = Path.Combine(path, Settings.Default.DockingConfigurationPath); TreeView = new TreeViewFrame(); TreeView.SelectedDatabaseChanged += TreeView_SlectedDatabaseChanged; TreeView.PropertiesClick += TreeView_PropertiesClick; StepFrames = new Dictionary<TestMethod, StepFrame>(); LogFrame = new LogFrame(); PropertiesFrame = new PropertiesFrame(); PropertiesFrame.Caller = TreeView; foreach (TestMethod method in GetTestMethods()) StepFrames[method] = CreateStepFrame(method); }
public Form1() { this.textBox1 = new System.Windows.Forms.TextBox(); this.trackBar1 = new System.Windows.Forms.TrackBar(); // TextBox for TrackBar.Value update. this.textBox1.Location = new System.Drawing.Point(240, 16); this.textBox1.Size = new System.Drawing.Size(48, 20); // Set up how the form should be displayed and add the controls to the form. this.ClientSize = new System.Drawing.Size(296, 62); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.textBox1, this.trackBar1 }); this.Text = "TrackBar Example"; // Set up the TrackBar. this.trackBar1.Location = new System.Drawing.Point(8, 8); this.trackBar1.Size = new System.Drawing.Size(224, 45); this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // The Maximum property sets the value of the track bar when // the slider is all the way to the right. trackBar1.Maximum = 30; // The TickFrequency property establishes how many positions // are between each tick-mark. trackBar1.TickFrequency = 5; // The LargeChange property sets how many positions to move // if the bar is clicked on either side of the slider. trackBar1.LargeChange = 3; // The SmallChange property sets how many positions to move // if the keyboard arrows are used to move the slider. trackBar1.SmallChange = 2; }
public Editor(PckImage curr) { edit = new EditorPanel(curr); buttons = new ButtonPanel(); size = new TrackBar(); size.Minimum=1; size.Maximum=10; InitializeComponent(); Controls.Add(edit); Controls.Add(buttons); Controls.Add(size); buttons.Location = new Point(0,0); buttons.Width = buttons.PreferredWidth; size.Left=buttons.Right; size.Top=buttons.Top; edit.Top=size.Bottom; edit.Left=buttons.Right; ClientSize=new Size(buttons.PreferredWidth+edit.Editor.PreferredWidth, edit.Editor.PreferredHeight+size.Height); palView = new PalView(); palView.Closing+=new CancelEventHandler(palClose); palView.PaletteIndexChanged+=new PaletteClickDelegate(edit.Editor.SelectColor); size.Scroll+=new EventHandler(sizeScroll); }
/// <summary> /// Creates a new instance. /// </summary> /// <param name="colorEditor">The editor this instance belongs to.</param> public ColorUIWrapper(XNAColorUITypeEditor colorEditor) { Type colorUiType = typeof(ColorEditor).GetNestedType("ColorUI", BindingFlags.CreateInstance | BindingFlags.NonPublic); ConstructorInfo constructorInfo = colorUiType.GetConstructor(new Type[] { typeof(ColorEditor) }); _control = (Control)constructorInfo.Invoke(new object[] { colorEditor }); _control.BackColor = System.Drawing.SystemColors.Control; Panel alphaPanel = new Panel(); alphaPanel.BackColor = System.Drawing.SystemColors.Control; alphaPanel.Dock = DockStyle.Right; alphaPanel.Width = 28; _control.Controls.Add(alphaPanel); _tbAlpha = new TrackBar(); _tbAlpha.Orientation = Orientation.Vertical; _tbAlpha.Dock = DockStyle.Fill; _tbAlpha.TickStyle = TickStyle.None; _tbAlpha.Maximum = byte.MaxValue; _tbAlpha.Minimum = byte.MinValue; _tbAlpha.ValueChanged += new EventHandler(OnTrackBarAlphaValueChanged); alphaPanel.Controls.Add(_tbAlpha); _lblAlpha = new Label(); _lblAlpha.Text = "0"; _lblAlpha.Dock = DockStyle.Bottom; _lblAlpha.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; alphaPanel.Controls.Add(_lblAlpha); _startMethodInfo = _control.GetType().GetMethod("Start"); _endMethodInfo = _control.GetType().GetMethod("End"); _valuePropertyInfo = _control.GetType().GetProperty("Value"); _control.SizeChanged += new EventHandler(OnControlSizeChanged); }
protected override void StartCalc() { if (!tool_bar_inited){ tool_bar_inited = true; ChartToolBar.AccessToolBar(tb=> { var _tsi3 = new ToolStripButton {Text = "plot color"}; set_color_tsi(_tsi3, m_plot_color); _tsi3.Click += button1_Click; AddItem2ToolStrip(tb, _tsi3); var _track = new TrackBar { Dock = DockStyle.Fill, Maximum = 1000, Minimum = 10, SmallChange = 10, Value = Length, Text = "Average Length" }; _track.ValueChanged += _new_track; AddItem2ToolStrip(tb, new ToolStripControlHost(_track)); AddItem2ToolStrip(tb, new ToolStripSeparator()); }); } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LineWidthForm)); this.trackBar1 = new System.Windows.Forms.TrackBar(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.Location = new System.Drawing.Point(14, 14); this.trackBar1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.trackBar1.Minimum = 1; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(504, 45); this.trackBar1.TabIndex = 0; this.trackBar1.Value = 1; this.trackBar1.ValueChanged += new System.EventHandler(this.TrackBar1_ValueChanged); // // LineWidthForm // this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(547, 76); this.Controls.Add(this.trackBar1); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3); this.MaximizeBox = false; this.Name = "LineWidthForm"; this.Text = "Line width"; this.Load += new System.EventHandler(this.LineWidthForm_Load); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
public GridController(IView<string> view, GridFieldModel model) { _view = view; _model = model; _zoomCheckbox = false; _view.SetController(this); _panel = (Panel) _view.Get("Panel"); _trackBar = (TrackBar) _view.Get("Trackbar"); _trackBar.Enabled = false; _comboBox = (ComboBox) _view.Get("ComboBox"); float tWidth = _panel.Width/_model.Rows.GetLength(1); float tHeight = _panel.Height/_model.Rows.GetLength(0); // Doing these checks to make sure that we don't have pixels left _tileWidth = (_panel.Width%_model.Rows.GetLength(1) != 0 // if width%length != 0 ? (int) tWidth++ // then set to width++ : (int) tWidth) // else set to width *_model.Rows[0, 0].Width; // finally multiply by the tile width _tileHeight = (_panel.Width%_model.Rows.GetLength(0) != 0 ? (int) tHeight++ : (int) tHeight) *_model.Rows[0, 0].Height; // only need to draw the grid once, so we can set it as the panel's background _panel.BackgroundImage = PaintBackground(); _rectangle = new Rectangle(0, 0, 50, 50); _buffer = new Bitmap(_panel.Width, _panel.Height); PopulateCombobox(); Resize(this, null); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ZoomControl)); this.trackBar = new System.Windows.Forms.TrackBar(); this.lblMinus = new System.Windows.Forms.Label(); this.imageList = new System.Windows.Forms.ImageList(this.components); this.lblPlus = new System.Windows.Forms.Label(); this.toolTip = new System.Windows.Forms.ToolTip(this.components); ((System.ComponentModel.ISupportInitialize)(this.trackBar)).BeginInit(); this.SuspendLayout(); // // trackBar // this.trackBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trackBar.Location = new System.Drawing.Point(16, 0); this.trackBar.Name = "trackBar"; this.trackBar.Size = new System.Drawing.Size(368, 45); this.trackBar.TabIndex = 0; this.trackBar.TickFrequency = 0; // // lblMinus // this.lblMinus.Dock = System.Windows.Forms.DockStyle.Left; this.lblMinus.ImageIndex = 1; this.lblMinus.ImageList = this.imageList; this.lblMinus.Location = new System.Drawing.Point(0, 0); this.lblMinus.Name = "lblMinus"; this.lblMinus.Size = new System.Drawing.Size(24, 26); this.lblMinus.TabIndex = 1; // // imageList // this.imageList.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit; this.imageList.ImageSize = new System.Drawing.Size(16, 16); this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream"))); this.imageList.TransparentColor = System.Drawing.Color.White; // // lblPlus // this.lblPlus.Dock = System.Windows.Forms.DockStyle.Right; this.lblPlus.ImageIndex = 0; this.lblPlus.ImageList = this.imageList; this.lblPlus.Location = new System.Drawing.Point(376, 0); this.lblPlus.Name = "lblPlus"; this.lblPlus.Size = new System.Drawing.Size(24, 26); this.lblPlus.TabIndex = 2; // // ZoomControl // this.Controls.Add(this.lblPlus); this.Controls.Add(this.lblMinus); this.Controls.Add(this.trackBar); this.Name = "ZoomControl"; this.Size = new System.Drawing.Size(400, 26); this.EnabledChanged += this.ZoomControl_EnabledChanged; ((System.ComponentModel.ISupportInitialize)(this.trackBar)).EndInit(); this.ResumeLayout(false); }
public void TrackBarPropertyTest () { TrackBar myTrackBar = new TrackBar (); // A Assert.AreEqual (true, myTrackBar.AutoSize, "#A1"); // L Assert.AreEqual (5, myTrackBar.LargeChange, "#L1"); // M Assert.AreEqual (10, myTrackBar.Maximum, "#M1"); Assert.AreEqual (0, myTrackBar.Minimum, "#M2"); // O Assert.AreEqual (Orientation.Horizontal, myTrackBar.Orientation, "#O1"); // S Assert.AreEqual (1, myTrackBar.SmallChange, "#S1"); // T Assert.AreEqual (1, myTrackBar.TickFrequency, "#T1"); Assert.AreEqual (TickStyle.BottomRight, myTrackBar.TickStyle, "#T2"); Assert.AreEqual ("", myTrackBar.Text, "#T3"); myTrackBar.Text = "New TrackBar"; Assert.AreEqual ("New TrackBar", myTrackBar.Text, "#T4"); // V Assert.AreEqual (0, myTrackBar.Value, "#V1"); }
public void SetRangeTest () { TrackBar myTrackBar = new TrackBar (); myTrackBar.SetRange (2,9); Assert.AreEqual (9, myTrackBar.Maximum, "#setM1"); Assert.AreEqual (2, myTrackBar.Minimum, "#setM2"); }
public void Load(Dictionary<string, HashSet<object>> valuerange) { this.images = Viewer.images; this.arguments = Global.arguments; // Create track bars for each argument trackbars.Clear(); int argidx = -1; foreach(Cinema.CinemaArgument argument in arguments) { ++argidx; /*if(argument.values.Length <= 1) continue;*/ TrackBar newtrackbar = new TrackBar(argument, argidx, meshBorders, meshTick, meshSelection); newtrackbar.label = argument.label; trackbars.Add(newtrackbar); } /*// Create track bars for meta data value foreach(KeyValuePair<string, HashSet<object>> range in valuerange) { TrackBar newtrackbar = new TrackBar(range.Value.Count, meshSelection); newtrackbar.label = range.Key; trackbars.Add(newtrackbar); }*/ }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.setLuminance = new System.Windows.Forms.TrackBar(); this.Luminance = new System.Windows.Forms.Label(); this.OK = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.setLuminance)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(16, 472); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(64, 16); this.label1.TabIndex = 0; this.label1.Text = "Luminance"; // // setLuminance // this.setLuminance.Location = new System.Drawing.Point(96, 472); this.setLuminance.Maximum = 2056; this.setLuminance.Name = "setLuminance"; this.setLuminance.Size = new System.Drawing.Size(448, 45); this.setLuminance.TabIndex = 2056; this.setLuminance.TickStyle = System.Windows.Forms.TickStyle.None; this.setLuminance.Value = 1; this.setLuminance.ValueChanged += new System.EventHandler(this.OnChange); // // Luminance // this.Luminance.Location = new System.Drawing.Point(16, 496); this.Luminance.Name = "Luminance"; this.Luminance.Size = new System.Drawing.Size(64, 23); this.Luminance.TabIndex = 2057; this.Luminance.Text = "1"; // // OK // this.OK.DialogResult = System.Windows.Forms.DialogResult.OK; this.OK.Location = new System.Drawing.Point(560, 480); this.OK.Name = "OK"; this.OK.Size = new System.Drawing.Size(32, 23); this.OK.TabIndex = 2058; this.OK.Text = "OK"; // // LuminanceDlg // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(600, 526); this.Controls.Add(this.OK); this.Controls.Add(this.Luminance); this.Controls.Add(this.setLuminance); this.Controls.Add(this.label1); this.Name = "LuminanceDlg"; this.Text = "LuminanceDlg"; this.Load += new System.EventHandler(this.LuminanceDlg_Load); this.Paint += new System.Windows.Forms.PaintEventHandler(this.OnPaint); ((System.ComponentModel.ISupportInitialize)(this.setLuminance)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.trackBar1 = new System.Windows.Forms.TrackBar(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.Location = new System.Drawing.Point(12, 12); this.trackBar1.Minimum = 1; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(432, 45); this.trackBar1.TabIndex = 0; this.trackBar1.Value = 1; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // LineWidthForm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(469, 66); this.Controls.Add(this.trackBar1); this.Icon = global::Diagram.Properties.Resources.ico_diagramico_forms; this.MaximizeBox = false; this.Name = "LineWidthForm"; this.Text = "Line width"; this.Load += new System.EventHandler(this.LineWidthForm_Load); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// 构造和初始PLAYLIST的数据 /// </summary> /// <param name="myDS"></param> /// <param name="myWin"></param> public Play(VideoLayerCollection[] myDS, System.Windows.Forms.TrackBar PlayBar, System.Windows.Forms.Label pMediaTime, Control myWin) { hWin = myWin; m_PlayBar = PlayBar; m_MediaTime = pMediaTime; dsArr = myDS; }
public TgcFloatModifier(string varName, float minValue, float maxValue, float defaultValue) : base(varName) { this.minValue = minValue; this.maxValue = maxValue; numericUpDown = new NumericUpDown(); numericUpDown.Size = new System.Drawing.Size(100, 20); numericUpDown.Margin = new Padding(0); numericUpDown.DecimalPlaces = 4; numericUpDown.Minimum = (decimal)minValue; numericUpDown.Maximum = (decimal)maxValue; numericUpDown.Value = (decimal)defaultValue; numericUpDown.Increment = (decimal)(2f * (maxValue - minValue) / 100f); numericUpDown.ValueChanged += new EventHandler(numericUpDown_ValueChanged); trackBar = new TrackBar(); trackBar.Size = new System.Drawing.Size(100, 20); trackBar.Margin = new Padding(0); trackBar.Minimum = 0; trackBar.Maximum = 20; trackBar.Value = (int)((defaultValue - minValue) * 20 / (maxValue - minValue)); trackBar.ValueChanged += new EventHandler(trackBar_ValueChanged); contentPanel.Controls.Add(numericUpDown); contentPanel.Controls.Add(trackBar); }
public Form2() { InitializeComponent(); f1 = new Form1(); trackBar1 = new TrackBar(); Controls.Add(trackBar1); groupBox3.Controls.Add(trackBar1); loca = new Point(comboBox1.Location.X, comboBox1.Location.Y); trackBar1.Location = loca; trackBar1.Size = new Size(trackBar1.Size.Width + 50, trackBar1.Size.Height - 50); trackBar1.TickFrequency = 10; trackBar1.LargeChange = 3; trackBar1.SmallChange = 2; trackBar1.Maximum = 100; trackBar1.Minimum = 0; trackBar1.TickStyle = TickStyle.BottomRight; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); string tr = comboBox1.Text.Trim('%'); f1.Opacity = double.Parse(tr) / 100.0; pl = f1.axWindowsMediaPlayer1.playlistCollection.newPlaylist("list1");//axwindowsMediaPlayer.playlistCollection.newPlaylist(myPlaylist); f1.axWindowsMediaPlayer1.currentPlaylist = pl; itemm = new List<WMPLib.IWMPMedia>(); f1.Show(); }
public ToolStripLabeledTrackBar() : base(new Panel()) { Panel panel = (Panel) this.Control; Label = new Label(); Label.Location = new Point(0, 0); TrackBar = new TrackBar(); TrackBar.Location = new Point(0, Label.Bottom); TrackBar.AutoSize = false; TrackBar.TickStyle = TickStyle.None; // no tickstyle, make the height smaller and the width // a bit larger to compensate: TrackBar.Height = (Int32) (TrackBar.PreferredSize.Height * 0.65); TrackBar.Width = (Int32) (TrackBar.PreferredSize.Width * 1.25); // the label and panel follow the trackbar width: Label.Width = TrackBar.Width; Width = TrackBar.Width; panel.Controls.Add(Label); panel.Controls.Add(TrackBar); }
private void vibLab_updateStatus(TrackBar barfreq, TrackBar barwidth, Label lbl, ref double vfreq, ref double vwidth) { vfreq = Math.Max(-1 * 2 * Math.Log((101-barfreq.Value) / 100.0),0.001); //logarithmic scale vwidth = (barwidth.Value / 100.0) * 4 + 0.01; lbl.Text = Math.Round(vfreq, 3) + " ; " + Math.Round(vwidth, 3); }
public TgcVertex2fModifier(string varName, Vector2 minValue, Vector2 maxValue, Vector2 defaultValue) : base(varName) { this.minValue = minValue; this.maxValue = maxValue; //numericUpDownX numericUpDownX = new NumericUpDown(); numericUpDownX.Size = new System.Drawing.Size(50, 20); numericUpDownX.Margin = new Padding(0); numericUpDownX.DecimalPlaces = 4; numericUpDownX.Minimum = (decimal)minValue.X; numericUpDownX.Maximum = (decimal)maxValue.X; numericUpDownX.Value = (decimal)defaultValue.X; numericUpDownX.Increment = (decimal)(2f * (maxValue.X - minValue.X) / 100f); numericUpDownX.ValueChanged += new EventHandler(numericUpDownX_ValueChanged); //numericUpDownY numericUpDownY = new NumericUpDown(); numericUpDownY.Size = new System.Drawing.Size(50, 20); numericUpDownY.Margin = new Padding(0); numericUpDownY.DecimalPlaces = 4; numericUpDownY.Minimum = (decimal)minValue.Y; numericUpDownY.Maximum = (decimal)maxValue.Y; numericUpDownY.Value = (decimal)defaultValue.Y; numericUpDownY.Increment = (decimal)(2f * (maxValue.Y - minValue.Y) / 100f); numericUpDownY.ValueChanged += new EventHandler(numericUpDownY_ValueChanged); //Panel para los dos numericUpDown vertexValuesPanel = new FlowLayoutPanel(); vertexValuesPanel.Margin = new Padding(0); vertexValuesPanel.AutoSize = true; vertexValuesPanel.FlowDirection = FlowDirection.LeftToRight; vertexValuesPanel.Controls.Add(numericUpDownX); vertexValuesPanel.Controls.Add(numericUpDownY); //trackBarX trackBarX = new TrackBar(); trackBarX.Size = new System.Drawing.Size(100, 20); trackBarX.Margin = new Padding(0); trackBarX.Minimum = 0; trackBarX.Maximum = 20; trackBarX.Value = (int)((defaultValue.X - minValue.X) * 20 / (maxValue.X - minValue.X)); trackBarX.ValueChanged += new EventHandler(trackBarX_ValueChanged); //trackBarY trackBarY = new TrackBar(); trackBarY.Size = new System.Drawing.Size(100, 20); trackBarY.Margin = new Padding(0); trackBarY.Minimum = 0; trackBarY.Maximum = 20; trackBarY.Value = (int)((defaultValue.Y - minValue.Y) * 20 / (maxValue.Y - minValue.Y)); trackBarY.ValueChanged += new EventHandler(trackBarY_ValueChanged); contentPanel.Controls.Add(vertexValuesPanel); contentPanel.Controls.Add(trackBarX); contentPanel.Controls.Add(trackBarY); }
public ToolStripLabeledTrackBar() : base(new LabeledTrackBar()) { LabeledTrackBar control = (LabeledTrackBar) this.Control; Label = control.label; TrackBar = control.trackbar; }
private static Control CreateControlInstance() { TrackBar tb = new TrackBar(); tb.AutoSize = false; tb.Size = new Size(60, 24); // Add other initialization code here. return tb; }
public DeadZoneControlsLink(TrackBar trackBar, NumericUpDown numericUpDown, TextBox textBox) { _TrackBar = trackBar; _NumericUpDown = numericUpDown; _TextBox = textBox; _TrackBar.ValueChanged += _TrackBar_ValueChanged; _NumericUpDown.ValueChanged += _NumericUpDown_ValueChanged; }
private void SyncValue(NumericUpDown number, TrackBar trackbar) { int value = Convert.ToInt32(number.Value); if (value == trackbar.Value) return; number.Value = trackbar.Value; UpdateColor(); }
public void SlowMethod(NumericUpDown nud, ProgressBar progBar, TrackBar trackBar) { for (int i = 0; i < 10; i++) { System.Threading.Thread.Sleep(500); OnUpdateEvent(nud,progBar,trackBar); } }
public ImageHistogram(Image image, DiscretizeSettings settings) { this.image = new Bitmap(image.Clone() as Image); this.settings = settings; discretize = new NuGenDiscretize(new Bitmap(image), settings); switch (settings.discretizeMethod) { case DiscretizeMethod.DiscretizeForeground : histogramData = new int[101]; displayData = new int[101]; break; case DiscretizeMethod.DiscretizeHue : histogramData = new int[361]; displayData = new int[361]; break; case DiscretizeMethod.DiscretizeIntensity: histogramData = new int[101]; displayData = new int[101]; break; case DiscretizeMethod.DiscretizeSaturation: histogramData = new int[101]; displayData = new int[101]; break; case DiscretizeMethod.DiscretizeValue: histogramData = new int[101]; displayData = new int[101]; break; } innerPanel = new Panel(); innerPanel.Size = new Size(Width - pad, Height - pad - slidersSize); innerPanel.Location = new Point(pad / 2, pad / 2); innerPanel.Paint += new PaintEventHandler(innerPanel_Paint); lowBar = new TrackBar(); lowBar.Location = new Point(0, innerPanel.Location.Y + innerPanel.Height + 5); lowBar.Size = new Size(Width, 25); lowBar.TickStyle = TickStyle.None; lowBar.Minimum = 0; lowBar.Maximum = 100; lowBar.AutoSize = false; lowBar.ValueChanged += new EventHandler(lowBar_ValueChanged); lowBar.MouseUp += new MouseEventHandler(lowBar_MouseUp); highBar = new TrackBar(); highBar.Location = new Point(lowBar.Location.X, lowBar.Location.Y + lowBar.Height + 5); highBar.Size = new Size(Width, 25); highBar.TickStyle = TickStyle.None; highBar.AutoSize = false; highBar.Minimum = 0; highBar.Maximum = 100; highBar.ValueChanged += new EventHandler(highBar_ValueChanged); highBar.MouseUp += new MouseEventHandler(highBar_MouseUp); this.DoubleBuffered = true; Controls.Add(innerPanel); Controls.Add(lowBar); Controls.Add(highBar); this.BorderStyle = BorderStyle.Fixed3D; lowBar.Value = GetLowThreshold(); highBar.Value = GetHighThreshold(); }
public void PlaceBet(TrackBar trackBar, NumericUpDown numericUp, GreyHound[] dog_list) { MyBet = new Bet(); MyBet.player = this; MyBet.dog = dog_list[((int) numericUp.Value)-1]; MyBet.amount = trackBar.Value; cash -= MyBet.amount; UpdateLabels(); }
public ToolStripTraceBarItem() : base(new TrackBar()) { this.trackBar = this.Control as TrackBar; trackBar.TickFrequency = 1; trackBar.Maximum = 60; trackBar.LargeChange = 5; trackBar.SmallChange = 2; trackBar.TickStyle = TickStyle.None; }
// Reads a GPO val public void ReadGPOVal(RadioButton on, RadioButton off, TrackBar bar, Label label, byte i, bool cur) { int gpo = this.ReadByte(cur ? USB2LCD.Command.ReadGPO : USB2LCD.Command.ReadSavedGPO, i); int pwm = this.ReadByte(cur ? USB2LCD.Command.ReadGPOpwm : USB2LCD.Command.ReadSavedGPOpwm, i); on.Checked = gpo==1; off.Checked = gpo==0; bar.Value = pwm; label.Text = pwm.ToString(); }
public ProjectManager(DockPanel panel, ToolStripComboBox[] comboBoxes, List<ToolStripButton> buttons, TrackBar trackBar, string path) { Logger = LogManager.GetLogger(Settings.Default.ApplicationLogger); LayoutManager = new LayoutManager(panel, comboBoxes, buttons, trackBar); if (!Directory.Exists(path)) Directory.CreateDirectory(path); DockConfigPath = Path.Combine(path, Settings.Default.DockingConfigurationPath); }
public CustomColorDialog(Color color) { const int RGBINIT = 0x1; const int FULL_OPEN = 0x2; const int Enable_HOOK = 0x10; chooseColor.lStructSize = Marshal.SizeOf(chooseColor); chooseColor.lpfnHook = HookProc; chooseColor.Flags = RGBINIT | FULL_OPEN | Enable_HOOK; chooseColor.lpCustColors = Marshal.AllocCoTaskMem(16 * sizeof(int)); chooseColor.rgbResult = 0x00ffffff & color.ToArgb(); alphaSlider = new TrackBar { Minimum = 0, Maximum = 255, Height = 200, TickStyle = TickStyle.TopLeft }; alphaSlider.Orientation = Orientation.Vertical; alphaSlider.Left -= 10; alphaSlider.Value = color.A; alphaText = new TextBox { Width = 25, Height = 50, Top = 202, Text = Convert.ToString(color.A), MaxLength = 3 }; alphaPanel = new Panel { BorderStyle = BorderStyle.None, Width = 25, Height = 268 }; alphaPanel.Controls.Add(alphaSlider); alphaPanel.Controls.Add(alphaText); alphaText.KeyDown += (sender, args) => { args.SuppressKeyPress = (args.KeyValue < 37 || args.KeyValue > 40) && args.KeyValue != 46 && args.KeyValue != 8 && !char.IsDigit((char)args.KeyValue); }; alphaText.KeyUp += (sender, args) => { pressed = false; int value; if (int.TryParse(alphaText.Text, out value) && alphaSlider.Value != value) { if (value < 0) { value = 0; alphaText.Text = Convert.ToString(value); } else if (value > 255) { value = 255; alphaText.Text = Convert.ToString(value); } alphaSlider.Value = value; } pressed = true; }; alphaSlider.ValueChanged += (sender, args) => { if (pressed) { alphaText.Text = Convert.ToString(alphaSlider.Value); } }; }
public BuddyPair(int key, TrackBar buddy1, NumericUpDown buddy2, int min, int max) { _key = key; _buddy1 = buddy1; _buddy2 = buddy2; _buddy2.Minimum = _buddy1.Minimum = min; _buddy2.Maximum = _buddy1.Maximum = max; }
private double onScroll(TrackBar tb, Label lbl) { double v = (tb.Value / ((double)tb.Maximum)); // from 0.0 to 1.0 if (tb==tbParam1 || tb==tbParam2) v = (v-0.5)*paramRange; //by default from -1.0 to 1.0 else if (tb==tbSettling) v = (int) (Math.Pow(8.0, v * 6)); lbl.Text = v.ToString("0.####"); //4 decimals or fewer return v; }
//The reason this one takes multiple arguments is so it can field any relevant argument this prac can give. //It deviates from the one specified slightly but I couldn't think of how to do this without args as was shown in the handout. Discuss? private void OnUpdateEvent(NumericUpDown nud, ProgressBar progBar, TrackBar trackBar) { //Create a new custom event arg CustomEventArgs ce = new CustomEventArgs(nud, progBar, trackBar); //A bit of error-prevention as discussed in class if (progressEvent != null) { progressEvent(this, ce); } }
private ViewElements(Chart chart, Chart chartPhase, PropertyGrid pg1, PropertyGrid pg2, TrackBar trackBar, TextBox ux0, TextBox vx0, CheckBox customInitials) { this.chart = chart; this.chartPhase = chartPhase; this.pg1 = pg1; this.pg2 = pg2; this.trackBar = trackBar; this.ux0 = ux0; this.vx0 = vx0; this.customInitials = customInitials; }
public static void SetTrackBarEnabledStatus(System.Windows.Forms.TrackBar TrackBarControl, bool ControlEnabled) { if (TrackBarControl.InvokeRequired) { SetTrackBarEnabledStatusCallback d = SetTrackBarEnabledStatus; TrackBarControl.Invoke(d, new object[] { TrackBarControl, ControlEnabled }); } else { TrackBarControl.Enabled = ControlEnabled; } }
private void Form1_Load(object sender, EventArgs e) { myPort = serialPort1; this.trackBar1 = new System.Windows.Forms.TrackBar(); trackBar1.Location = new System.Drawing.Point(75, 30); trackBar1.TickStyle = TickStyle.TopLeft; trackBar1.Minimum = 10; trackBar1.Maximum = 100; trackBar1.TickFrequency = 10; trackBar1.ValueChanged += TrackBar1_ValueChanged; this.Controls.Add(this.trackBar1); }
private void SetVal(int value, System.Windows.Forms.TrackBar trackBar) { if (value >= trackBar.Maximum) { trackBar.Value = trackBar.Maximum; } else if (value <= trackBar.Minimum) { trackBar.Value = trackBar.Minimum; } trackBar.Value = value; }
public static void MoveTrackBar(System.Windows.Forms.TrackBar TrackBarControl, int TBValue) { if (TrackBarControl.InvokeRequired) { MoveTrackBarCallback d = MoveTrackBar; TrackBarControl.Invoke(d, new object[] { TrackBarControl, TBValue }); } else { TrackBarControl.Value = TBValue; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.trackBar1 = new System.Windows.Forms.TrackBar(); this.button1 = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.trackBar1.Location = new System.Drawing.Point(24, 16); this.trackBar1.Maximum = 255; this.trackBar1.Name = "trackBar1"; this.trackBar1.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar1.Size = new System.Drawing.Size(45, 152); this.trackBar1.SmallChange = 5; this.trackBar1.TabIndex = 1; this.trackBar1.TickFrequency = 5; this.trackBar1.Value = 1; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll_1); // // button1 // this.button1.Font = new System.Drawing.Font("Rockwell", 11.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); this.button1.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(255)), ((System.Byte)(255))); this.button1.Location = new System.Drawing.Point(8, 200); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(208, 40); this.button1.TabIndex = 2; this.button1.Text = "Poner Este Color"; this.button1.Click += new System.EventHandler(this.button1_Click); // // calob // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.Maroon; this.ClientSize = new System.Drawing.Size(224, 256); this.Controls.Add(this.button1); this.Controls.Add(this.trackBar1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Location = new System.Drawing.Point(10, 506); this.Name = "calob"; this.Opacity = 0.5; this.ShowInTaskbar = false; this.StartPosition = System.Windows.Forms.FormStartPosition.Manual; this.Text = "calob"; this.TopMost = true; ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); }
public Player(Form form) { this.listMusics = new List <Music>(); this.listForms = new List <FormMusic>(); this.windows = form; System.Windows.Forms.Label tmp = this.windows.Controls["searchDirectory"] as System.Windows.Forms.Label; tmp.MouseUp += new System.Windows.Forms.MouseEventHandler(this.searchDirectory); this.tb = this.windows.Controls["trackBar1"] as System.Windows.Forms.TrackBar; this.tb.ValueChanged += new System.EventHandler(this.trackBarChange); this.sg = this.windows.Controls["soundSign"] as System.Windows.Forms.Label; }
private void checkValue(System.Windows.Forms.TextBox tbx, System.Windows.Forms.TrackBar trb, string title, bool isInt) { double amount = 0; int trackbarTranslation = 1; if (!isInt) { trackbarTranslation = 100; } try { if (tbx.Text != "") { amount = Convert.ToDouble(tbx.Text); if (amount < trb.Minimum / trackbarTranslation) { MessageBox.Show("Der eingegebene Wert ist zu klein!", title, MessageBoxButtons.OK, MessageBoxIcon.Error); tbx.Text = Convert.ToString(trb.Minimum / trackbarTranslation); trb.Value = trb.Minimum; } else if (amount <= trb.Maximum) { trb.Value = Convert.ToInt32(amount * trackbarTranslation); } else { MessageBox.Show("Der eingegebene Wert ist zu groß!", title, MessageBoxButtons.OK, MessageBoxIcon.Error); tbx.Text = Convert.ToString(trb.Maximum / trackbarTranslation); trb.Value = trb.Maximum; } } } catch { MessageBox.Show("Ungültige Eingabe!", title, MessageBoxButtons.OK, MessageBoxIcon.Error); tbx.Text = ""; } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.Luminance = new System.Windows.Forms.TrackBar(); this.luminanceValue = new System.Windows.Forms.Label(); this.checkBox1 = new System.Windows.Forms.CheckBox(); ((System.ComponentModel.ISupportInitialize)(this.Luminance)).BeginInit(); this.SuspendLayout(); // // Luminance // this.Luminance.Location = new System.Drawing.Point(736, 56); this.Luminance.Maximum = 100; this.Luminance.Name = "Luminance"; this.Luminance.Orientation = System.Windows.Forms.Orientation.Vertical; this.Luminance.Size = new System.Drawing.Size(45, 480); this.Luminance.TabIndex = 0; this.Luminance.Value = 50; this.Luminance.ValueChanged += new System.EventHandler(this.LuminanceChanged); // // luminanceValue // this.luminanceValue.Location = new System.Drawing.Point(720, 24); this.luminanceValue.Name = "luminanceValue"; this.luminanceValue.TabIndex = 1; this.luminanceValue.Text = "Luminance = "; // // checkBox1 // this.checkBox1.Location = new System.Drawing.Point(720, 560); this.checkBox1.Name = "checkBox1"; this.checkBox1.TabIndex = 2; this.checkBox1.Text = "Modify Saturation"; this.checkBox1.Click += new System.EventHandler(this.OnModSat); // // HLSDemo // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(832, 726); this.Controls.Add(this.checkBox1); this.Controls.Add(this.luminanceValue); this.Controls.Add(this.Luminance); this.Name = "HLSDemo"; this.Text = "HLSDemo"; this.Click += new System.EventHandler(this.OnModSat); this.Paint += new System.Windows.Forms.PaintEventHandler(this.OnPaint); ((System.ComponentModel.ISupportInitialize)(this.Luminance)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.trackBar1 = new System.Windows.Forms.TrackBar(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // label1 // this.label1.Location = new System.Drawing.Point(48, 256); this.label1.Name = "label1"; this.label1.TabIndex = 1; this.label1.Text = "完全透明"; // // label2 // this.label2.Location = new System.Drawing.Point(40, 0); this.label2.Name = "label2"; this.label2.TabIndex = 1; this.label2.Text = "完全不透明"; // // trackBar1 // this.trackBar1.Dock = System.Windows.Forms.DockStyle.Left; this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBar1.Size = new System.Drawing.Size(42, 273); this.trackBar1.SmallChange = 5; this.trackBar1.TabIndex = 0; this.trackBar1.Value = 100; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 14); this.ClientSize = new System.Drawing.Size(292, 273); this.Controls.AddRange(new System.Windows.Forms.Control[] { this.label2, this.label1, this.trackBar1 }); this.Name = "Form1"; this.Text = "透明窗口"; ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.trackBar1 = new System.Windows.Forms.TrackBar(); this.btnTrack = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.LargeChange = 10; this.trackBar1.Location = new System.Drawing.Point(0, 8); this.trackBar1.Maximum = 100; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(152, 45); this.trackBar1.TabIndex = 0; this.trackBar1.TickFrequency = 10; this.trackBar1.TickStyle = System.Windows.Forms.TickStyle.Both; this.trackBar1.ValueChanged += new System.EventHandler(this.trackBar1_ValueChanged); // // btnTrack // this.btnTrack.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnTrack.Location = new System.Drawing.Point(150, 16); this.btnTrack.Name = "btnTrack"; this.btnTrack.Size = new System.Drawing.Size(35, 23); this.btnTrack.TabIndex = 2; this.btnTrack.Text = "45"; this.btnTrack.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.btnTrack.Click += new System.EventHandler(this.btnTrack_Click); // // frmContrast // this.AcceptButton = this.btnTrack; this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(192, 70); this.ControlBox = false; this.Controls.Add(this.btnTrack); this.Controls.Add(this.trackBar1); this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.MaximizeBox = false; this.MinimizeBox = false; this.Name = "frmContrast"; this.ShowInTaskbar = false; this.Closed += new System.EventHandler(this.frmContrast_Closed); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.trackBar1 = new System.Windows.Forms.TrackBar(); this.meter1 = new MeterControl.Meter(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); this.SuspendLayout(); // // trackBar1 // this.trackBar1.Location = new System.Drawing.Point(24, 280); this.trackBar1.Maximum = 180; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(432, 48); this.trackBar1.SmallChange = 10; this.trackBar1.TabIndex = 1; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // meter1 // this.meter1.Angle = 360; this.meter1.BackColor = System.Drawing.Color.LightSkyBlue; this.meter1.BorderColors.BorderColor1 = System.Drawing.Color.DarkGreen; this.meter1.BorderColors.BorderColor2 = System.Drawing.Color.Lavender; this.meter1.FaceColors.FaceColor1 = System.Drawing.Color.Ivory; this.meter1.FaceColors.FaceColor2 = System.Drawing.Color.PaleGreen; this.meter1.FaceColors.ZoneAngle = 45; this.meter1.ForeColor = System.Drawing.SystemColors.Highlight; this.meter1.Location = new System.Drawing.Point(24, 48); this.meter1.MeterlineColor = System.Drawing.Color.Fuchsia; this.meter1.Name = "meter1"; this.meter1.NumberColor = System.Drawing.Color.Black; this.meter1.Size = new System.Drawing.Size(432, 224); this.meter1.TabIndex = 2; this.meter1.Text = "meter1"; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.BackColor = System.Drawing.Color.AliceBlue; this.ClientSize = new System.Drawing.Size(504, 342); this.Controls.Add(this.meter1); this.Controls.Add(this.trackBar1); this.Name = "Form1"; this.Text = "Meter Control Test"; ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
private bool IsInValidValue(int value, System.Windows.Forms.TrackBar _track, System.Windows.Forms.TextBox tb) { if (value > _track.Maximum) { Tools._ChangeColorEditBox(tb, false); return(true); } if (value < _track.Minimum) { Tools._ChangeColorEditBox(tb, false); return(true); } Tools._ChangeColorEditBox(tb, true); return(false); }
/// <summary> /// The constructor /// </summary> public SlideText() { #region sliderBar Initialization sliderBar = new TrackBar(); sliderBar.Orientation = System.Windows.Forms.Orientation.Vertical; sliderBar.Size = new System.Drawing.Size(45, 112); sliderBar.Minimum = 1; sliderBar.Maximum = 10; sliderBar.ValueChanged += new EventHandler(sliderBarChanged); sliderBar.Visible = true; #endregion #region textBox Initialization textBox = new TextBox(); textBox.Location = new System.Drawing.Point(this.Location.X, sliderBar.Size.Height); textBox.Size = new System.Drawing.Size(40, 25); textBox.Text = sliderBar.Value.ToString(); textBox.LostFocus += new EventHandler(textBoxChanged); textBox.Visible = true; #endregion #region maxLabel Initialization maxLabel = new Label(); maxLabel.Location = new System.Drawing.Point(this.Location.X + 34, this.Location.Y); maxLabel.Text = (sliderBar.Maximum / conversion).ToString(); #endregion #region minLabel Initialization minLabel = new Label(); minLabel.Location = new System.Drawing.Point(this.Location.X + 34, this.Location.Y + 95); minLabel.Size = new System.Drawing.Size(32, 12); minLabel.Text = (sliderBar.Minimum / conversion).ToString(); #endregion #region nameLabel Initialization nameLabel = new Label(); nameLabel.Location = new System.Drawing.Point(this.Location.X, this.sliderBar.Height + this.textBox.Height); nameLabel.Size = new System.Drawing.Size(48, 40); #endregion this.Controls.Add(maxLabel); this.Controls.Add(minLabel); this.Controls.Add(nameLabel); this.Controls.Add(sliderBar); this.Controls.Add(textBox); this.Size = new System.Drawing.Size(64, 176); }
private Panel CreateRangeWithNumeric(string name, int from, int to, int step, int value, Action <string> action) { Panel panel = new System.Windows.Forms.Panel(); TrackBar range = new System.Windows.Forms.TrackBar(); Label rangeLabel = new System.Windows.Forms.Label(); panel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right))); panel.Controls.Add(rangeLabel); panel.Controls.Add(range); panel.Location = new System.Drawing.Point(447, 68); panel.Name = "panel"; panel.Size = new System.Drawing.Size(439, 50); panel.TabIndex = 6; range.BackColor = System.Drawing.SystemColors.Control; range.Dock = System.Windows.Forms.DockStyle.Top; range.LargeChange = 1; range.Location = new System.Drawing.Point(0, 0); range.Maximum = to; range.Minimum = from; range.Name = "range" + name; range.Size = new System.Drawing.Size(439, 45); range.TabIndex = 4; range.SmallChange = step; range.LargeChange = step * 3; range.Value = value; range.ValueChanged += new System.EventHandler((object sender, EventArgs e) => { action(range.Value.ToString()); rangeLabel.Text = range.Value.ToString(); }); rangeLabel.Anchor = System.Windows.Forms.AnchorStyles.Top; rangeLabel.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(238))); rangeLabel.Location = new System.Drawing.Point(190, 28); rangeLabel.Name = "labelRange" + name; rangeLabel.Size = new System.Drawing.Size(59, 17); rangeLabel.TabIndex = 5; rangeLabel.Text = value.ToString(); rangeLabel.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; return(panel); }
// Initialize the TrackBar and add it to the form. private void InitializeTrackBar() { this.TrackBar1 = new System.Windows.Forms.TrackBar(); TrackBar1.Location = new System.Drawing.Point(75, 30); // Set the TickStyle property so there are ticks on both sides // of the TrackBar. TrackBar1.TickStyle = TickStyle.Both; // Set the minimum and maximum number of ticks. TrackBar1.Minimum = 10; TrackBar1.Maximum = 100; // Set the tick frequency to one tick every ten units. TrackBar1.TickFrequency = 10; // Associate the event-handling method with the // ValueChanged event. TrackBar1.ValueChanged += new System.EventHandler(TrackBar1_ValueChanged); this.Controls.Add(this.TrackBar1); }
private void Text_Changed(string newVal, System.Windows.Forms.TrackBar trackBar, string eltLabel, double multiplier) { // newVal: value trying to set to // trackBar, eltLabel: associated track bar and orbit element label inputVal_errorLabel.Visible = false; double updateIntVal = 0; if (IsError_TextChange(newVal, trackBar.Minimum, trackBar.Maximum, eltLabel, ref updateIntVal, multiplier)) { // there was an error, return without updating anything return; } // no error: continue with updating orbit double decVal = updateIntVal * multiplier; int updateVal = Convert.ToInt32(decVal); trackBar.Value = updateVal; UpdateSTKHelper(); }
/* * initialize trackBar and assign value to it */ private void generateTrackBar() { this.generateTickValues(); this.trackBar = new TrackBar(); //start initialization ((System.ComponentModel.ISupportInitialize)(this.trackBar)).BeginInit(); //initialize track bar this.trackBar.LargeChange = 10; this.trackBar.Location = trackBarPoint; this.trackBar.Margin = new Padding(2); this.trackBar.Minimum = 0; this.trackBar.Maximum = 255; this.trackBar.Name = "trackBar"; this.trackBar.Orientation = Orientation.Vertical; this.trackBar.Size = new Size(TRACKBARWIDTH, TRACKBARHEIGHT); this.trackBar.TabIndex = 0; this.trackBar.TickFrequency = 85; this.trackBar.Scroll += new EventHandler(this.trackBar1_Scroll); this.trackBar.BackColor = System.Drawing.SystemColors.ControlDark; this.control.Add(this.trackBar); //end initialization ((System.ComponentModel.ISupportInitialize)(this.trackBar)).EndInit(); }
/// <summary> /// Erforderliche Methode für die Designerunterstützung. /// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.openFileDialog = new System.Windows.Forms.OpenFileDialog(); this.button1 = new System.Windows.Forms.Button(); this.buttonPlay = new System.Windows.Forms.Button(); this.trackBarChorus = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.trackBarEcho = new System.Windows.Forms.TrackBar(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.label3 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.label5 = new System.Windows.Forms.Label(); this.trackBarLowEQ = new System.Windows.Forms.TrackBar(); this.trackBarMidEQ = new System.Windows.Forms.TrackBar(); this.trackBarHighEQ = new System.Windows.Forms.TrackBar(); this.label6 = new System.Windows.Forms.Label(); this.label7 = new System.Windows.Forms.Label(); this.label8 = new System.Windows.Forms.Label(); this.label9 = new System.Windows.Forms.Label(); ((System.ComponentModel.ISupportInitialize)(this.trackBarChorus)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarEcho)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarLowEQ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarMidEQ)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarHighEQ)).BeginInit(); this.SuspendLayout(); // // openFileDialog // this.openFileDialog.Filter = "Audio Files (*.mp3;*.ogg;*.wav)|*.mp3;*.ogg;*.wav"; this.openFileDialog.Title = "Select an audio file to play"; // // button1 // this.button1.Location = new System.Drawing.Point(16, 12); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(260, 23); this.button1.TabIndex = 0; this.button1.Text = "Select a file to play (e.g. MP3, OGG or WAV)..."; this.button1.Click += new System.EventHandler(this.button1_Click); // // buttonPlay // this.buttonPlay.Location = new System.Drawing.Point(16, 41); this.buttonPlay.Name = "buttonPlay"; this.buttonPlay.Size = new System.Drawing.Size(260, 23); this.buttonPlay.TabIndex = 1; this.buttonPlay.Text = "Play"; this.buttonPlay.Click += new System.EventHandler(this.buttonPlay_Click); // // trackBarChorus // this.trackBarChorus.AutoSize = false; this.trackBarChorus.Location = new System.Drawing.Point(241, 88); this.trackBarChorus.Maximum = 100; this.trackBarChorus.Name = "trackBarChorus"; this.trackBarChorus.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarChorus.Size = new System.Drawing.Size(38, 138); this.trackBarChorus.TabIndex = 11; this.trackBarChorus.TickFrequency = 10; this.trackBarChorus.TickStyle = System.Windows.Forms.TickStyle.None; this.trackBarChorus.Scroll += new System.EventHandler(this.trackBarChorus_Scroll); // // label1 // this.label1.Location = new System.Drawing.Point(233, 72); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(45, 16); this.label1.TabIndex = 10; this.label1.Text = "Chorus"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label2 // this.label2.Location = new System.Drawing.Point(189, 72); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(45, 16); this.label2.TabIndex = 8; this.label2.Text = "Echo"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // trackBarEcho // this.trackBarEcho.AutoSize = false; this.trackBarEcho.Location = new System.Drawing.Point(198, 88); this.trackBarEcho.Maximum = 100; this.trackBarEcho.Name = "trackBarEcho"; this.trackBarEcho.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarEcho.Size = new System.Drawing.Size(38, 138); this.trackBarEcho.TabIndex = 9; this.trackBarEcho.TickFrequency = 10; this.trackBarEcho.TickStyle = System.Windows.Forms.TickStyle.None; this.trackBarEcho.Scroll += new System.EventHandler(this.trackBarEcho_Scroll); // // label3 // this.label3.AutoSize = true; this.label3.Location = new System.Drawing.Point(13, 72); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(41, 13); this.label3.TabIndex = 2; this.label3.Text = "125 Hz"; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(60, 72); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(35, 13); this.label4.TabIndex = 4; this.label4.Text = "1 kHz"; // // label5 // this.label5.AutoSize = true; this.label5.Location = new System.Drawing.Point(101, 72); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(35, 13); this.label5.TabIndex = 6; this.label5.Text = "8 kHz"; // // trackBarLowEQ // this.trackBarLowEQ.AutoSize = false; this.trackBarLowEQ.LargeChange = 50; this.trackBarLowEQ.Location = new System.Drawing.Point(16, 88); this.trackBarLowEQ.Maximum = 150; this.trackBarLowEQ.Minimum = -150; this.trackBarLowEQ.Name = "trackBarLowEQ"; this.trackBarLowEQ.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarLowEQ.Size = new System.Drawing.Size(38, 138); this.trackBarLowEQ.SmallChange = 10; this.trackBarLowEQ.TabIndex = 3; this.trackBarLowEQ.TickFrequency = 50; this.trackBarLowEQ.ValueChanged += new System.EventHandler(this.trackBarLowEQ_ValueChanged); // // trackBarMidEQ // this.trackBarMidEQ.AutoSize = false; this.trackBarMidEQ.LargeChange = 50; this.trackBarMidEQ.Location = new System.Drawing.Point(57, 88); this.trackBarMidEQ.Maximum = 150; this.trackBarMidEQ.Minimum = -150; this.trackBarMidEQ.Name = "trackBarMidEQ"; this.trackBarMidEQ.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarMidEQ.Size = new System.Drawing.Size(38, 138); this.trackBarMidEQ.SmallChange = 10; this.trackBarMidEQ.TabIndex = 5; this.trackBarMidEQ.TickFrequency = 50; this.trackBarMidEQ.ValueChanged += new System.EventHandler(this.trackBarMidEQ_ValueChanged); // // trackBarHighEQ // this.trackBarHighEQ.AutoSize = false; this.trackBarHighEQ.LargeChange = 50; this.trackBarHighEQ.Location = new System.Drawing.Point(98, 88); this.trackBarHighEQ.Maximum = 150; this.trackBarHighEQ.Minimum = -150; this.trackBarHighEQ.Name = "trackBarHighEQ"; this.trackBarHighEQ.Orientation = System.Windows.Forms.Orientation.Vertical; this.trackBarHighEQ.Size = new System.Drawing.Size(38, 138); this.trackBarHighEQ.SmallChange = 10; this.trackBarHighEQ.TabIndex = 7; this.trackBarHighEQ.TickFrequency = 50; this.trackBarHighEQ.ValueChanged += new System.EventHandler(this.trackBarHighEQ_ValueChanged); // // label6 // this.label6.AutoSize = true; this.label6.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label6.Location = new System.Drawing.Point(135, 95); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(31, 12); this.label6.TabIndex = 12; this.label6.Text = "+15dB"; // // label7 // this.label7.AutoSize = true; this.label7.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label7.Location = new System.Drawing.Point(135, 205); this.label7.Name = "label7"; this.label7.Size = new System.Drawing.Size(29, 12); this.label7.TabIndex = 12; this.label7.Text = "-15dB"; // // label8 // this.label8.AutoSize = true; this.label8.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label8.Location = new System.Drawing.Point(172, 95); this.label8.Name = "label8"; this.label8.Size = new System.Drawing.Size(22, 12); this.label8.TabIndex = 12; this.label8.Text = "Wet"; // // label9 // this.label9.AutoSize = true; this.label9.Font = new System.Drawing.Font("Microsoft Sans Serif", 6.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label9.Location = new System.Drawing.Point(174, 205); this.label9.Name = "label9"; this.label9.Size = new System.Drawing.Size(20, 12); this.label9.TabIndex = 12; this.label9.Text = "Dry"; // // SetFX // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(292, 234); this.Controls.Add(this.trackBarHighEQ); this.Controls.Add(this.trackBarMidEQ); this.Controls.Add(this.trackBarLowEQ); this.Controls.Add(this.label5); this.Controls.Add(this.label4); this.Controls.Add(this.label3); this.Controls.Add(this.label2); this.Controls.Add(this.trackBarEcho); this.Controls.Add(this.label1); this.Controls.Add(this.trackBarChorus); this.Controls.Add(this.buttonPlay); this.Controls.Add(this.button1); this.Controls.Add(this.label7); this.Controls.Add(this.label9); this.Controls.Add(this.label8); this.Controls.Add(this.label6); this.Name = "SetFX"; this.Text = "SetFX Test"; this.Closing += new System.ComponentModel.CancelEventHandler(this.SetFX_Closing); this.Load += new System.EventHandler(this.SetFX_Load); ((System.ComponentModel.ISupportInitialize)(this.trackBarChorus)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarEcho)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarLowEQ)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarMidEQ)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarHighEQ)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.blendModeLabel = new System.Windows.Forms.Label(); this.blendOpComboBox = new System.Windows.Forms.ComboBox(); this.opacityUpDown = new System.Windows.Forms.NumericUpDown(); this.opacityTrackBar = new System.Windows.Forms.TrackBar(); this.opacityLabel = new System.Windows.Forms.Label(); this.blendingHeader = new PaintDotNet.HeaderLabel(); ((System.ComponentModel.ISupportInitialize)(this.opacityUpDown)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.opacityTrackBar)).BeginInit(); this.SuspendLayout(); // // visibleCheckBox // this.visibleCheckBox.FlatStyle = System.Windows.Forms.FlatStyle.System; this.visibleCheckBox.Location = new System.Drawing.Point(8, 48); this.visibleCheckBox.Name = "visibleCheckBox"; // // nameLabel // this.nameLabel.Location = new System.Drawing.Point(6, 27); this.nameLabel.Name = "nameLabel"; // // nameBox // this.nameBox.Name = "nameBox"; // // cancelButton // this.cancelButton.Location = new System.Drawing.Point(193, 152); this.cancelButton.Name = "cancelButton"; // // okButton // this.okButton.FlatStyle = System.Windows.Forms.FlatStyle.System; this.okButton.Location = new System.Drawing.Point(112, 152); this.okButton.Name = "okButton"; // // blendModeLabel // this.blendModeLabel.Location = new System.Drawing.Point(6, 92); this.blendModeLabel.Name = "blendModeLabel"; this.blendModeLabel.AutoSize = true; this.blendModeLabel.Size = new System.Drawing.Size(50, 23); this.blendModeLabel.TabIndex = 4; // // blendOpComboBox // this.blendOpComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.blendOpComboBox.Location = new System.Drawing.Point(64, 88); this.blendOpComboBox.Name = "blendOpComboBox"; this.blendOpComboBox.Size = new System.Drawing.Size(121, 21); this.blendOpComboBox.TabIndex = 4; this.blendOpComboBox.SelectedIndexChanged += new System.EventHandler(this.blendOpComboBox_SelectedIndexChanged); this.blendOpComboBox.MaxDropDownItems = 100; // // opacityUpDown // this.opacityUpDown.Location = new System.Drawing.Point(64, 116); this.opacityUpDown.Maximum = new System.Decimal(new int[] { 255, 0, 0, 0 }); this.opacityUpDown.Name = "opacityUpDown"; this.opacityUpDown.Size = new System.Drawing.Size(56, 20); this.opacityUpDown.TabIndex = 5; this.opacityUpDown.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; this.opacityUpDown.Enter += new System.EventHandler(this.opacityUpDown_Enter); this.opacityUpDown.KeyUp += new System.Windows.Forms.KeyEventHandler(this.opacityUpDown_KeyUp); this.opacityUpDown.ValueChanged += new System.EventHandler(this.opacityUpDown_ValueChanged); this.opacityUpDown.Leave += new System.EventHandler(this.opacityUpDown_Leave); // // opacityTrackBar // this.opacityTrackBar.AutoSize = false; this.opacityTrackBar.LargeChange = 32; this.opacityTrackBar.Location = new System.Drawing.Point(129, 114); this.opacityTrackBar.Maximum = 255; this.opacityTrackBar.Name = "opacityTrackBar"; this.opacityTrackBar.Size = new System.Drawing.Size(146, 24); this.opacityTrackBar.TabIndex = 6; this.opacityTrackBar.TickStyle = System.Windows.Forms.TickStyle.None; this.opacityTrackBar.ValueChanged += new System.EventHandler(this.opacityTrackBar_ValueChanged); // // opacityLabel // this.opacityLabel.Location = new System.Drawing.Point(6, 118); this.opacityLabel.AutoSize = true; this.opacityLabel.Name = "opacityLabel"; this.opacityLabel.Size = new System.Drawing.Size(48, 16); this.opacityLabel.TabIndex = 0; // // blendingHeader // this.blendingHeader.Location = new System.Drawing.Point(6, 72); this.blendingHeader.Name = "blendingHeader"; this.blendingHeader.Size = new System.Drawing.Size(269, 14); this.blendingHeader.TabIndex = 8; this.blendingHeader.TabStop = false; // // BitmapLayerPropertiesDialog // this.AutoScaleDimensions = new SizeF(96F, 96F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi; this.ClientSize = new System.Drawing.Size(274, 181); this.Controls.Add(this.blendingHeader); this.Controls.Add(this.blendOpComboBox); this.Controls.Add(this.opacityUpDown); this.Controls.Add(this.opacityLabel); this.Controls.Add(this.blendModeLabel); this.Controls.Add(this.opacityTrackBar); this.Location = new System.Drawing.Point(0, 0); this.Name = "BitmapLayerPropertiesDialog"; this.Controls.SetChildIndex(this.opacityTrackBar, 0); this.Controls.SetChildIndex(this.blendModeLabel, 0); this.Controls.SetChildIndex(this.opacityLabel, 0); this.Controls.SetChildIndex(this.opacityUpDown, 0); this.Controls.SetChildIndex(this.blendOpComboBox, 0); this.Controls.SetChildIndex(this.nameLabel, 0); this.Controls.SetChildIndex(this.visibleCheckBox, 0); this.Controls.SetChildIndex(this.nameBox, 0); this.Controls.SetChildIndex(this.blendingHeader, 0); this.Controls.SetChildIndex(this.cancelButton, 0); this.Controls.SetChildIndex(this.okButton, 0); ((System.ComponentModel.ISupportInitialize)(this.opacityUpDown)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.opacityTrackBar)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); this.panel1 = new System.Windows.Forms.Panel(); this.buttonApplyFilter = new Syncfusion.Windows.Forms.ButtonAdv(); this.checkBoxGrouping = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv(); this.textBoxFilter = new Syncfusion.Windows.Forms.Tools.TextBoxExt(); this.checkBoxFilter = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv(); this.labelTimerInterval = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.trackBarTimer = new System.Windows.Forms.TrackBar(); this.checkBoxSorting = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv(); this.checkBoxColor = new Syncfusion.Windows.Forms.Tools.CheckBoxAdv(); this.label4 = new System.Windows.Forms.Label(); this.trackBarBlinkFrequency = new System.Windows.Forms.TrackBar(); this.labelBlinkTime = new System.Windows.Forms.Label(); this.panel2 = new System.Windows.Forms.Panel(); this.panel3 = new System.Windows.Forms.Panel(); this.propertyGrid1 = new System.Windows.Forms.PropertyGrid(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxGrouping)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.textBoxFilter)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxFilter)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarTimer)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxSorting)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxColor)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarBlinkFrequency)).BeginInit(); this.panel3.SuspendLayout(); this.SuspendLayout(); // // panel1 // this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.panel1.Controls.Add(this.buttonApplyFilter); this.panel1.Controls.Add(this.checkBoxGrouping); this.panel1.Controls.Add(this.textBoxFilter); this.panel1.Controls.Add(this.checkBoxFilter); this.panel1.Controls.Add(this.labelTimerInterval); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.trackBarTimer); this.panel1.Controls.Add(this.checkBoxSorting); this.panel1.Controls.Add(this.checkBoxColor); this.panel1.Controls.Add(this.label4); this.panel1.Controls.Add(this.trackBarBlinkFrequency); this.panel1.Controls.Add(this.labelBlinkTime); this.panel1.Location = new System.Drawing.Point(34, 514); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(938, 110); this.panel1.TabIndex = 0; // // buttonApplyFilter // this.buttonApplyFilter.Appearance = Syncfusion.Windows.Forms.ButtonAppearance.Metro; this.buttonApplyFilter.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(22)))), ((int)(((byte)(165)))), ((int)(((byte)(220))))); this.buttonApplyFilter.BeforeTouchSize = new System.Drawing.Size(80, 24); this.buttonApplyFilter.BorderStyleAdv = Syncfusion.Windows.Forms.ButtonAdvBorderStyle.RaisedInner; this.buttonApplyFilter.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.buttonApplyFilter.ForeColor = System.Drawing.Color.White; this.buttonApplyFilter.IsBackStageButton = false; this.buttonApplyFilter.Location = new System.Drawing.Point(524, 35); this.buttonApplyFilter.Name = "buttonApplyFilter"; this.buttonApplyFilter.Size = new System.Drawing.Size(80, 24); this.buttonApplyFilter.TabIndex = 8; this.buttonApplyFilter.Text = "Apply"; this.buttonApplyFilter.UseVisualStyle = true; this.buttonApplyFilter.Click += new System.EventHandler(this.buttonApplyFilter_Click); // // checkBoxGrouping // this.checkBoxGrouping.BeforeTouchSize = new System.Drawing.Size(150, 21); this.checkBoxGrouping.Border3DStyle = System.Windows.Forms.Border3DStyle.Flat; this.checkBoxGrouping.DrawFocusRectangle = false; this.checkBoxGrouping.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxGrouping.ForeColor = System.Drawing.Color.DimGray; this.checkBoxGrouping.Location = new System.Drawing.Point(418, 65); this.checkBoxGrouping.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.checkBoxGrouping.Name = "checkBoxGrouping"; this.checkBoxGrouping.Size = new System.Drawing.Size(115, 24); this.checkBoxGrouping.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro; this.checkBoxGrouping.TabIndex = 7; this.checkBoxGrouping.Text = "Enable Grouping"; this.checkBoxGrouping.ThemesEnabled = false; this.checkBoxGrouping.CheckStateChanged += new System.EventHandler(this.checkBoxGrouping_CheckedChanged); // // textBoxFilter // this.textBoxFilter.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.textBoxFilter.BeforeTouchSize = new System.Drawing.Size(393, 22); this.textBoxFilter.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.textBoxFilter.Cursor = System.Windows.Forms.Cursors.IBeam; this.textBoxFilter.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.textBoxFilter.ForeColor = System.Drawing.Color.DimGray; this.textBoxFilter.Location = new System.Drawing.Point(524, 8); this.textBoxFilter.Metrocolor = System.Drawing.Color.Empty; this.textBoxFilter.Name = "textBoxFilter"; this.textBoxFilter.Size = new System.Drawing.Size(393, 22); this.textBoxFilter.Style = Syncfusion.Windows.Forms.Tools.TextBoxExt.theme.Default; this.textBoxFilter.TabIndex = 6; this.textBoxFilter.Text = "textBox1"; // // checkBoxFilter // this.checkBoxFilter.BeforeTouchSize = new System.Drawing.Size(150, 21); this.checkBoxFilter.DrawFocusRectangle = false; this.checkBoxFilter.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxFilter.ForeColor = System.Drawing.Color.DimGray; this.checkBoxFilter.Location = new System.Drawing.Point(418, 8); this.checkBoxFilter.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.checkBoxFilter.Name = "checkBoxFilter"; this.checkBoxFilter.Size = new System.Drawing.Size(100, 24); this.checkBoxFilter.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro; this.checkBoxFilter.TabIndex = 5; this.checkBoxFilter.Text = "Enable Filter"; this.checkBoxFilter.ThemesEnabled = false; this.checkBoxFilter.CheckStateChanged += new System.EventHandler(this.checkBoxFilter_CheckedChanged); // // labelTimerInterval // this.labelTimerInterval.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelTimerInterval.ForeColor = System.Drawing.Color.DimGray; this.labelTimerInterval.Location = new System.Drawing.Point(322, 8); this.labelTimerInterval.Name = "labelTimerInterval"; this.labelTimerInterval.Size = new System.Drawing.Size(112, 40); this.labelTimerInterval.TabIndex = 4; this.labelTimerInterval.Text = "label2"; // // label1 // this.label1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label1.ForeColor = System.Drawing.Color.DimGray; this.label1.Location = new System.Drawing.Point(8, 6); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(109, 28); this.label1.TabIndex = 3; this.label1.Text = "Timer Frequency"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // trackBarTimer // this.trackBarTimer.Location = new System.Drawing.Point(124, 8); this.trackBarTimer.Name = "trackBarTimer"; this.trackBarTimer.Size = new System.Drawing.Size(184, 45); this.trackBarTimer.TabIndex = 2; this.trackBarTimer.Scroll += new System.EventHandler(this.trackBarTimer_Scroll); // // checkBoxSorting // this.checkBoxSorting.BeforeTouchSize = new System.Drawing.Size(150, 21); this.checkBoxSorting.DrawFocusRectangle = false; this.checkBoxSorting.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxSorting.ForeColor = System.Drawing.Color.DimGray; this.checkBoxSorting.Location = new System.Drawing.Point(536, 65); this.checkBoxSorting.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.checkBoxSorting.Name = "checkBoxSorting"; this.checkBoxSorting.Size = new System.Drawing.Size(107, 24); this.checkBoxSorting.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro; this.checkBoxSorting.TabIndex = 7; this.checkBoxSorting.Text = "Enable Sorting"; this.checkBoxSorting.ThemesEnabled = false; this.checkBoxSorting.CheckStateChanged += new System.EventHandler(this.checkBoxSorting_CheckedChanged); // // checkBoxColor // this.checkBoxColor.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.checkBoxColor.BeforeTouchSize = new System.Drawing.Size(292, 24); this.checkBoxColor.DrawFocusRectangle = false; this.checkBoxColor.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.checkBoxColor.ForeColor = System.Drawing.Color.DimGray; this.checkBoxColor.Location = new System.Drawing.Point(643, 65); this.checkBoxColor.MetroColor = System.Drawing.Color.FromArgb(((int)(((byte)(27)))), ((int)(((byte)(161)))), ((int)(((byte)(226))))); this.checkBoxColor.Name = "checkBoxColor"; this.checkBoxColor.Size = new System.Drawing.Size(292, 24); this.checkBoxColor.Style = Syncfusion.Windows.Forms.Tools.CheckBoxAdvStyle.Metro; this.checkBoxColor.TabIndex = 7; this.checkBoxColor.Text = "Enable Coloring"; this.checkBoxColor.ThemesEnabled = false; this.checkBoxColor.CheckStateChanged += new System.EventHandler(this.checkBoxColor_CheckedChanged); // // label4 // this.label4.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.label4.ForeColor = System.Drawing.Color.DimGray; this.label4.Location = new System.Drawing.Point(8, 58); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(102, 31); this.label4.TabIndex = 3; this.label4.Text = "Blink Frequency"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // trackBarBlinkFrequency // this.trackBarBlinkFrequency.Location = new System.Drawing.Point(124, 63); this.trackBarBlinkFrequency.Maximum = 20; this.trackBarBlinkFrequency.Name = "trackBarBlinkFrequency"; this.trackBarBlinkFrequency.Size = new System.Drawing.Size(184, 45); this.trackBarBlinkFrequency.SmallChange = 2; this.trackBarBlinkFrequency.TabIndex = 2; this.trackBarBlinkFrequency.TickFrequency = 2; this.trackBarBlinkFrequency.Scroll += new System.EventHandler(this.trackBarBlinkFrequency_Scroll); // // labelBlinkTime // this.labelBlinkTime.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.labelBlinkTime.ForeColor = System.Drawing.Color.DimGray; this.labelBlinkTime.Location = new System.Drawing.Point(321, 62); this.labelBlinkTime.Name = "labelBlinkTime"; this.labelBlinkTime.Size = new System.Drawing.Size(91, 40); this.labelBlinkTime.TabIndex = 4; this.labelBlinkTime.Text = "Disabled."; // // panel2 // this.panel2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.panel2.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.panel2.Location = new System.Drawing.Point(34, 13); this.panel2.MinimumSize = new System.Drawing.Size(400, 250); this.panel2.Name = "panel2"; this.panel2.Size = new System.Drawing.Size(676, 478); this.panel2.TabIndex = 1; // // panel3 // this.panel3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.panel3.Controls.Add(this.propertyGrid1); this.panel3.Location = new System.Drawing.Point(729, 12); this.panel3.Name = "panel3"; this.panel3.Size = new System.Drawing.Size(243, 479); this.panel3.TabIndex = 0; // // propertyGrid1 // this.propertyGrid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Right))); this.propertyGrid1.Font = new System.Drawing.Font("Segoe UI", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.propertyGrid1.HelpBackColor = System.Drawing.Color.White; this.propertyGrid1.LineColor = System.Drawing.Color.White; this.propertyGrid1.Location = new System.Drawing.Point(0, 3); this.propertyGrid1.Name = "propertyGrid1"; this.propertyGrid1.Size = new System.Drawing.Size(243, 476); this.propertyGrid1.TabIndex = 0; // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.ClientSize = new System.Drawing.Size(1012, 656); this.Controls.Add(this.panel3); this.Controls.Add(this.panel2); this.Controls.Add(this.panel1); this.MinimumSize = new System.Drawing.Size(850, 490); this.Name = "Form1"; this.Text = "Grouping Trader Grid Test"; this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxGrouping)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.textBoxFilter)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxFilter)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarTimer)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxSorting)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.checkBoxColor)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBarBlinkFrequency)).EndInit(); this.panel3.ResumeLayout(false); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.pieSeries1 = new Steema.TeeChart.Styles.Pie(); this.checkBox1 = new System.Windows.Forms.CheckBox(); this.trackBar1 = new System.Windows.Forms.TrackBar(); this.trackBar2 = new System.Windows.Forms.TrackBar(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.panel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit(); this.SuspendLayout(); // // textBox1 // this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(511, 64); this.textBox1.TabIndex = 0; this.textBox1.Text = "The Chart Legend can be custom-positioned.\r\n\r\nExample: tChart1.Legend.CustomPosit" + "ion = true;\r\n tChart1.Legend.Left := 123;"; // // panel1 // this.panel1.Controls.Add(this.label2); this.panel1.Controls.Add(this.label1); this.panel1.Controls.Add(this.trackBar2); this.panel1.Controls.Add(this.trackBar1); this.panel1.Controls.Add(this.checkBox1); this.panel1.Location = new System.Drawing.Point(0, 64); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(511, 40); this.panel1.TabIndex = 1; // // tChart1 // // // tChart1.Aspect // this.tChart1.Aspect.Elevation = 315; this.tChart1.Aspect.Orthogonal = false; this.tChart1.Aspect.Perspective = 0; this.tChart1.Aspect.Rotation = 360; this.tChart1.Aspect.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.HighQuality; this.tChart1.Aspect.TextRenderingHint = System.Drawing.Text.TextRenderingHint.ClearTypeGridFit; // // tChart1.Header // this.tChart1.Header.Lines = new string[] { "tChart1" }; // // tChart1.Legend // this.tChart1.Legend.Alignment = Steema.TeeChart.LegendAlignments.Left; // // tChart1.Legend.Pen // this.tChart1.Legend.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); this.tChart1.Location = new System.Drawing.Point(0, 104); this.tChart1.Name = "tChart1"; // // tChart1.Panel // // // tChart1.Panel.Brush // this.tChart1.Panel.Brush.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(255))); this.tChart1.Series.Add(this.pieSeries1); this.tChart1.Size = new System.Drawing.Size(511, 208); this.tChart1.TabIndex = 2; // // pieSeries1 // // // pieSeries1.Brush // this.pieSeries1.Brush.Color = System.Drawing.Color.Red; this.pieSeries1.LabelMember = "Labels"; // // pieSeries1.Marks // // // pieSeries1.Marks.Pen // this.pieSeries1.Marks.Pen.Color = System.Drawing.Color.FromArgb(((System.Byte)(254)), ((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(192))); // // pieSeries1.Marks.Symbol // // // pieSeries1.Marks.Symbol.Shadow // this.pieSeries1.Marks.Symbol.Shadow.Height = 1; this.pieSeries1.Marks.Symbol.Shadow.Visible = true; this.pieSeries1.Marks.Symbol.Shadow.Width = 1; // // pieSeries1.Pen // this.pieSeries1.Pen.Visible = false; // // pieSeries1.Shadow // this.pieSeries1.Shadow.Height = 20; this.pieSeries1.Shadow.Width = 20; this.pieSeries1.Title = "pieSeries1"; // // pieSeries1.XValues // this.pieSeries1.XValues.DataMember = "Angle"; this.pieSeries1.XValues.Order = Steema.TeeChart.Styles.ValueListOrder.Ascending; // // pieSeries1.YValues // this.pieSeries1.YValues.DataMember = "Pie"; // // checkBox1 // this.checkBox1.Checked = true; this.checkBox1.CheckState = System.Windows.Forms.CheckState.Checked; this.checkBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.checkBox1.Location = new System.Drawing.Point(15, 8); this.checkBox1.Name = "checkBox1"; this.checkBox1.Size = new System.Drawing.Size(109, 23); this.checkBox1.TabIndex = 0; this.checkBox1.Text = "&Custom position"; this.checkBox1.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged); // // trackBar1 // this.trackBar1.AutoSize = false; this.trackBar1.Location = new System.Drawing.Point(183, 11); this.trackBar1.Maximum = 300; this.trackBar1.Name = "trackBar1"; this.trackBar1.Size = new System.Drawing.Size(102, 17); this.trackBar1.TabIndex = 2; this.trackBar1.TickFrequency = 20; this.trackBar1.Scroll += new System.EventHandler(this.trackBar1_Scroll); // // trackBar2 // this.trackBar2.AutoSize = false; this.trackBar2.Location = new System.Drawing.Point(336, 11); this.trackBar2.Maximum = 300; this.trackBar2.Name = "trackBar2"; this.trackBar2.Size = new System.Drawing.Size(102, 17); this.trackBar2.TabIndex = 4; this.trackBar2.TickFrequency = 20; this.trackBar2.Scroll += new System.EventHandler(this.trackBar2_Scroll); // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(146, 11); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(26, 16); this.label1.TabIndex = 1; this.label1.Text = "&Left:"; this.label1.TextAlign = System.Drawing.ContentAlignment.TopRight; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(292, 11); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(27, 16); this.label2.TabIndex = 3; this.label2.Text = "&Top:"; this.label2.TextAlign = System.Drawing.ContentAlignment.TopRight; // // Legend_CustomPos // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(511, 312); this.Name = "Legend_CustomPos"; this.panel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(SpinGlobe)); this.lblFaster = new System.Windows.Forms.Label(); this.lblSlower = new System.Windows.Forms.Label(); this.TrackBar1 = new System.Windows.Forms.TrackBar(); this.btnStop = new System.Windows.Forms.Button(); this.btnClockwise = new System.Windows.Forms.Button(); this.btnAntiClockwise = new System.Windows.Forms.Button(); this.btnLoad = new System.Windows.Forms.Button(); this.axArcReaderGlobeControl1 = new ESRI.ArcGIS.PublisherControls.AxArcReaderGlobeControl(); this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog(); this.timer1 = new System.Windows.Forms.Timer(this.components); ((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axArcReaderGlobeControl1)).BeginInit(); this.SuspendLayout(); // // lblFaster // this.lblFaster.Location = new System.Drawing.Point(152, 16); this.lblFaster.Name = "lblFaster"; this.lblFaster.Size = new System.Drawing.Size(40, 20); this.lblFaster.TabIndex = 14; this.lblFaster.Text = "Faster"; // // lblSlower // this.lblSlower.Location = new System.Drawing.Point(360, 16); this.lblSlower.Name = "lblSlower"; this.lblSlower.Size = new System.Drawing.Size(40, 20); this.lblSlower.TabIndex = 13; this.lblSlower.Text = "Slower"; // // TrackBar1 // this.TrackBar1.Location = new System.Drawing.Point(192, 8); this.TrackBar1.Maximum = 1000; this.TrackBar1.Minimum = 100; this.TrackBar1.Name = "TrackBar1"; this.TrackBar1.Size = new System.Drawing.Size(164, 45); this.TrackBar1.TabIndex = 12; this.TrackBar1.TickStyle = System.Windows.Forms.TickStyle.None; this.TrackBar1.Value = 100; this.TrackBar1.ValueChanged += new System.EventHandler(this.TrackBar1_ValueChanged); // // btnStop // this.btnStop.Location = new System.Drawing.Point(512, 16); this.btnStop.Name = "btnStop"; this.btnStop.Size = new System.Drawing.Size(76, 36); this.btnStop.TabIndex = 11; this.btnStop.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnStop.Click += new System.EventHandler(this.btnStop_Click); // // btnClockwise // this.btnClockwise.Location = new System.Drawing.Point(424, 16); this.btnClockwise.Name = "btnClockwise"; this.btnClockwise.Size = new System.Drawing.Size(76, 36); this.btnClockwise.TabIndex = 10; this.btnClockwise.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnClockwise.Click += new System.EventHandler(this.btnClockwise_Click); // // btnAntiClockwise // this.btnAntiClockwise.Location = new System.Drawing.Point(592, 16); this.btnAntiClockwise.Name = "btnAntiClockwise"; this.btnAntiClockwise.Size = new System.Drawing.Size(76, 36); this.btnAntiClockwise.TabIndex = 9; this.btnAntiClockwise.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnAntiClockwise.Click += new System.EventHandler(this.btnAntiClockwise_Click); // // btnLoad // this.btnLoad.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.btnLoad.Location = new System.Drawing.Point(8, 16); this.btnLoad.Name = "btnLoad"; this.btnLoad.Size = new System.Drawing.Size(76, 36); this.btnLoad.TabIndex = 8; this.btnLoad.Text = "Load"; this.btnLoad.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.btnLoad.Click += new System.EventHandler(this.btnLoad_Click); // // axArcReaderGlobeControl1 // this.axArcReaderGlobeControl1.Location = new System.Drawing.Point(8, 64); this.axArcReaderGlobeControl1.Name = "axArcReaderGlobeControl1"; this.axArcReaderGlobeControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axArcReaderGlobeControl1.OcxState"))); this.axArcReaderGlobeControl1.Size = new System.Drawing.Size(656, 376); this.axArcReaderGlobeControl1.TabIndex = 15; this.axArcReaderGlobeControl1.OnDocumentUnloaded += new System.EventHandler(this.axArcReaderGlobeControl1_OnDocumentUnloaded); this.axArcReaderGlobeControl1.OnDocumentLoaded += new ESRI.ArcGIS.PublisherControls.IARGlobeControlEvents_Ax_OnDocumentLoadedEventHandler(this.axArcReaderGlobeControl1_OnDocumentLoaded); this.axArcReaderGlobeControl1.OnMouseUp += new ESRI.ArcGIS.PublisherControls.IARGlobeControlEvents_Ax_OnMouseUpEventHandler(this.axArcReaderGlobeControl1_OnMouseUp); // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // SpinGlobe // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(676, 450); this.Controls.Add(this.axArcReaderGlobeControl1); this.Controls.Add(this.lblFaster); this.Controls.Add(this.lblSlower); this.Controls.Add(this.TrackBar1); this.Controls.Add(this.btnStop); this.Controls.Add(this.btnClockwise); this.Controls.Add(this.btnAntiClockwise); this.Controls.Add(this.btnLoad); this.Name = "SpinGlobe"; this.Text = "SpinGlobe"; this.Closing += new System.ComponentModel.CancelEventHandler(this.SpinGlobe_Closing); this.Load += new System.EventHandler(this.SpinGlobe_Load); ((System.ComponentModel.ISupportInitialize)(this.TrackBar1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axArcReaderGlobeControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1)); this.gpbInkSketch = new System.Windows.Forms.GroupBox(); this.lblAutoComplete = new System.Windows.Forms.Label(); this.lbl10sec = new System.Windows.Forms.Label(); this.lbl1sec = new System.Windows.Forms.Label(); this.tbrAutoComplete = new System.Windows.Forms.TrackBar(); this.radAutoText = new System.Windows.Forms.RadioButton(); this.radAutoGraphic = new System.Windows.Forms.RadioButton(); this.radManual = new System.Windows.Forms.RadioButton(); this.lblInfo = new System.Windows.Forms.Label(); this.gpbReport = new System.Windows.Forms.GroupBox(); this.tbxNumber = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.lblCollectingStatus = new System.Windows.Forms.Label(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.axToolbarControl1 = new ESRI.ArcGIS.Controls.AxToolbarControl(); this.axMapControl1 = new ESRI.ArcGIS.Controls.AxMapControl(); this.axLicenseControl1 = new ESRI.ArcGIS.Controls.AxLicenseControl(); this.gpbInkSketch.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbrAutoComplete)).BeginInit(); this.gpbReport.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).BeginInit(); this.SuspendLayout(); // // gpbInkSketch // this.gpbInkSketch.Controls.Add(this.lblAutoComplete); this.gpbInkSketch.Controls.Add(this.lbl10sec); this.gpbInkSketch.Controls.Add(this.lbl1sec); this.gpbInkSketch.Controls.Add(this.tbrAutoComplete); this.gpbInkSketch.Controls.Add(this.radAutoText); this.gpbInkSketch.Controls.Add(this.radAutoGraphic); this.gpbInkSketch.Controls.Add(this.radManual); this.gpbInkSketch.Controls.Add(this.lblInfo); this.gpbInkSketch.Location = new System.Drawing.Point(433, 51); this.gpbInkSketch.Name = "gpbInkSketch"; this.gpbInkSketch.Size = new System.Drawing.Size(296, 352); this.gpbInkSketch.TabIndex = 3; this.gpbInkSketch.TabStop = false; this.gpbInkSketch.Text = "Ink Sketch Commit Options"; // // lblAutoComplete // this.lblAutoComplete.Location = new System.Drawing.Point(24, 240); this.lblAutoComplete.Name = "lblAutoComplete"; this.lblAutoComplete.Size = new System.Drawing.Size(263, 23); this.lblAutoComplete.TabIndex = 7; this.lblAutoComplete.Text = "Automatically Commit the Ink Sketch after:"; // // lbl10sec // this.lbl10sec.Location = new System.Drawing.Point(216, 303); this.lbl10sec.Name = "lbl10sec"; this.lbl10sec.Size = new System.Drawing.Size(64, 24); this.lbl10sec.TabIndex = 6; this.lbl10sec.Text = "(10 sec)"; // // lbl1sec // this.lbl1sec.Location = new System.Drawing.Point(8, 303); this.lbl1sec.Name = "lbl1sec"; this.lbl1sec.Size = new System.Drawing.Size(65, 24); this.lbl1sec.TabIndex = 5; this.lbl1sec.Text = "(1 sec)"; // // tbrAutoComplete // this.tbrAutoComplete.Location = new System.Drawing.Point(8, 264); this.tbrAutoComplete.Minimum = 1; this.tbrAutoComplete.Name = "tbrAutoComplete"; this.tbrAutoComplete.Size = new System.Drawing.Size(264, 56); this.tbrAutoComplete.TabIndex = 4; this.tbrAutoComplete.Value = 1; this.tbrAutoComplete.MouseUp += new System.Windows.Forms.MouseEventHandler(this.tbrAutoComplete_MouseUp); // // radAutoText // this.radAutoText.Location = new System.Drawing.Point(16, 167); this.radAutoText.Name = "radAutoText"; this.radAutoText.Size = new System.Drawing.Size(272, 54); this.radAutoText.TabIndex = 3; this.radAutoText.Text = "Automatically Committed and Recognized as Text (Tablet PC only)"; this.radAutoText.CheckedChanged += new System.EventHandler(this.radAutoText_CheckedChanged); // // radAutoGraphic // this.radAutoGraphic.Location = new System.Drawing.Point(16, 144); this.radAutoGraphic.Name = "radAutoGraphic"; this.radAutoGraphic.Size = new System.Drawing.Size(271, 24); this.radAutoGraphic.TabIndex = 2; this.radAutoGraphic.Text = "Automatically Committed to Graphic"; this.radAutoGraphic.CheckedChanged += new System.EventHandler(this.radAutoGraphic_CheckedChanged); // // radManual // this.radManual.Location = new System.Drawing.Point(16, 112); this.radManual.Name = "radManual"; this.radManual.Size = new System.Drawing.Size(160, 24); this.radManual.TabIndex = 1; this.radManual.Text = "Manually Committed"; this.radManual.CheckedChanged += new System.EventHandler(this.radManual_CheckedChanged); // // lblInfo // this.lblInfo.Location = new System.Drawing.Point(16, 40); this.lblInfo.Name = "lblInfo"; this.lblInfo.Size = new System.Drawing.Size(264, 56); this.lblInfo.TabIndex = 0; this.lblInfo.Text = "Ink sketches can be committed manually or automatically. Click on the buttons belo" + "w to change the commit method."; // // gpbReport // this.gpbReport.Controls.Add(this.tbxNumber); this.gpbReport.Controls.Add(this.label1); this.gpbReport.Controls.Add(this.lblCollectingStatus); this.gpbReport.Location = new System.Drawing.Point(433, 409); this.gpbReport.Name = "gpbReport"; this.gpbReport.Size = new System.Drawing.Size(296, 112); this.gpbReport.TabIndex = 4; this.gpbReport.TabStop = false; this.gpbReport.Text = "Sketch Report"; // // tbxNumber // this.tbxNumber.BackColor = System.Drawing.SystemColors.Control; this.tbxNumber.BorderStyle = System.Windows.Forms.BorderStyle.None; this.tbxNumber.Location = new System.Drawing.Point(176, 32); this.tbxNumber.Name = "tbxNumber"; this.tbxNumber.Size = new System.Drawing.Size(100, 15); this.tbxNumber.TabIndex = 2; this.tbxNumber.Text = "0"; // // label1 // this.label1.Location = new System.Drawing.Point(8, 32); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(168, 23); this.label1.TabIndex = 1; this.label1.Text = "Number of Ink Sketches = "; // // lblCollectingStatus // this.lblCollectingStatus.Location = new System.Drawing.Point(8, 80); this.lblCollectingStatus.Name = "lblCollectingStatus"; this.lblCollectingStatus.Size = new System.Drawing.Size(272, 16); this.lblCollectingStatus.TabIndex = 0; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 58.46906F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 41.53094F)); this.tableLayoutPanel1.Controls.Add(this.gpbInkSketch, 1, 1); this.tableLayoutPanel1.Controls.Add(this.axToolbarControl1, 0, 0); this.tableLayoutPanel1.Controls.Add(this.axMapControl1, 0, 1); this.tableLayoutPanel1.Controls.Add(this.gpbReport, 1, 2); this.tableLayoutPanel1.Controls.Add(this.axLicenseControl1, 0, 2); this.tableLayoutPanel1.Location = new System.Drawing.Point(14, 8); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 11.88406F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 88.11594F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 120F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(737, 527); this.tableLayoutPanel1.TabIndex = 5; // // axToolbarControl1 // this.tableLayoutPanel1.SetColumnSpan(this.axToolbarControl1, 2); this.axToolbarControl1.Location = new System.Drawing.Point(3, 3); this.axToolbarControl1.Name = "axToolbarControl1"; this.axToolbarControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axToolbarControl1.OcxState"))); this.axToolbarControl1.Size = new System.Drawing.Size(729, 28); this.axToolbarControl1.TabIndex = 5; // // axMapControl1 // this.axMapControl1.Location = new System.Drawing.Point(3, 51); this.axMapControl1.Name = "axMapControl1"; this.axMapControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axMapControl1.OcxState"))); this.axMapControl1.Size = new System.Drawing.Size(423, 352); this.axMapControl1.TabIndex = 6; this.axMapControl1.OnAfterScreenDraw += new ESRI.ArcGIS.Controls.IMapControlEvents2_Ax_OnAfterScreenDrawEventHandler(this.axMapControl1_OnAfterScreenDraw); // // axLicenseControl1 // this.axLicenseControl1.Enabled = true; this.axLicenseControl1.Location = new System.Drawing.Point(3, 409); this.axLicenseControl1.Name = "axLicenseControl1"; this.axLicenseControl1.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("axLicenseControl1.OcxState"))); this.axLicenseControl1.Size = new System.Drawing.Size(32, 32); this.axLicenseControl1.TabIndex = 7; // // Form1 // this.AutoScaleBaseSize = new System.Drawing.Size(6, 15); this.ClientSize = new System.Drawing.Size(767, 540); this.Controls.Add(this.tableLayoutPanel1); this.MaximumSize = new System.Drawing.Size(775, 580); this.MinimumSize = new System.Drawing.Size(775, 580); this.Name = "Form1"; this.Text = "Ink Sketch Commit"; this.Load += new System.EventHandler(this.Form1_Load); this.gpbInkSketch.ResumeLayout(false); this.gpbInkSketch.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.tbrAutoComplete)).EndInit(); this.gpbReport.ResumeLayout(false); this.gpbReport.PerformLayout(); this.tableLayoutPanel1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.axToolbarControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axMapControl1)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.axLicenseControl1)).EndInit(); this.ResumeLayout(false); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmProperties)); this.chkLoop = new System.Windows.Forms.CheckBox(); this.trkPan = new System.Windows.Forms.TrackBar(); this.trkVolume = new System.Windows.Forms.TrackBar(); this.lblL = new System.Windows.Forms.Label(); this.lblRight = new System.Windows.Forms.Label(); this.lblCenter = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label(); this.lblMax = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label(); this.chkReverse = new System.Windows.Forms.CheckBox(); this.lblChannels = new System.Windows.Forms.Label(); this.lblBitDepth = new System.Windows.Forms.Label(); this.lblLength = new System.Windows.Forms.Label(); this.lblFrequency = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label(); this.lblFrequencyHigh = new System.Windows.Forms.Label(); this.lblFrequencyLow = new System.Windows.Forms.Label(); this.trkFreq = new System.Windows.Forms.TrackBar(); this.txtLocation = new System.Windows.Forms.TextBox(); this.toolStrip = new System.Windows.Forms.ToolStrip(); this.playToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.stopToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.viewToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.pitchRollerToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.setKeyToolStripButton = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); this.setVideoToolStripButton = new System.Windows.Forms.ToolStripButton(); ((System.ComponentModel.ISupportInitialize)(this.trkPan)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trkVolume)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.trkFreq)).BeginInit(); this.toolStrip.SuspendLayout(); this.SuspendLayout(); // // chkLoop // this.chkLoop.Location = new System.Drawing.Point(269, 115); this.chkLoop.Name = "chkLoop"; this.chkLoop.Size = new System.Drawing.Size(56, 24); this.chkLoop.TabIndex = 2; this.chkLoop.Text = "Loop"; this.chkLoop.CheckedChanged += new System.EventHandler(this.chkLoop_CheckedChanged); // // trkPan // this.trkPan.Location = new System.Drawing.Point(0, 59); this.trkPan.Maximum = 6000; this.trkPan.Minimum = -6000; this.trkPan.Name = "trkPan"; this.trkPan.Size = new System.Drawing.Size(376, 45); this.trkPan.TabIndex = 4; this.trkPan.TickStyle = System.Windows.Forms.TickStyle.None; this.trkPan.ValueChanged += new System.EventHandler(this.trkPan_ValueChanged); // // trkVolume // this.trkVolume.Location = new System.Drawing.Point(179, 98); this.trkVolume.Maximum = 128; this.trkVolume.Name = "trkVolume"; this.trkVolume.Orientation = System.Windows.Forms.Orientation.Vertical; this.trkVolume.Size = new System.Drawing.Size(45, 216); this.trkVolume.TabIndex = 5; this.trkVolume.TickStyle = System.Windows.Forms.TickStyle.None; this.trkVolume.Value = 128; this.trkVolume.ValueChanged += new System.EventHandler(this.trkVolume_ValueChanged); // // lblL // this.lblL.Location = new System.Drawing.Point(8, 82); this.lblL.Name = "lblL"; this.lblL.Size = new System.Drawing.Size(32, 16); this.lblL.TabIndex = 7; this.lblL.Text = "Left"; this.lblL.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // lblRight // this.lblRight.Location = new System.Drawing.Point(336, 82); this.lblRight.Name = "lblRight"; this.lblRight.Size = new System.Drawing.Size(32, 16); this.lblRight.TabIndex = 8; this.lblRight.Text = "Right"; this.lblRight.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // lblCenter // this.lblCenter.Location = new System.Drawing.Point(184, 82); this.lblCenter.Name = "lblCenter"; this.lblCenter.Size = new System.Drawing.Size(8, 16); this.lblCenter.TabIndex = 9; this.lblCenter.Text = "|"; this.lblCenter.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label1 // this.label1.Location = new System.Drawing.Point(203, 198); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(8, 16); this.label1.TabIndex = 11; this.label1.Text = "-"; this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // label2 // this.label2.Location = new System.Drawing.Point(165, 198); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(8, 16); this.label2.TabIndex = 12; this.label2.Text = "-"; this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblMax // this.lblMax.Location = new System.Drawing.Point(206, 106); this.lblMax.Name = "lblMax"; this.lblMax.Size = new System.Drawing.Size(32, 16); this.lblMax.TabIndex = 13; this.lblMax.Text = "Max"; // // label3 // this.label3.Location = new System.Drawing.Point(206, 290); this.label3.Name = "label3"; this.label3.Size = new System.Drawing.Size(32, 15); this.label3.TabIndex = 14; this.label3.Text = "Min"; this.label3.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // chkReverse // this.chkReverse.Location = new System.Drawing.Point(269, 145); this.chkReverse.Name = "chkReverse"; this.chkReverse.Size = new System.Drawing.Size(82, 24); this.chkReverse.TabIndex = 46; this.chkReverse.Text = "Reverse"; this.chkReverse.Click += new System.EventHandler(this.chkReverse_Click); this.chkReverse.CheckedChanged += new System.EventHandler(this.chkReverse_CheckedChanged); // // lblChannels // this.lblChannels.Location = new System.Drawing.Point(5, 115); this.lblChannels.Name = "lblChannels"; this.lblChannels.Size = new System.Drawing.Size(152, 16); this.lblChannels.TabIndex = 47; this.lblChannels.Text = "Channels : "; this.lblChannels.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // lblBitDepth // this.lblBitDepth.Location = new System.Drawing.Point(5, 145); this.lblBitDepth.Name = "lblBitDepth"; this.lblBitDepth.Size = new System.Drawing.Size(152, 16); this.lblBitDepth.TabIndex = 48; this.lblBitDepth.Text = "Bits Depth: "; this.lblBitDepth.TextAlign = System.Drawing.ContentAlignment.TopCenter; this.lblBitDepth.Click += new System.EventHandler(this.lblFrequency_Click); // // lblLength // this.lblLength.Location = new System.Drawing.Point(5, 205); this.lblLength.Name = "lblLength"; this.lblLength.Size = new System.Drawing.Size(152, 16); this.lblLength.TabIndex = 49; this.lblLength.Text = "Seconds : "; this.lblLength.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // lblFrequency // this.lblFrequency.Location = new System.Drawing.Point(5, 175); this.lblFrequency.Name = "lblFrequency"; this.lblFrequency.Size = new System.Drawing.Size(152, 16); this.lblFrequency.TabIndex = 52; this.lblFrequency.Text = "Frequency : "; this.lblFrequency.TextAlign = System.Drawing.ContentAlignment.TopCenter; // // label4 // this.label4.Location = new System.Drawing.Point(184, 354); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(8, 16); this.label4.TabIndex = 56; this.label4.Text = "|"; this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblFrequencyHigh // this.lblFrequencyHigh.Location = new System.Drawing.Point(336, 354); this.lblFrequencyHigh.Name = "lblFrequencyHigh"; this.lblFrequencyHigh.Size = new System.Drawing.Size(32, 16); this.lblFrequencyHigh.TabIndex = 55; this.lblFrequencyHigh.Text = "High"; this.lblFrequencyHigh.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // lblFrequencyLow // this.lblFrequencyLow.Location = new System.Drawing.Point(5, 354); this.lblFrequencyLow.Name = "lblFrequencyLow"; this.lblFrequencyLow.Size = new System.Drawing.Size(32, 16); this.lblFrequencyLow.TabIndex = 54; this.lblFrequencyLow.Text = "Low"; this.lblFrequencyLow.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // trkFreq // this.trkFreq.Location = new System.Drawing.Point(0, 331); this.trkFreq.Maximum = 44000; this.trkFreq.Name = "trkFreq"; this.trkFreq.Size = new System.Drawing.Size(377, 45); this.trkFreq.TabIndex = 53; this.trkFreq.TickStyle = System.Windows.Forms.TickStyle.None; this.trkFreq.Value = 22000; this.trkFreq.ValueChanged += new System.EventHandler(this.trkFreq_ValueChanged); // // txtLocation // this.txtLocation.Location = new System.Drawing.Point(8, 31); this.txtLocation.Name = "txtLocation"; this.txtLocation.Size = new System.Drawing.Size(360, 20); this.txtLocation.TabIndex = 62; this.txtLocation.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.txtLocation_KeyPress); // // toolStrip // this.toolStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.playToolStripButton, this.toolStripSeparator1, this.stopToolStripButton, this.toolStripSeparator2, this.viewToolStripButton, this.toolStripSeparator3, this.pitchRollerToolStripButton, this.toolStripSeparator4, this.setKeyToolStripButton, this.toolStripSeparator5, this.setVideoToolStripButton }); this.toolStrip.Location = new System.Drawing.Point(0, 0); this.toolStrip.Name = "toolStrip"; this.toolStrip.Size = new System.Drawing.Size(375, 25); this.toolStrip.TabIndex = 63; this.toolStrip.TabStop = true; this.toolStrip.Text = "toolStrip1"; // // playToolStripButton // this.playToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.playToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("playToolStripButton.Image"))); this.playToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.playToolStripButton.Name = "playToolStripButton"; this.playToolStripButton.Size = new System.Drawing.Size(31, 22); this.playToolStripButton.Text = "Play"; this.playToolStripButton.Click += new System.EventHandler(this.playToolStripButton_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); // // stopToolStripButton // this.stopToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.stopToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("stopToolStripButton.Image"))); this.stopToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.stopToolStripButton.Name = "stopToolStripButton"; this.stopToolStripButton.Size = new System.Drawing.Size(33, 22); this.stopToolStripButton.Text = "Stop"; this.stopToolStripButton.Click += new System.EventHandler(this.stopToolStripButton_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); // // viewToolStripButton // this.viewToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.viewToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("viewToolStripButton.Image"))); this.viewToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.viewToolStripButton.Name = "viewToolStripButton"; this.viewToolStripButton.Size = new System.Drawing.Size(33, 22); this.viewToolStripButton.Text = "View"; this.viewToolStripButton.Click += new System.EventHandler(this.viewToolStripButton_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); // // pitchRollerToolStripButton // this.pitchRollerToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.pitchRollerToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("pitchRollerToolStripButton.Image"))); this.pitchRollerToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.pitchRollerToolStripButton.Name = "pitchRollerToolStripButton"; this.pitchRollerToolStripButton.Size = new System.Drawing.Size(64, 22); this.pitchRollerToolStripButton.Text = "Pitch Roller"; this.pitchRollerToolStripButton.Click += new System.EventHandler(this.pitchRollerToolStripButton_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); // // setKeyToolStripButton // this.setKeyToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.setKeyToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("setKeyToolStripButton.Image"))); this.setKeyToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.setKeyToolStripButton.Name = "setKeyToolStripButton"; this.setKeyToolStripButton.Size = new System.Drawing.Size(48, 22); this.setKeyToolStripButton.Text = "Set Key"; this.setKeyToolStripButton.Click += new System.EventHandler(this.setKeyToolStripButton_Click); // // toolStripSeparator5 // this.toolStripSeparator5.Name = "toolStripSeparator5"; this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25); // // setVideoToolStripButton // this.setVideoToolStripButton.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; this.setVideoToolStripButton.Image = ((System.Drawing.Image)(resources.GetObject("setVideoToolStripButton.Image"))); this.setVideoToolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta; this.setVideoToolStripButton.Name = "setVideoToolStripButton"; this.setVideoToolStripButton.Size = new System.Drawing.Size(56, 22); this.setVideoToolStripButton.Text = "Set Video"; // // frmProperties // this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); this.ClientSize = new System.Drawing.Size(375, 381); this.Controls.Add(this.toolStrip); this.Controls.Add(this.txtLocation); this.Controls.Add(this.label4); this.Controls.Add(this.lblFrequencyHigh); this.Controls.Add(this.lblFrequencyLow); this.Controls.Add(this.trkFreq); this.Controls.Add(this.lblFrequency); this.Controls.Add(this.lblLength); this.Controls.Add(this.lblBitDepth); this.Controls.Add(this.lblChannels); this.Controls.Add(this.chkReverse); this.Controls.Add(this.label3); this.Controls.Add(this.lblMax); this.Controls.Add(this.label2); this.Controls.Add(this.label1); this.Controls.Add(this.trkVolume); this.Controls.Add(this.lblCenter); this.Controls.Add(this.lblRight); this.Controls.Add(this.lblL); this.Controls.Add(this.trkPan); this.Controls.Add(this.chkLoop); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); this.KeyPreview = true; this.Name = "frmProperties"; this.Text = "Properties"; this.Load += new System.EventHandler(this.frmProperties_Load); this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.frmProperties_KeyDown); ((System.ComponentModel.ISupportInitialize)(this.trkPan)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trkVolume)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.trkFreq)).EndInit(); this.toolStrip.ResumeLayout(false); this.toolStrip.PerformLayout(); this.ResumeLayout(false); this.PerformLayout(); }