Inheritance: ScrollBar
Exemple #1
1
        public Game1(IntPtr drawSurface,
            System.Windows.Forms.Form parentForm,
            System.Windows.Forms.PictureBox surfacePictureBox)
        {
            graphics = new GraphicsDeviceManager(this);
            Content.RootDirectory = "Content";

            this.drawSurface = drawSurface;
            this.parentForm = parentForm;
            this.pictureBox = surfacePictureBox;

            graphics.PreparingDeviceSettings +=
                new EventHandler<PreparingDeviceSettingsEventArgs>(graphics_PreparingDeviceSettings);

            Mouse.WindowHandle = drawSurface;

            gameForm = System.Windows.Forms.Control.FromHandle(this.Window.Handle);
            gameForm.VisibleChanged += new EventHandler(gameForm_VisibleChanged);
            pictureBox.SizeChanged += new EventHandler(pictureBox_SizeChanged);

            vscroll = (VScrollBar) parentForm.Controls["vScrollBar1"];
            hscroll = (HScrollBar)parentForm.Controls["hScrollBar1"];
            tileSelector = (ComboBox) parentForm.Controls["comboBox1"];
            tileSelector.SelectedIndexChanged += new EventHandler(tileSelector_IndexChanged);
        }
        public MetroDataGridHelper(MetroScrollBar scrollbar, DataGridView grid, bool vertical = true)
        {
            _scrollbar = scrollbar;
            _scrollbar.UseBarColor = true;
            _grid = grid;
            _ishorizontal = !vertical;

            foreach (var item in _grid.Controls)
            {
                if (item.GetType() == typeof(VScrollBar))
                {
                    vScrollbar = (VScrollBar)item;
                }

                if (item.GetType() == typeof(HScrollBar))
                {
                    hScrollbar = (HScrollBar)item;
                }
            }

            _grid.RowsAdded += new DataGridViewRowsAddedEventHandler(_grid_RowsAdded);
            _grid.UserDeletedRow += new DataGridViewRowEventHandler(_grid_UserDeletedRow);
            _grid.Scroll += new ScrollEventHandler(_grid_Scroll);
            _grid.Resize += new EventHandler(_grid_Resize);
            _scrollbar.Scroll += _scrollbar_Scroll;
            _scrollbar.ScrollbarSize = 17;

            UpdateScrollbar();
        }
Exemple #3
0
        /// <summary>
        /// Creates an empty SpreadsheetPanel
        /// </summary>
        public SpreadsheetPanel()
        {
            InitializeComponent();

            // The DrawingPanel is quite large, since it has 26 columns and 99 rows.  The
            // SpreadsheetPanel itself will usually be smaller, which is why scroll bars
            // are necessary.
            drawingPanel = new DrawingPanel(this);
            drawingPanel.Location = new Point(0, 0);
            drawingPanel.AutoScroll = false;

            // A custom vertical scroll bar.  It is designed to scroll in multiples of rows.
            vScroll = new VScrollBar();
            vScroll.SmallChange = 1;
            vScroll.Maximum = ROW_COUNT;

            // A custom horizontal scroll bar.  It is designed to scroll in multiples of columns.
            hScroll = new HScrollBar();
            hScroll.SmallChange = 1;
            hScroll.Maximum = COL_COUNT;

            // Add the drawing panel and the scroll bars to the SpreadsheetPanel.
            Controls.Add(drawingPanel);
            Controls.Add(vScroll);
            Controls.Add(hScroll);

            // Arrange for the drawing panel to be notified when it needs to scroll itself.
            hScroll.Scroll += drawingPanel.HandleHScroll;
            vScroll.Scroll += drawingPanel.HandleVScroll;
        }
Exemple #4
0
      override public void ResizeToRectangle(HScrollBar hBar)
      {
         hBar.LargeChange = m_Bounds.Width;
         hBar.Maximum = 1024;

         SetDisplayWindow(hBar.Value, 1024);
      }
Exemple #5
0
        /// <summary>
        /// Initializes a new instance of the <see cref="PagePreview"/> class.
        /// </summary>
        public PagePreview()
        {
            _canvas = new PagePreviewCanvas(this);
            Controls.Add(_canvas);

            _hScrollBar = new HScrollBar();
            _hScrollBar.Visible = _showScrollbars;
            _hScrollBar.Scroll += OnScroll;
            _hScrollBar.ValueChanged += OnValueChanged;
            Controls.Add(_hScrollBar);

            _vScrollBar = new VScrollBar();
            _vScrollBar.Visible = _showScrollbars;
            _vScrollBar.Scroll += OnScroll;
            _vScrollBar.ValueChanged += OnValueChanged;
            Controls.Add(_vScrollBar);

            InitializeComponent();
            //OnLayout();

            _zoom = Zoom.FullPage;
            _printableArea = new RectangleF();
            //virtPageSize = new Size();
            //showNonPrintableArea = false;
            //virtualPrintableArea = new Rectangle();

            _printableArea.GetType();
            //showNonPrintableArea.GetType();
            //virtualPrintableArea.GetType();

            // Prevent bogus compiler warnings
            _posOffset = new Point();
            _virtualPage = new Rectangle();
        }
        public TrackEditor()
        {
            if (!DesignMode)
            {
                this.DoubleBuffered = true;
                this.PlaybackPosition = 0;

                this.InPlayback = false;
                IsMouseOver = false;
                ShowNotesGrid = false;
                GridScalar = 0.25;
                CurrentSelectionState = EditorSelectionState.Idle;

                Control.CheckForIllegalCrossThreadCalls = true;
                CopyChords = new CopyChordList(this);

                HScroll = new HScrollBar();
                HScroll.Dock = System.Windows.Forms.DockStyle.Bottom;
                HScroll.SmallChange = Utility.HScrollSmallChange;
                HScroll.LargeChange = Utility.HScrollLargeChange;

                this.Controls.Add(HScroll);

            }
        }
        public DataGridViewSummary()
        {
            InitializeComponent();

            refBox = new TextBox();
            panel = new Panel();
            spacePanel = new Panel();
            hScrollBar = new HScrollBar();

            summaryControl = new SummaryControlContainer(this);
            summaryControl.VisibilityChanged += new EventHandler(summaryControl_VisibilityChanged);

            Resize += new EventHandler(DataGridControlSum_Resize);
            RowHeadersWidthChanged += new EventHandler(DataGridControlSum_Resize);
            ColumnAdded += new DataGridViewColumnEventHandler(DataGridControlSum_ColumnAdded);
            ColumnRemoved += new DataGridViewColumnEventHandler(DataGridControlSum_ColumnRemoved);

            hScrollBar.Scroll += new ScrollEventHandler(hScrollBar_Scroll);
            hScrollBar.VisibleChanged += new EventHandler(hScrollBar_VisibleChanged);

            hScrollBar.Top += summaryControl.Bottom;
            hScrollBar.Minimum = 0;
            hScrollBar.Maximum = 0;
            hScrollBar.Value = 0;
        }
Exemple #8
0
        public Sygnal(HScrollBar scrollBar, TrackBar zoomTrackBar, PictureBox pictureBoxSygnal, int dlugoscKanalu)
        {
            this.scrollBar = scrollBar;
            this.zoomTrackBar = zoomTrackBar;
            this.pictureBoxSygnal = pictureBoxSygnal;
            this.dlugoscKanalu = dlugoscKanalu;
            graphicsSygnal = Graphics.FromHwnd(pictureBoxSygnal.Handle);

            UstawMaksZoom();
            UstawMaksINowaWartoscScroll();
            dlugoscSygnalu = ObliczDlugoscSygnalu();
            iloscPikseliNaProbke = ObliczIloscPikseliNaProbke();
        }
        public AutoCompleteTagger()
        {
            asKeyWords = new string[0];

              sbHorz = new HScrollBar();
              sbHorz.Scroll += sbHorz_Scroll;
              sbHorz.Height = 14;
              sbHorz.Hide();

              lbSuggest = new ListBox();
              lbSuggest.MouseUp += lbSuggest_MouseUp;
              lbSuggest.MouseMove += lbSuggest_MouseMove;
              lbSuggest.VisibleChanged += lbSuggest_VisibleChanged;
              lbSuggest.Hide();
        }
private void InitializeComponent()
{
			System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(RdlViewer));
			this._RunButton = new System.Windows.Forms.Button();
			this._hScroll = new System.Windows.Forms.HScrollBar();
			this._vScroll = new System.Windows.Forms.VScrollBar();
			this._DrawPanel = new fyiReporting.RdlViewer.PageDrawing();
			this.SuspendLayout();
			// 
			// _RunButton
			// 
			resources.ApplyResources(this._RunButton, "_RunButton");
			this._RunButton.Name = "_RunButton";
			this._RunButton.UseVisualStyleBackColor = true;
			this._RunButton.Click += new System.EventHandler(this.ParametersViewClick);
			// 
			// _hScroll
			// 
			resources.ApplyResources(this._hScroll, "_hScroll");
			this._hScroll.Name = "_hScroll";
			this._hScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.HorizontalScroll);
			// 
			// _vScroll
			// 
			resources.ApplyResources(this._vScroll, "_vScroll");
			this._vScroll.Name = "_vScroll";
			this._vScroll.Scroll += new System.Windows.Forms.ScrollEventHandler(this.VerticalScroll);
			// 
			// _DrawPanel
			// 
			resources.ApplyResources(this._DrawPanel, "_DrawPanel");
			this._DrawPanel.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
			this._DrawPanel.Name = "_DrawPanel";
			this._DrawPanel.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPanelPaint);
			this._DrawPanel.KeyDown += new System.Windows.Forms.KeyEventHandler(this.DrawPanelKeyDown);
			this._DrawPanel.Resize += new System.EventHandler(this.DrawPanelResize);
			// 
			// RdlViewer
			// 
			resources.ApplyResources(this, "$this");
			this.Controls.Add(this._vScroll);
			this.Controls.Add(this._hScroll);
			this.Controls.Add(this._RunButton);
			this.Controls.Add(this._DrawPanel);
			this.Name = "RdlViewer";
			this.ResumeLayout(false);

}
        public SimulationPanel(MainForm mainform)
        {
            DoubleBuffered = true;
            Draw = true;
            this.mainform = mainform;

            hscrollbar = new HScrollBar {Dock = DockStyle.Bottom, Enabled = false};
            hscrollbar.Scroll += hscroll;
            hscrollbar.Visible = true;

            vscrollbar = new VScrollBar {Dock = DockStyle.Right, Enabled = false};
            vscrollbar.Scroll += vscroll;
            vscrollbar.Visible = true;

            Controls.Add(hscrollbar);
            Controls.Add(vscrollbar);
        }
        /// <summary>
        /// Constructor</summary>
        /// <param name="transformAdapter">Transform adapter</param>
        /// <param name="canvasAdapter">Canvas adapter</param>
        public ScrollbarAdapter(ITransformAdapter transformAdapter, ICanvasAdapter canvasAdapter)
        {
            m_transformAdapter = transformAdapter;
            m_transformAdapter.TransformChanged += transformAdapter_TransformChanged;

            m_canvasAdapter = canvasAdapter;
            m_canvasAdapter.BoundsChanged += canvasAdapter_BoundsChanged;
            m_canvasAdapter.WindowBoundsChanged += canvasAdapter_WindowBoundsChanged;

            m_vScrollBar = new VScrollBar();
            m_vScrollBar.Dock = DockStyle.Right;
            m_vScrollBar.ValueChanged += vScrollBar_ValueChanged;

            m_hScrollBar = new HScrollBar();
            m_hScrollBar.Dock = DockStyle.Bottom;
            m_hScrollBar.ValueChanged += hScrollBar_ValueChanged;
        }
Exemple #13
0
        /**************************************************/
        /* constructors                                   */
        /**************************************************/
        public MapController()
        {
            c_hscroll = new HScrollBar();
            c_hscroll.ValueChanged += new EventHandler(c_hscroll_ValueChanged);

            c_vscroll = new VScrollBar();
            c_vscroll.ValueChanged += new EventHandler(c_vscroll_ValueChanged);

            c_viewer = new mapView();
            c_viewer.SetScrollBars(c_vscroll,c_hscroll);
            c_viewer.Size = Size;
            c_viewer.Location = new Point(0,0);

            Controls.Add(c_viewer);
            Controls.Add(c_hscroll);
            Controls.Add(c_vscroll);
        }
		/// <summary> 
		/// Required method for Designer support - do not modify 
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.hScrollBar = new System.Windows.Forms.HScrollBar();
			this.vScrollBar = new System.Windows.Forms.VScrollBar();
			this.NuGenTBase = new NuGenTBase();
			this.SuspendLayout();
			// 
			// hScrollBar
			// 
			this.hScrollBar.Dock = System.Windows.Forms.DockStyle.Bottom;
			this.hScrollBar.Location = new System.Drawing.Point(0, 159);
			this.hScrollBar.Name = "hScrollBar";
			this.hScrollBar.Size = new System.Drawing.Size(248, 17);
			this.hScrollBar.TabIndex = 0;
			this.hScrollBar.ValueChanged += new System.EventHandler(this.hScrollBar_ValueChanged);
			// 
			// vScrollBar
			// 
			this.vScrollBar.Dock = System.Windows.Forms.DockStyle.Right;
			this.vScrollBar.Location = new System.Drawing.Point(231, 0);
			this.vScrollBar.Name = "vScrollBar";
			this.vScrollBar.Size = new System.Drawing.Size(17, 159);
			this.vScrollBar.TabIndex = 1;
			this.vScrollBar.ValueChanged += new System.EventHandler(this.vScrollBar_ValueChanged);
			// 
			// NuGenTBase
			// 
			this.NuGenTBase.Dock = System.Windows.Forms.DockStyle.Fill;
			this.NuGenTBase.Location = new System.Drawing.Point(0, 0);
			this.NuGenTBase.Name = "NuGenTBase";
			this.NuGenTBase.Size = new System.Drawing.Size(231, 159);
			this.NuGenTBase.TabIndex = 2;
			this.NuGenTBase.KeyUp += new System.Windows.Forms.KeyEventHandler(this.NuGenTBase_KeyUp);
			this.NuGenTBase.KeyDown += new System.Windows.Forms.KeyEventHandler(this.NuGenTBase_KeyDown);
			this.NuGenTBase.MouseDown += new System.Windows.Forms.MouseEventHandler(this.NuGenTBase_MouseDown);
			// 
			// NuGenTViewCtrl
			// 
			this.Controls.Add(this.NuGenTBase);
			this.Controls.Add(this.vScrollBar);
			this.Controls.Add(this.hScrollBar);
			this.Name = "NuGenTViewCtrl";
			this.Size = new System.Drawing.Size(248, 176);
			this.ResumeLayout(false);

		}
 private void InitializeComponent()
 {
     scrVertical = new VScrollBar();
     scrHorizontal = new HScrollBar();
     lblCorner = new Label();
     SuspendLayout();
     //
     // scrVertical
     //
     scrVertical.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom)
                          | AnchorStyles.Right;
     scrVertical.Location = new Point(170, 0);
     scrVertical.Name = "scrVertical";
     scrVertical.Size = new Size(17, 411);
     scrVertical.TabIndex = 0;
     scrVertical.Scroll += scrVertical_Scroll;
     //
     // scrHorizontal
     //
     scrHorizontal.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left)
                            | AnchorStyles.Right;
     scrHorizontal.Location = new Point(0, 411);
     scrHorizontal.Name = "scrHorizontal";
     scrHorizontal.Size = new Size(169, 17);
     scrHorizontal.TabIndex = 1;
     scrHorizontal.Scroll += scrHorizontal_Scroll;
     //
     // lblCorner
     //
     lblCorner.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
     lblCorner.Location = new Point(169, 411);
     lblCorner.AutoSize = false;
     lblCorner.Text = null;
     lblCorner.Size = new Size(18, 17);
     lblCorner.BackColor = SystemColors.Control;
     //
     // ScrollingControl
     //
     Controls.Add(scrHorizontal);
     Controls.Add(scrVertical);
     Controls.Add(lblCorner);
     Name = "ScrollingControl";
     Size = new Size(187, 428);
     ResumeLayout(false);
 }
        public MyEditor(Form1 parentForm, bool isReadOnly)
        {
            this.parentForm = parentForm;
            this.IsReadonly = isReadOnly;
            caret = new Caret(this);
            InitializeComponent();

            BackColor = Color.White;

            horizontalScrollBar = new HScrollBar();
            horizontalScrollBar.Dock = DockStyle.Bottom;
            horizontalScrollBar.Value = 0;
            horizontalScrollBar.ValueChanged += scrollBar_ValueChanged;
            horizontalScrollBar.SmallChange = 10;
            horizontalScrollBar.LargeChange = 100;
            horizontalScrollBar.KeyPress += OnKeyPress;
            horizontalScrollBar.KeyDown += OnKeyDown;
            Controls.Add(horizontalScrollBar);
            verticalScrollBar = new VScrollBar();
            verticalScrollBar.Dock = DockStyle.Right;
            verticalScrollBar.Value = 0;
            verticalScrollBar.ValueChanged += scrollBar_ValueChanged;
            verticalScrollBar.SmallChange = 1;
            verticalScrollBar.LargeChange = 10;
            verticalScrollBar.KeyPress += OnKeyPress;
            verticalScrollBar.KeyDown += OnKeyDown;
            Controls.Add(verticalScrollBar);

            caretTimer = new Timer();
            caretTimer.Interval = 500;
            caretTimer.Enabled = true;
            caretTimer.Tick += caretTimer_Tick;

            DoubleBuffered = true;
            ime = new Ime(parentForm.Handle, fonts.Base);
            //SetStyle(ControlStyles.UserPaint /*|
            //         /*ControlStyles.AllPaintingInWmPaint*/, true);

            /*SetStyle(ControlStyles.SupportsTransparentBackColor |
                     ControlStyles.Opaque |
                     ControlStyles.UserPaint |
                     ControlStyles.AllPaintingInWmPaint |
                    ControlStyles.ResizeRedraw, true);*/
        }
 private void InitializeComponent()
 {
     this.components = new Container();
     this.scrollBar = new HScrollBar();
     this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true);
     this.UpdateStyles();
     this.ToolTip = new ToolTip(this.components);
     this.SuspendLayout();
     this.scrollBar.Dock = DockStyle.Bottom;
     this.scrollBar.TabIndex = 0;
     this.scrollBar.Scroll += OnScrollBarScroll;
     this.scrollBar.Minimum = 0;
     this.Controls.Add(this.scrollBar);
     this.MouseDown += OnChartMouseDown;
     this.MouseLeave += OnChartMouseLeave;
     this.MouseUp += OnChartMouseUp;
     this.MouseWheel += OnChartMouseWheel;
     this.ResumeLayout(false);
 }
Exemple #18
0
        /// <summary>
        /// Constructor with column headers</summary>
        /// <param name="columnHeaders">Column headers</param>
        public GridView(ColumnHeaders columnHeaders)
        {
            m_selectedRows = new Selection<int>();
            m_selectedRows.Changed += selectedRows_Changed;

            m_columnHeaders = columnHeaders;
            m_columnHeaders.GridView = this;
            m_columnHeaders.Height = HeaderHeight;
            m_columnHeaders.Dock = DockStyle.Top;

            m_vScrollBar = new VScrollBar();
            m_vScrollBar.Dock = DockStyle.Right;
            m_vScrollBar.ValueChanged += vScrollBar_ValueChanged;

            m_hScrollBar = new HScrollBar();
            m_hScrollBar.Dock = DockStyle.Bottom;
            m_hScrollBar.ValueChanged += hScrollBar_ValueChanged;

            Controls.Add(m_columnHeaders);
            Controls.Add(m_vScrollBar); // add vertical scrollbar here, so header can't overlap it
            Controls.Add(m_hScrollBar);

            SetPens();

            Color color1 = Color.LightSteelBlue;
            m_evenRowBrush = new SolidBrush(color1);
            Color color2 = ColorUtil.GetShade(color1, 1.2f);
            m_oddRowBrush = new SolidBrush(color2);

            base.DoubleBuffered = true;

            // enable dragging and dropping of column headers by default
            DragDropColumnsEnabed = true;

            // enable selection in the grid
            SelectionEnabed = true;

            // enable selection of more than one item in the grid
            MultiSelectionEnabled = true;

            // enable wrapping with the up and down arrow keys
            UpDownKeySelectionWrapEnabled = true;
        }
Exemple #19
0
        public Oscylogram(RysunekSygnalu rysunekSygnalu, PlikWave plikWave, PictureBox pictureBoxRysunek, PictureBox pbSkalaDefX, PictureBox pbSkalaDefY, 
            TrackBar zoomTrackBar, HScrollBar scrollBar)
        {
            this.rysunekSygnalu = rysunekSygnalu;
            this.pictureBoxRysunek = pictureBoxRysunek;
            this.zoomTrackBar = zoomTrackBar;
            this.scrollBar = scrollBar;
            czestotliwoscProbkowania = plikWave.CzestotliwoscProbkowania;

            zoomTrackBar.Value = 0;
            UstawZoom();

            scrollBar.Value = 0;
            UstawMaxScroll();

            pen = new Pen(new SolidBrush(Color.Black));

            skalaLiniowa = new SkalaOscylogram(this, plikWave, pictureBoxRysunek, pbSkalaDefX, pbSkalaDefY);
        }
Exemple #20
0
       public Grid() : base ()
       {
         //SetStyle(ControlStyles.OptimizedDoubleBuffer, true); //the CellView is already dbl buffered
         SetStyle(ControlStyles.UserPaint, true);
         SetStyle(ControlStyles.AllPaintingInWmPaint, true); //no ERASE BACKGROUND
         
         SetStyle(ControlStyles.UserMouse, true);

         base.DoubleBuffered = true;
         
         UpdateStyles();
         
         m_Style = new Style(this, null);
         m_HeaderStyle = new Style(this, null);
         m_SelectedStyle = new Style(this, null);
         
         BuildDefaultStyle(m_Style);
         BuildDefaultHeaderStyle(m_HeaderStyle);
         BuildDefaultSelectedStyle(m_SelectedStyle);
         
        
                  
         m_CellView = new CellView() {   Parent = this , TabStop = false};
         
         
         m_HScrollBar = new HScrollBar() {   Parent = this, TabStop = false, Minimum=0, SmallChange=1, LargeChange =1  };
         m_HScrollBar.ValueChanged += m_HScrollBar_Scroll;
                                        
         m_VScrollBar = new VScrollBar() {   Parent = this, TabStop = false, Minimum=0, SmallChange=1   };                                          
         m_VScrollBar.ValueChanged += m_VScrollBar_Scroll;   
         
         m_DataSourceChangedNotificationTimer = new Timer();
         m_DataSourceChangedNotificationTimer.Interval = REBUILD_TIMEOUT_MS;
         m_DataSourceChangedNotificationTimer.Enabled = false;
         m_DataSourceChangedNotificationTimer.Tick += new EventHandler((o, e) =>
                                                       {
                                                        if (m_RepositioningColumn!=null || m_ResizingColumn!=null ) return;//while grid is being manipulated dont flush timer just yet
                                                        m_DataSourceChangedNotificationTimer.Stop(); 
                                                        notifyDataSourceChanged(m_DataSourceChangedNotificationRow);
                                                        m_DataSourceChangedNotificationRow = null; 
                                                       });
       }
 public DiagramContainer()
 {
     zoomFactor = 100;
     structures = new List<ILinkable>();
     selectedItems = new List<StructureDrawing>();
     SetStyle(ControlStyles.AllPaintingInWmPaint | ControlStyles.ResizeRedraw |
     ControlStyles.DoubleBuffer | ControlStyles.UserPaint, true);
     hScrollBar = new HScrollBar();
     hScrollBar.Dock = DockStyle.Bottom;
     vScrollBar = new VScrollBar();
     vScrollBar.Dock = DockStyle.Right;
     vScrollBar.Scroll += new ScrollEventHandler(vScrollBar1_Scroll);
     hScrollBar.Scroll += new ScrollEventHandler(hScrollBar1_Scroll);
     this.Resize += new EventHandler(DiagramContainer_Resize);
     this.Controls.Add(hScrollBar);
     this.Controls.Add(vScrollBar);
     nodeEditor = new NodeTextEditor(this);
     containerDrawer = new ContainerDrawer(this);
     this.Invalidate();
 }
Exemple #22
0
        public ScopePanel()
            : base()
        {
            this.devicePanel = new Panel();
            this.splitterPanel = new Panel();
            this.scrollBar = new HScrollBar();
            this.toolTip = new ToolTip();

            this.Controls.Add(this.devicePanel);
            this.Controls.Add(this.scrollBar);
            this.Controls.Add(this.splitterPanel);

            this.devicePanel.Dock = DockStyle.Fill;
            this.devicePanel.BackColor = Color.Black;
            this.devicePanel.Location = new System.Drawing.Point(0, 0);
            this.devicePanel.MouseMove += new MouseEventHandler(this.DevicePanel_MouseMove);
            this.devicePanel.MouseClick += new MouseEventHandler(this.DevicePanel_MouseClick);
            this.devicePanel.MouseEnter += new EventHandler(this.ScopePanel_MouseEnter);

            this.splitterPanel.Dock = DockStyle.Bottom;
            this.splitterPanel.Size = new Size(this.Width, 3);

            this.scrollBar.Dock = DockStyle.Bottom;
            this.scrollBar.Minimum = 0;
            this.scrollBar.Value = 0;
            this.scrollBar.SmallChange = 0;
            this.scrollBar.LargeChange = 0;
            this.scrollBar.Maximum = 0;
            this.scrollBar.Size = new Size(this.Width, 17);
            this.scrollBar.Scroll += new ScrollEventHandler(this.ScrollBar_Scroll);
            this.scrollBar.ValueChanged += new EventHandler(this.ScrollBar_ValueChanged);

            try
            {
                this.CreateDevice();
            }
            catch (FileNotFoundException ex)
            {
                throw new ZeoException(ex, "Install DirectX Runtime from http://www.microsoft.com/download/en/details.aspx?id=35");
            }
        }
Exemple #23
0
 public ImageBox()
 {
     this._drawgingMode = this._drawArgs.DrawingMode;
     this._backColorBrush = new SolidBrush(this.BackColor);
     this._cropPen = new Pen(Color.WhiteSmoke);
     this._cropBrush = new SolidBrush(Color.WhiteSmoke);
     this._vScrollBar = new VScrollBar();
     this._vScrollBar.Visible = false;
     this._vScrollBar.Bounds = new Rectangle(base.Width - this._scrollBarWidth, 0, this._scrollBarWidth, (base.Height - this._scrollBarWidth) + 1);
     this._vScrollBar.Anchor = AnchorStyles.Right | AnchorStyles.Bottom | AnchorStyles.Top;
     this._vScrollBar.ValueChanged += new EventHandler(this._vScrollBar_ValueChanged);
     base.Controls.Add(this._vScrollBar);
     this._hScrollBar = new HScrollBar();
     this._hScrollBar.Visible = false;
     this._hScrollBar.Bounds = new Rectangle(0, base.Height - this._scrollBarWidth, base.Width, this._scrollBarWidth);
     this._hScrollBar.Anchor = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom;
     this._hScrollBar.ValueChanged += new EventHandler(this._hScrollBar_ValueChanged);
     base.Controls.Add(this._hScrollBar);
     this.UpdateScrollBars();
     this._drawArgs.BackgroundColor = this.BackColor;
 }
        /// <summary>
        /// Constructor</summary>
        public CanvasControl()
        {
            SuspendLayout();

            m_vScrollBar = new VScrollBar();
            m_vScrollBar.Dock = DockStyle.Right;
            m_vScrollBar.ValueChanged += vScrollBar_ValueChanged;

            m_hScrollBar = new HScrollBar();
            m_hScrollBar.Dock = DockStyle.Bottom;
            m_hScrollBar.ValueChanged += hScrollBar_ValueChanged;

            Controls.Add(m_vScrollBar);
            Controls.Add(m_hScrollBar);

            ResumeLayout();

            m_autoScrollTimer = new Timer();
            m_autoScrollTimer.Interval = 10;
            m_autoScrollTimer.Tick += autoScrollTimer_Tick;
        }
 public XmlGridView()
 {
     Font = new Font("Arial", 8);
     BackColor = SystemColors.Window;
     DefaultColumnWidth = 105;
     _columnsWidth = new int[0];
     _rowHeight = new int[0];
     SetStyle(ControlStyles.OptimizedDoubleBuffer | ControlStyles.UserPaint |
         ControlStyles.AllPaintingInWmPaint | ControlStyles.Selectable, true);
     _vScroll = new ImplicitVScrollBar();
     _vScroll.Dock = DockStyle.Right;
     _vScroll.ValueChanged += HandleScrollBar;
     _vScroll.Width = SystemInformation.VerticalScrollBarWidth;
     _vScroll.Visible = false;
     _hScroll = new ImplicitHScrollBar();
     _hScroll.Dock = DockStyle.Bottom;
     _hScroll.Height = SystemInformation.HorizontalScrollBarHeight;
     _hScroll.Visible = false;
     _hScroll.ValueChanged += HandleScrollBar;
     Controls.AddRange(new Control[] { _vScroll, _hScroll });
 }
Exemple #26
0
		private MapViewPanel()
		{
			ImageUpdate += new EventHandler(update);

			horiz = new HScrollBar();
			vert = new VScrollBar();

			horiz.Scroll += new System.Windows.Forms.ScrollEventHandler(this.horiz_Scroll);
			horiz.Dock = DockStyle.Bottom;

			vert.Scroll += new System.Windows.Forms.ScrollEventHandler(this.vert_Scroll);
			vert.Dock = DockStyle.Right;

			Controls.AddRange(new System.Windows.Forms.Control[] {
																	 this.vert,
																	 this.horiz});
			fillBlank();

			SetView(new View());

			allBlank = new GroupBox();
			allBlank.Text = "Blank info";

			blankCheck.Location = new Point(0, 0);
			blankGroup.Location = new Point(0, blankCheck.Bottom);
			blankGroup.Size = new Size(140, 65);
			saveBlank.Location = new Point(0, blankGroup.Bottom);
			runCalc.Location = new Point(0, saveBlank.Bottom);

			blankForm = new Form();
			blankForm.Text = "Blank Controls";
			blankForm.Size = new Size(150, 170);
			blankForm.MaximizeBox = false;
			blankForm.FormBorderStyle = FormBorderStyle.FixedSingle;
			blankForm.Controls.AddRange(new Control[] { blankCheck, blankGroup, saveBlank, runCalc });
			allBlank.Dock = DockStyle.Fill;

			blankCheck.Checked = false;
			OnResize(null);
		}
Exemple #27
0
		public PrintPreviewControl() {
			autozoom = true;
			columns = 1;
			rows = 0;
			startPage = 1;

			this.BackColor = SystemColors.AppWorkspace;

			controller = new PreviewPrintController ();

			vbar = new ImplicitVScrollBar ();
			hbar = new ImplicitHScrollBar ();

			vbar.Visible = false;
			hbar.Visible = false;
			vbar.ValueChanged += new EventHandler (VScrollBarValueChanged);
			hbar.ValueChanged += new EventHandler (HScrollBarValueChanged);

			SuspendLayout ();
			Controls.AddImplicit (vbar);
			Controls.AddImplicit (hbar);
			ResumeLayout ();
		}
Exemple #28
0
        public Spektrogram(PictureBox pbSpektrogram, PictureBox pbSkalaA, PictureBox pbSkalaB, HScrollBar scrollSpektrogram, Panel legendaSpektrogramu,
            CWT cwt, Oscylogram oscylogram, FrmMain mForm, PaletaKolorow paletaKolorow, bool logarytmicznaSkala)
        {
            this.pbSpektrogram = pbSpektrogram;
            this.scrollSpektrogram = scrollSpektrogram;
            this.cwt = cwt;
            this.paletaKolorow = paletaKolorow;
            this.logarytmicznaSkala = logarytmicznaSkala;
            this.oscylogram = oscylogram;
            this.mForm = mForm;

            if (cwt.Falka is FalkaCiagla)
            {
                startA = ((FalkaCiagla)cwt.Falka).StartA;
                stopA = ((FalkaCiagla)cwt.Falka).StopA;
                krokA = ((FalkaCiagla)cwt.Falka).KrokA;
                iloscA = cwt.IloscA;
            }

            skala = new SkalaSpektrogram(this, oscylogram, pbSpektrogram, pbSkalaB, pbSkalaA);
            legenda = new LegendaSpektrogramu(legendaSpektrogramu, this);
            legenda.Rysuj();
        }
 /// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(LightmapToolDlg));
       this.timer_LMUpdate = new System.Timers.Timer();
       this.tabControl_Effects = new System.Windows.Forms.TabControl();
       this.tabPage_BrightnessContrast = new System.Windows.Forms.TabPage();
       this.hScrollBar_ContrastRadiosity = new System.Windows.Forms.HScrollBar();
       this.hScrollBar_ContrastBase = new System.Windows.Forms.HScrollBar();
       this.hScrollBar_BrightnessRadiosity = new System.Windows.Forms.HScrollBar();
       this.hScrollBar_BrightnessBase = new System.Windows.Forms.HScrollBar();
       this.groupBox1 = new System.Windows.Forms.GroupBox();
       this.label_bright1 = new System.Windows.Forms.Label();
       this.numericUpDown_ContrastBase = new System.Windows.Forms.NumericUpDown();
       this.numericUpDown_BrightnessBase = new System.Windows.Forms.NumericUpDown();
       this.label_contrast1 = new System.Windows.Forms.Label();
       this.groupBox2 = new System.Windows.Forms.GroupBox();
       this.numericUpDown_ContrastRad = new System.Windows.Forms.NumericUpDown();
       this.numericUpDown_BrightnessRad = new System.Windows.Forms.NumericUpDown();
       this.label_contrast2 = new System.Windows.Forms.Label();
       this.label_bright2 = new System.Windows.Forms.Label();
       this.tabPage_Saturation = new System.Windows.Forms.TabPage();
       this.numericUpDown_SaturationRad = new System.Windows.Forms.NumericUpDown();
       this.hScrollBar_SaturationRadiosity = new System.Windows.Forms.HScrollBar();
       this.groupBox4 = new System.Windows.Forms.GroupBox();
       this.label_saturation2 = new System.Windows.Forms.Label();
       this.numericUpDown_SaturationBase = new System.Windows.Forms.NumericUpDown();
       this.hScrollBar_SaturationBase = new System.Windows.Forms.HScrollBar();
       this.groupBox3 = new System.Windows.Forms.GroupBox();
       this.label_saturation1 = new System.Windows.Forms.Label();
       this.ToolTip = new System.Windows.Forms.ToolTip(this.components);
       this.statusBar1 = new System.Windows.Forms.StatusBar();
       this.toolBar_main = new System.Windows.Forms.ToolBar();
       this.toolBarButton_Save = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton_Reset = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton_Undo = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton_Redo = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton_DirectLighting = new System.Windows.Forms.ToolBarButton();
       this.toolBarButton_Radiosity = new System.Windows.Forms.ToolBarButton();
       this.ImageList = new System.Windows.Forms.ImageList(this.components);
       this.comboBox_Target = new System.Windows.Forms.ComboBox();
       this.label_Target = new System.Windows.Forms.Label();
       ((System.ComponentModel.ISupportInitialize)(this.timer_LMUpdate)).BeginInit();
       this.tabControl_Effects.SuspendLayout();
       this.tabPage_BrightnessContrast.SuspendLayout();
       this.groupBox1.SuspendLayout();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ContrastBase)).BeginInit();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BrightnessBase)).BeginInit();
       this.groupBox2.SuspendLayout();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ContrastRad)).BeginInit();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BrightnessRad)).BeginInit();
       this.tabPage_Saturation.SuspendLayout();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SaturationRad)).BeginInit();
       this.groupBox4.SuspendLayout();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SaturationBase)).BeginInit();
       this.groupBox3.SuspendLayout();
       this.SuspendLayout();
       //
       // timer_LMUpdate
       //
       this.timer_LMUpdate.Enabled = true;
       this.timer_LMUpdate.Interval = 50;
       this.timer_LMUpdate.SynchronizingObject = this;
       this.timer_LMUpdate.Elapsed += new System.Timers.ElapsedEventHandler(this.timer_LMUpdate_Elapsed);
       //
       // tabControl_Effects
       //
       this.tabControl_Effects.Controls.Add(this.tabPage_BrightnessContrast);
       this.tabControl_Effects.Controls.Add(this.tabPage_Saturation);
       this.tabControl_Effects.Location = new System.Drawing.Point(8, 72);
       this.tabControl_Effects.Name = "tabControl_Effects";
       this.tabControl_Effects.SelectedIndex = 0;
       this.tabControl_Effects.Size = new System.Drawing.Size(480, 192);
       this.tabControl_Effects.TabIndex = 3;
       //
       // tabPage_BrightnessContrast
       //
       this.tabPage_BrightnessContrast.Controls.Add(this.hScrollBar_ContrastRadiosity);
       this.tabPage_BrightnessContrast.Controls.Add(this.hScrollBar_ContrastBase);
       this.tabPage_BrightnessContrast.Controls.Add(this.hScrollBar_BrightnessRadiosity);
       this.tabPage_BrightnessContrast.Controls.Add(this.hScrollBar_BrightnessBase);
       this.tabPage_BrightnessContrast.Controls.Add(this.groupBox1);
       this.tabPage_BrightnessContrast.Controls.Add(this.groupBox2);
       this.tabPage_BrightnessContrast.Location = new System.Drawing.Point(4, 22);
       this.tabPage_BrightnessContrast.Name = "tabPage_BrightnessContrast";
       this.tabPage_BrightnessContrast.Size = new System.Drawing.Size(472, 166);
       this.tabPage_BrightnessContrast.TabIndex = 0;
       this.tabPage_BrightnessContrast.Text = "Brightness and Contrast";
       //
       // hScrollBar_ContrastRadiosity
       //
       this.hScrollBar_ContrastRadiosity.LargeChange = 20;
       this.hScrollBar_ContrastRadiosity.Location = new System.Drawing.Point(40, 136);
       this.hScrollBar_ContrastRadiosity.Maximum = 400;
       this.hScrollBar_ContrastRadiosity.Name = "hScrollBar_ContrastRadiosity";
       this.hScrollBar_ContrastRadiosity.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_ContrastRadiosity.TabIndex = 5;
       this.ToolTip.SetToolTip(this.hScrollBar_ContrastRadiosity, "Contrast of radiosity contribution");
       this.hScrollBar_ContrastRadiosity.Value = 100;
       this.hScrollBar_ContrastRadiosity.ValueChanged += new System.EventHandler(this.hScrollBar_ContrastRadiosity_ValueChanged);
       this.hScrollBar_ContrastRadiosity.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_ContrastRadiosity_Scroll);
       //
       // hScrollBar_ContrastBase
       //
       this.hScrollBar_ContrastBase.LargeChange = 20;
       this.hScrollBar_ContrastBase.Location = new System.Drawing.Point(40, 56);
       this.hScrollBar_ContrastBase.Maximum = 400;
       this.hScrollBar_ContrastBase.Name = "hScrollBar_ContrastBase";
       this.hScrollBar_ContrastBase.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_ContrastBase.TabIndex = 2;
       this.ToolTip.SetToolTip(this.hScrollBar_ContrastBase, "Contrast of direct lighting");
       this.hScrollBar_ContrastBase.Value = 100;
       this.hScrollBar_ContrastBase.ValueChanged += new System.EventHandler(this.hScrollBar_ContrastBase_ValueChanged);
       this.hScrollBar_ContrastBase.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_ContrastBase_Scroll);
       //
       // hScrollBar_BrightnessRadiosity
       //
       this.hScrollBar_BrightnessRadiosity.Location = new System.Drawing.Point(40, 112);
       this.hScrollBar_BrightnessRadiosity.Minimum = -100;
       this.hScrollBar_BrightnessRadiosity.Name = "hScrollBar_BrightnessRadiosity";
       this.hScrollBar_BrightnessRadiosity.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_BrightnessRadiosity.TabIndex = 4;
       this.ToolTip.SetToolTip(this.hScrollBar_BrightnessRadiosity, "Brightness of radiosity contribution");
       this.hScrollBar_BrightnessRadiosity.ValueChanged += new System.EventHandler(this.hScrollBar_BrightnessRadiosity_ValueChanged);
       this.hScrollBar_BrightnessRadiosity.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_BrightnessRadiosity_Scroll);
       //
       // hScrollBar_BrightnessBase
       //
       this.hScrollBar_BrightnessBase.Location = new System.Drawing.Point(40, 32);
       this.hScrollBar_BrightnessBase.Minimum = -100;
       this.hScrollBar_BrightnessBase.Name = "hScrollBar_BrightnessBase";
       this.hScrollBar_BrightnessBase.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_BrightnessBase.TabIndex = 1;
       this.ToolTip.SetToolTip(this.hScrollBar_BrightnessBase, "Brightness of direct lighting");
       this.hScrollBar_BrightnessBase.ValueChanged += new System.EventHandler(this.hScrollBar_BrightnessBase_ValueChanged);
       this.hScrollBar_BrightnessBase.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_BrightnessBase_Scroll);
       //
       // groupBox1
       //
       this.groupBox1.Controls.Add(this.label_bright1);
       this.groupBox1.Controls.Add(this.numericUpDown_ContrastBase);
       this.groupBox1.Controls.Add(this.numericUpDown_BrightnessBase);
       this.groupBox1.Controls.Add(this.label_contrast1);
       this.groupBox1.Location = new System.Drawing.Point(8, 8);
       this.groupBox1.Name = "groupBox1";
       this.groupBox1.Size = new System.Drawing.Size(456, 72);
       this.groupBox1.TabIndex = 0;
       this.groupBox1.TabStop = false;
       this.groupBox1.Text = "Direct lighting";
       //
       // label_bright1
       //
       this.label_bright1.Image = ((System.Drawing.Image)(resources.GetObject("label_bright1.Image")));
       this.label_bright1.Location = new System.Drawing.Point(8, 24);
       this.label_bright1.Name = "label_bright1";
       this.label_bright1.Size = new System.Drawing.Size(16, 16);
       this.label_bright1.TabIndex = 0;
       this.ToolTip.SetToolTip(this.label_bright1, "Brightness");
       //
       // numericUpDown_ContrastBase
       //
       this.numericUpDown_ContrastBase.DecimalPlaces = 1;
       this.numericUpDown_ContrastBase.Location = new System.Drawing.Point(392, 48);
       this.numericUpDown_ContrastBase.Maximum = new decimal(new int[] {
     1000,
     0,
     0,
     0});
       this.numericUpDown_ContrastBase.Name = "numericUpDown_ContrastBase";
       this.numericUpDown_ContrastBase.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_ContrastBase.TabIndex = 3;
       this.numericUpDown_ContrastBase.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_ContrastBase, "Contrast of direct lighting");
       this.numericUpDown_ContrastBase.ValueChanged += new System.EventHandler(this.numericUpDown_ContrastBase_ValueChanged);
       //
       // numericUpDown_BrightnessBase
       //
       this.numericUpDown_BrightnessBase.DecimalPlaces = 1;
       this.numericUpDown_BrightnessBase.Location = new System.Drawing.Point(392, 24);
       this.numericUpDown_BrightnessBase.Minimum = new decimal(new int[] {
     100,
     0,
     0,
     -2147483648});
       this.numericUpDown_BrightnessBase.Name = "numericUpDown_BrightnessBase";
       this.numericUpDown_BrightnessBase.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_BrightnessBase.TabIndex = 1;
       this.numericUpDown_BrightnessBase.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_BrightnessBase, "Brightness of direct lighting");
       this.numericUpDown_BrightnessBase.ValueChanged += new System.EventHandler(this.numericUpDown_BrightnessBase_ValueChanged);
       //
       // label_contrast1
       //
       this.label_contrast1.Image = ((System.Drawing.Image)(resources.GetObject("label_contrast1.Image")));
       this.label_contrast1.Location = new System.Drawing.Point(8, 48);
       this.label_contrast1.Name = "label_contrast1";
       this.label_contrast1.Size = new System.Drawing.Size(16, 16);
       this.label_contrast1.TabIndex = 2;
       this.ToolTip.SetToolTip(this.label_contrast1, "Contrast");
       //
       // groupBox2
       //
       this.groupBox2.Controls.Add(this.numericUpDown_ContrastRad);
       this.groupBox2.Controls.Add(this.numericUpDown_BrightnessRad);
       this.groupBox2.Controls.Add(this.label_contrast2);
       this.groupBox2.Controls.Add(this.label_bright2);
       this.groupBox2.Location = new System.Drawing.Point(8, 88);
       this.groupBox2.Name = "groupBox2";
       this.groupBox2.Size = new System.Drawing.Size(456, 72);
       this.groupBox2.TabIndex = 3;
       this.groupBox2.TabStop = false;
       this.groupBox2.Text = "Radiosity contribution";
       //
       // numericUpDown_ContrastRad
       //
       this.numericUpDown_ContrastRad.DecimalPlaces = 1;
       this.numericUpDown_ContrastRad.Location = new System.Drawing.Point(392, 48);
       this.numericUpDown_ContrastRad.Maximum = new decimal(new int[] {
     1000,
     0,
     0,
     0});
       this.numericUpDown_ContrastRad.Name = "numericUpDown_ContrastRad";
       this.numericUpDown_ContrastRad.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_ContrastRad.TabIndex = 3;
       this.numericUpDown_ContrastRad.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_ContrastRad, "Contrast of radiosity contribution");
       this.numericUpDown_ContrastRad.ValueChanged += new System.EventHandler(this.numericUpDown_ContrastRad_ValueChanged);
       //
       // numericUpDown_BrightnessRad
       //
       this.numericUpDown_BrightnessRad.DecimalPlaces = 1;
       this.numericUpDown_BrightnessRad.Location = new System.Drawing.Point(392, 24);
       this.numericUpDown_BrightnessRad.Minimum = new decimal(new int[] {
     100,
     0,
     0,
     -2147483648});
       this.numericUpDown_BrightnessRad.Name = "numericUpDown_BrightnessRad";
       this.numericUpDown_BrightnessRad.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_BrightnessRad.TabIndex = 1;
       this.numericUpDown_BrightnessRad.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_BrightnessRad, "Brightness of radiosity contribution");
       this.numericUpDown_BrightnessRad.Value = new decimal(new int[] {
     1,
     0,
     0,
     0});
       this.numericUpDown_BrightnessRad.ValueChanged += new System.EventHandler(this.numericUpDown_BrightnessRad_ValueChanged);
       //
       // label_contrast2
       //
       this.label_contrast2.Image = ((System.Drawing.Image)(resources.GetObject("label_contrast2.Image")));
       this.label_contrast2.Location = new System.Drawing.Point(8, 48);
       this.label_contrast2.Name = "label_contrast2";
       this.label_contrast2.Size = new System.Drawing.Size(16, 16);
       this.label_contrast2.TabIndex = 2;
       this.ToolTip.SetToolTip(this.label_contrast2, "Contrast");
       //
       // label_bright2
       //
       this.label_bright2.Image = ((System.Drawing.Image)(resources.GetObject("label_bright2.Image")));
       this.label_bright2.Location = new System.Drawing.Point(8, 24);
       this.label_bright2.Name = "label_bright2";
       this.label_bright2.Size = new System.Drawing.Size(16, 16);
       this.label_bright2.TabIndex = 0;
       this.ToolTip.SetToolTip(this.label_bright2, "Brightness");
       //
       // tabPage_Saturation
       //
       this.tabPage_Saturation.Controls.Add(this.numericUpDown_SaturationRad);
       this.tabPage_Saturation.Controls.Add(this.hScrollBar_SaturationRadiosity);
       this.tabPage_Saturation.Controls.Add(this.groupBox4);
       this.tabPage_Saturation.Controls.Add(this.numericUpDown_SaturationBase);
       this.tabPage_Saturation.Controls.Add(this.hScrollBar_SaturationBase);
       this.tabPage_Saturation.Controls.Add(this.groupBox3);
       this.tabPage_Saturation.Location = new System.Drawing.Point(4, 22);
       this.tabPage_Saturation.Name = "tabPage_Saturation";
       this.tabPage_Saturation.Size = new System.Drawing.Size(472, 166);
       this.tabPage_Saturation.TabIndex = 1;
       this.tabPage_Saturation.Text = "Saturation";
       //
       // numericUpDown_SaturationRad
       //
       this.numericUpDown_SaturationRad.DecimalPlaces = 1;
       this.numericUpDown_SaturationRad.Location = new System.Drawing.Point(400, 120);
       this.numericUpDown_SaturationRad.Maximum = new decimal(new int[] {
     200,
     0,
     0,
     0});
       this.numericUpDown_SaturationRad.Name = "numericUpDown_SaturationRad";
       this.numericUpDown_SaturationRad.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_SaturationRad.TabIndex = 5;
       this.numericUpDown_SaturationRad.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_SaturationRad, "Color saturation of radiosity contribution");
       this.numericUpDown_SaturationRad.Value = new decimal(new int[] {
     100,
     0,
     0,
     0});
       this.numericUpDown_SaturationRad.ValueChanged += new System.EventHandler(this.numericUpDown_SaturationRad_ValueChanged);
       //
       // hScrollBar_SaturationRadiosity
       //
       this.hScrollBar_SaturationRadiosity.Location = new System.Drawing.Point(40, 120);
       this.hScrollBar_SaturationRadiosity.Maximum = 200;
       this.hScrollBar_SaturationRadiosity.Name = "hScrollBar_SaturationRadiosity";
       this.hScrollBar_SaturationRadiosity.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_SaturationRadiosity.TabIndex = 4;
       this.ToolTip.SetToolTip(this.hScrollBar_SaturationRadiosity, "Color saturation of radiosity contribution");
       this.hScrollBar_SaturationRadiosity.Value = 100;
       this.hScrollBar_SaturationRadiosity.ValueChanged += new System.EventHandler(this.hScrollBar_SaturationRadiosity_ValueChanged);
       this.hScrollBar_SaturationRadiosity.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_SaturationRadiosity_Scroll);
       //
       // groupBox4
       //
       this.groupBox4.Controls.Add(this.label_saturation2);
       this.groupBox4.Location = new System.Drawing.Point(8, 88);
       this.groupBox4.Name = "groupBox4";
       this.groupBox4.Size = new System.Drawing.Size(456, 72);
       this.groupBox4.TabIndex = 3;
       this.groupBox4.TabStop = false;
       this.groupBox4.Text = "Radiosity contribution";
       //
       // label_saturation2
       //
       this.label_saturation2.Image = ((System.Drawing.Image)(resources.GetObject("label_saturation2.Image")));
       this.label_saturation2.Location = new System.Drawing.Point(8, 32);
       this.label_saturation2.Name = "label_saturation2";
       this.label_saturation2.Size = new System.Drawing.Size(16, 16);
       this.label_saturation2.TabIndex = 0;
       this.ToolTip.SetToolTip(this.label_saturation2, "Saturation");
       //
       // numericUpDown_SaturationBase
       //
       this.numericUpDown_SaturationBase.DecimalPlaces = 1;
       this.numericUpDown_SaturationBase.Location = new System.Drawing.Point(400, 40);
       this.numericUpDown_SaturationBase.Maximum = new decimal(new int[] {
     200,
     0,
     0,
     0});
       this.numericUpDown_SaturationBase.Name = "numericUpDown_SaturationBase";
       this.numericUpDown_SaturationBase.Size = new System.Drawing.Size(56, 20);
       this.numericUpDown_SaturationBase.TabIndex = 2;
       this.numericUpDown_SaturationBase.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
       this.ToolTip.SetToolTip(this.numericUpDown_SaturationBase, "Color saturation of direct lighting");
       this.numericUpDown_SaturationBase.Value = new decimal(new int[] {
     100,
     0,
     0,
     0});
       this.numericUpDown_SaturationBase.ValueChanged += new System.EventHandler(this.numericUpDown_SaturationBase_ValueChanged);
       //
       // hScrollBar_SaturationBase
       //
       this.hScrollBar_SaturationBase.Location = new System.Drawing.Point(40, 40);
       this.hScrollBar_SaturationBase.Maximum = 200;
       this.hScrollBar_SaturationBase.Name = "hScrollBar_SaturationBase";
       this.hScrollBar_SaturationBase.Size = new System.Drawing.Size(347, 16);
       this.hScrollBar_SaturationBase.TabIndex = 1;
       this.ToolTip.SetToolTip(this.hScrollBar_SaturationBase, "Color saturation of direct lighting");
       this.hScrollBar_SaturationBase.Value = 100;
       this.hScrollBar_SaturationBase.ValueChanged += new System.EventHandler(this.hScrollBar_SaturationBase_ValueChanged);
       this.hScrollBar_SaturationBase.Scroll += new System.Windows.Forms.ScrollEventHandler(this.hScrollBar_SaturationBase_Scroll);
       //
       // groupBox3
       //
       this.groupBox3.Controls.Add(this.label_saturation1);
       this.groupBox3.Location = new System.Drawing.Point(8, 8);
       this.groupBox3.Name = "groupBox3";
       this.groupBox3.Size = new System.Drawing.Size(456, 72);
       this.groupBox3.TabIndex = 0;
       this.groupBox3.TabStop = false;
       this.groupBox3.Text = "Direct lighting";
       //
       // label_saturation1
       //
       this.label_saturation1.Image = ((System.Drawing.Image)(resources.GetObject("label_saturation1.Image")));
       this.label_saturation1.Location = new System.Drawing.Point(8, 32);
       this.label_saturation1.Name = "label_saturation1";
       this.label_saturation1.Size = new System.Drawing.Size(16, 16);
       this.label_saturation1.TabIndex = 0;
       this.ToolTip.SetToolTip(this.label_saturation1, "Saturation");
       //
       // statusBar1
       //
       this.statusBar1.Location = new System.Drawing.Point(0, 269);
       this.statusBar1.Name = "statusBar1";
       this.statusBar1.Size = new System.Drawing.Size(498, 22);
       this.statusBar1.SizingGrip = false;
       this.statusBar1.TabIndex = 4;
       this.statusBar1.Text = "statusBar1";
       //
       // toolBar_main
       //
       this.toolBar_main.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
     this.toolBarButton_Save,
     this.toolBarButton_Reset,
     this.toolBarButton1,
     this.toolBarButton_Undo,
     this.toolBarButton_Redo,
     this.toolBarButton2,
     this.toolBarButton_DirectLighting,
     this.toolBarButton_Radiosity});
       this.toolBar_main.ButtonSize = new System.Drawing.Size(24, 24);
       this.toolBar_main.DropDownArrows = true;
       this.toolBar_main.ImageList = this.ImageList;
       this.toolBar_main.Location = new System.Drawing.Point(0, 0);
       this.toolBar_main.Name = "toolBar_main";
       this.toolBar_main.ShowToolTips = true;
       this.toolBar_main.Size = new System.Drawing.Size(498, 36);
       this.toolBar_main.TabIndex = 0;
       this.toolBar_main.ButtonClick += new System.Windows.Forms.ToolBarButtonClickEventHandler(this.toolBar_main_ButtonClick);
       //
       // toolBarButton_Save
       //
       this.toolBarButton_Save.ImageIndex = 0;
       this.toolBarButton_Save.Name = "toolBarButton_Save";
       this.toolBarButton_Save.ToolTipText = "Saves the lightmaps to uncompressed dds files";
       //
       // toolBarButton_Reset
       //
       this.toolBarButton_Reset.ImageIndex = 1;
       this.toolBarButton_Reset.Name = "toolBarButton_Reset";
       this.toolBarButton_Reset.ToolTipText = "Resets the current parameter";
       //
       // toolBarButton1
       //
       this.toolBarButton1.Name = "toolBarButton1";
       this.toolBarButton1.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
       //
       // toolBarButton_Undo
       //
       this.toolBarButton_Undo.ImageIndex = 2;
       this.toolBarButton_Undo.Name = "toolBarButton_Undo";
       this.toolBarButton_Undo.ToolTipText = "Undos the last operation";
       //
       // toolBarButton_Redo
       //
       this.toolBarButton_Redo.ImageIndex = 3;
       this.toolBarButton_Redo.Name = "toolBarButton_Redo";
       this.toolBarButton_Redo.ToolTipText = "Redos the last operation";
       //
       // toolBarButton2
       //
       this.toolBarButton2.Name = "toolBarButton2";
       this.toolBarButton2.Style = System.Windows.Forms.ToolBarButtonStyle.Separator;
       //
       // toolBarButton_DirectLighting
       //
       this.toolBarButton_DirectLighting.ImageIndex = 4;
       this.toolBarButton_DirectLighting.Name = "toolBarButton_DirectLighting";
       this.toolBarButton_DirectLighting.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
       this.toolBarButton_DirectLighting.ToolTipText = "Toggles direct lighting contribution";
       //
       // toolBarButton_Radiosity
       //
       this.toolBarButton_Radiosity.ImageIndex = 5;
       this.toolBarButton_Radiosity.Name = "toolBarButton_Radiosity";
       this.toolBarButton_Radiosity.Style = System.Windows.Forms.ToolBarButtonStyle.ToggleButton;
       this.toolBarButton_Radiosity.ToolTipText = "Toggles radiosity contribution";
       //
       // ImageList
       //
       this.ImageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ImageList.ImageStream")));
       this.ImageList.TransparentColor = System.Drawing.Color.Magenta;
       this.ImageList.Images.SetKeyName(0, "");
       this.ImageList.Images.SetKeyName(1, "");
       this.ImageList.Images.SetKeyName(2, "");
       this.ImageList.Images.SetKeyName(3, "");
       this.ImageList.Images.SetKeyName(4, "");
       this.ImageList.Images.SetKeyName(5, "");
       //
       // comboBox_Target
       //
       this.comboBox_Target.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
       this.comboBox_Target.Items.AddRange(new object[] {
     "Lightmaps",
     "Light Grid"});
       this.comboBox_Target.Location = new System.Drawing.Point(80, 40);
       this.comboBox_Target.Name = "comboBox_Target";
       this.comboBox_Target.Size = new System.Drawing.Size(104, 21);
       this.comboBox_Target.TabIndex = 2;
       this.comboBox_Target.SelectedIndexChanged += new System.EventHandler(this.comboBox_Target_SelectedIndexChanged);
       //
       // label_Target
       //
       this.label_Target.Location = new System.Drawing.Point(8, 40);
       this.label_Target.Name = "label_Target";
       this.label_Target.Size = new System.Drawing.Size(64, 16);
       this.label_Target.TabIndex = 1;
       this.label_Target.Text = "Target :";
       this.label_Target.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
       //
       // LightmapToolDlg
       //
       this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
       this.ClientSize = new System.Drawing.Size(498, 291);
       this.Controls.Add(this.label_Target);
       this.Controls.Add(this.comboBox_Target);
       this.Controls.Add(this.toolBar_main);
       this.Controls.Add(this.statusBar1);
       this.Controls.Add(this.tabControl_Effects);
       this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow;
       this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
       this.Name = "LightmapToolDlg";
       this.Text = "Lightmap Tool";
       this.Closing += new System.ComponentModel.CancelEventHandler(this.LightmapToolDlg_Closing);
       ((System.ComponentModel.ISupportInitialize)(this.timer_LMUpdate)).EndInit();
       this.tabControl_Effects.ResumeLayout(false);
       this.tabPage_BrightnessContrast.ResumeLayout(false);
       this.groupBox1.ResumeLayout(false);
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ContrastBase)).EndInit();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BrightnessBase)).EndInit();
       this.groupBox2.ResumeLayout(false);
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_ContrastRad)).EndInit();
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_BrightnessRad)).EndInit();
       this.tabPage_Saturation.ResumeLayout(false);
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SaturationRad)).EndInit();
       this.groupBox4.ResumeLayout(false);
       ((System.ComponentModel.ISupportInitialize)(this.numericUpDown_SaturationBase)).EndInit();
       this.groupBox3.ResumeLayout(false);
       this.ResumeLayout(false);
       this.PerformLayout();
 }
		protected override void Dispose(bool disposing)
		{
			if (disposing) {
				if (!disposed) {
					disposed = true;
					Document.TextContentChanged -= DocumentTextContentChanged;
					Document.DocumentChanged -= AdjustScrollBarsOnDocumentChange;
					Document.UpdateCommited  -= DocumentUpdateCommitted;
					motherTextEditorControl = null;
					if (vScrollBar != null) {
						vScrollBar.Dispose();
						vScrollBar = null;
					}
					if (hScrollBar != null) {
						hScrollBar.Dispose();
						hScrollBar = null;
					}
					if (hRuler != null) {
						hRuler.Dispose();
						hRuler = null;
					}
				}
			}
			base.Dispose(disposing);
		}