Inheritance: ScrollBar
Exemplo n.º 1
1
        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();
        }
Exemplo n.º 2
1
		protected CustomList(string name)
		{
			this.name=name;
			SetStyle(ControlStyles.AllPaintingInWmPaint|ControlStyles.DoubleBuffer|ControlStyles.UserPaint,true);

			collection = new ArrayList();

			vert = new VScrollBar();
			vert.Height=Height;
			vert.Location=new Point(Width-vert.Width,0);
			vert.Minimum=0;
			vert.Maximum=1;
			vert.Scroll+=new ScrollEventHandler(scroll);
			Controls.Add(vert);

			strList = new string[]{"Edit","Delete"};

			border = Border3DStyle.Etched;
			bStyle=BorderStyle.None;

			properties = new StrPropertyList();

			StrProperty.Update+=new NoArgsDelegate(Refresh);
//			allowedChars = new Hashtable();
//			allowedChars[Keys.Space]=' ';
		}
Exemplo n.º 3
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);
        }
Exemplo n.º 4
0
        public SectionView(Board board, SpiderView spiderView)
        {
            InitializeComponent();
            this.Board = board;
            this.Controls.Add(board);
            board.AutoResize();
            this.AutoScroll = true;
            board.AutoResize();
            this.SpiderView = spiderView;
            if (overflow == null)
            {
                overflow     = new Overflow(ListView);
                overflow.Top = -1424;

                this.Controls.Add(overflow);
            }
            this.Scroll += SectionView_Scroll;
            System.Windows.Forms.ScrollBar scrollBar = new System.Windows.Forms.VScrollBar();

            /*   scrollBar.Dock = DockStyle.Right;
             * scrollBar.Scroll += scrollBar_Scroll;
             * scrollBar.Maximum = this.Board.Height;
             * this.Controls.Add(scrollBar);
             * scrollBar.BringToFront();*/
        }
Exemplo n.º 5
0
    public TreeViewEx()
    {
        this.nodes = new TreeNodeCollectionEx(this);

        // initialise scroll bar
        this.vScrollBar = new WinForms.VScrollBar();

        this.vScrollBar.Minimum = this.vScrollBar.Maximum = 0;
        this.vScrollBar.Dock    = WinForms.DockStyle.Right;
        this.vScrollBar.Visible = false;

        this.vScrollBar.Scroll += new WinForms.ScrollEventHandler(OnVerticalScroll);

        this.Controls.Add(vScrollBar);

        // initialise tool tip
        this.toolTip        = new WinForms.ToolTip();
        this.toolTip.Active = true;

        this.AllowDrop = this.AllowMovementOfNodes;

        this.SetStyle(WinForms.ControlStyles.DoubleBuffer | WinForms.ControlStyles.UserPaint |
                      WinForms.ControlStyles.AllPaintingInWmPaint, true);

        this.BackColor = Drawing.Color.White;
    }
Exemplo n.º 6
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;
        }
Exemplo n.º 7
0
        protected myContactList()
        {
            SetStyle(ControlStyles.UserPaint, true); // Рисуем всё сами
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            this.Visible = true;
            vscroll = new VScrollBar();
            vscroll.Dock = DockStyle.Right;
            vscroll.Visible = false;
            this.Controls.Add(vscroll);

            vscroll.SmallChange = 1; // На какое количество контактов смещаться (стрелочка)
            vscroll.LargeChange = 60; // На какое кол-во контактов смещаться (поле)
            //vscroll.Maximum = Items.Count * HEIGHT_ITEM - this.Height + vscroll.LargeChange;
            vscroll.ValueChanged += new EventHandler(vscroll_ValueChanged);

            //ToolStripItem item = new ToolStripItem();
            context.ItemClicked += new ToolStripItemClickedEventHandler(context_ItemClicked);
            context.VisibleChanged += new EventHandler(context_VisibleChanged);

            tip.AutoPopDelay = 15000; // Сколько будет видна доп.информация
            tip.InitialDelay = 0;
            tip.OwnerDraw = true; // Рисуем сами
            tip.Draw += new DrawToolTipEventHandler(tip_Draw);

            timer.Tick += new EventHandler(timer_Tick_About);
        }
Exemplo n.º 8
0
        public Form1()
        {
            var back = BackColor;
            BackColor = Color.Black;
            button1 = new Button { Text = "×", TabIndex = 8, BackColor = back };
            button2 = new Button { Text = "|", TabIndex = 9, BackColor = back };
            button3 = new Button { Text = "O", TabIndex = 0, BackColor = back };
            vscrollBar1 = new VScrollBar { Maximum = 0, LargeChange = 10, BackColor = back };
            ofd.Filter = "無圧縮 ZIP ファイル (*.zip)|*.zip|すべてのファイル (*.*)|*.*";

            Text = "JPEG Viewer";
            if (Utils.IsWinCE)
            {
                TopMost = true;
                FormBorderStyle = FormBorderStyle.None;
                Bounds = Screen.PrimaryScreen.Bounds;
            }
            else
            {
                ClientSize = new Size(800, 480);
            }

            button1.Click += (sender, e) => Close();
            button2.Click += (sender, e) => this.Minimize();
            button3.Click += button3_Click;
            vscrollBar1.ValueChanged += (sender, e) =>
                setImage((vscrollBar1.Maximum - 9) - vscrollBar1.Value);

            Controls.Add(button1);
            Controls.Add(button2);
            Controls.Add(button3);
            Controls.Add(vscrollBar1);

            timer.Tick += timer_Tick;
        }
Exemplo n.º 9
0
 protected override void Dispose(bool disposing)
 {
     if (disposing && !this.disposed)
     {
         this.disposed = true;
         this.Document.TextContentChanged -= new EventHandler(this.DocumentTextContentChanged);
         this.Document.DocumentChanged    -= new DocumentEventHandler(this.AdjustScrollBarsOnDocumentChange);
         this.Document.UpdateCommited     -= new EventHandler(this.DocumentUpdateCommitted);
         this.motherTextEditorControl      = null;
         if (this.vScrollBar != null)
         {
             this.vScrollBar.Dispose();
             this.vScrollBar = null;
         }
         if (this.hScrollBar != null)
         {
             this.hScrollBar.Dispose();
             this.hScrollBar = null;
         }
         if (this.hRuler != null)
         {
             this.hRuler.Dispose();
             this.hRuler = null;
         }
     }
     base.Dispose(disposing);
 }
Exemplo n.º 10
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 ScrollableListView(
            int countToShow
            )
        {
            // This call is required by the Windows.Forms Form Designer.
            InitializeComponent();
            Scrollable = true;
            _countToShow = countToShow;
            // Create and initialize a VScrollBar.
            vScrollBar1 = new VScrollBar();
            vScrollBar1.Size = new Size(15, Height);
            // Dock the scroll bar to the right side of the form.
            vScrollBar1.Dock = DockStyle.Right;

            vScrollBar1.Scroll += vScrollBar1_Scroll;

            // Add the scroll bar to the form.
            Controls.Add(vScrollBar1);
            setvScrollBar1MaxValueDelegate =
                SetScrollBarMaxValue;
            //                Delegate.CreateDelegate
            //                (
            //                typeof(SetIntAccessorDelegate),
            //                vScrollBar1,
            //                "set_Maximum"
            //                ) as SetIntAccessorDelegate;
            Resize += ScrollableListView_Resize;
        }
Exemplo n.º 12
0
        public LogControl()
        {
            this.InitializeComponent();

            this.SetStyle( ControlStyles.UserPaint, true );
            this.SetStyle( ControlStyles.AllPaintingInWmPaint, true );
            this.SetStyle( ControlStyles.ResizeRedraw, true );
            this.SetStyle( ControlStyles.Opaque, true );
            this.SetStyle( ControlStyles.OptimizedDoubleBuffer, true );

            _verticalScrollBar = new VScrollBar();
            _verticalScrollBar.Scroll += new ScrollEventHandler( _verticalScrollBar_Scroll );
            _verticalScrollBar.Dock = DockStyle.Right;
            _verticalScrollBar.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
            _verticalScrollBar.Left = this.ClientSize.Width - 2 - _verticalScrollBar.Width;
            _verticalScrollBar.Top = 2;
            _verticalScrollBar.Height = this.ClientSize.Height - 4;
            this.Controls.Add( _verticalScrollBar );

            this.SetupGraphics();
            this.CalculateSize( true );

            this.copyAllToolStripMenuItem.Click += new EventHandler( copyAllToolStripMenuItem_Click );
            this.clearToolStripMenuItem.Click += new EventHandler( clearToolStripMenuItem_Click );
            this.ContextMenuStrip = contextMenuStrip;

            // Build feature list
            List<string> featureNames = new List<string>();
            foreach( string feature in Enum.GetNames( typeof( Feature ) ) )
                featureNames.Add( new string( ' ', 10 - feature.Length ) + feature );
            _featureNames = featureNames.ToArray();
        }
Exemplo n.º 13
0
        public ImageViewer()
        {
            InitializeComponent();

            _ClientWidth = ClientSize.Width;
            _ClientHeight = ClientSize.Height;

            _VScrollBar = new VScrollBar();
            _VScrollBar.Maximum = 0;
            _VScrollBar.Minimum = 0;
            _VScrollBar.Size = new Size(15, _ClientHeight);
            _VScrollBar.Value = 0;
            _VScrollBar.Scroll += OnVerticalScrollBarPositionChanged;
            _VScrollBar.Location = new Point(_ClientWidth - 15, 0);
            Controls.Add(_VScrollBar);

            _BufferImage = new Bitmap(_ClientWidth - 15, _ClientHeight, PixelFormat.Format24bppRgb);
            _BufferImageWidth = _BufferImage.Width;
            _BufferImageHeight = _BufferImage.Height;

            using(Graphics g = Graphics.FromImage(_BufferImage))
            {
                g.Clear(Color.White);
            }
        }
Exemplo n.º 14
0
        public Disassembly(USBGecko UGecko, String UVdappPath, ListBox UMainBox,
            VScrollBar UScroll,TextBox UAInput,TextBox UASAddress,TextBox UASText,ExceptionHandler UEXCHandler)
        {
            gecko = UGecko;
            exceptionHandling = UEXCHandler;
            vdappPath = UVdappPath;
            if (!GlobalFunctions.tryToHex(GeckoApp.Properties.Settings.Default.MemViewAddr, out cAddress))
            {
                // If the restored value is corrupt, use this instead
                cAddress = 0x80003100;
            }
            scrollbar = UScroll;
            mainBox = UMainBox;
            adressInput = UAInput;
            asAddress = UASAddress;
            asText = UASText;

            mainBox.SelectedIndexChanged += MainBoxClick;
            mainBox.DoubleClick += MainBoxDoubleClick;
            mainBox.KeyDown += MainBoxKeyDown;
            scrollbar.Scroll += Scrolling;
            
#if MONO
			GAs = "powerpc-eabi-as";
			GLd = "powerpc-eabi-ld";
			GOc = "powerpc-eabi-objcopy";
#else
            GAs = "powerpc-gekko-as.exe";
            GLd = "powerpc-gekko-ld.exe";
            GOc = "powerpc-gekko-objcopy.exe";
#endif
        }
Exemplo n.º 15
0
    public TreeViewEx()
    {
        this.nodes = new TreeNodeCollectionEx(this);

        // initialise scroll bar
        this.vScrollBar = new WinForms.VScrollBar();

        this.vScrollBar.Minimum = this.vScrollBar.Maximum = 0;
        this.vScrollBar.Dock = WinForms.DockStyle.Right;
        this.vScrollBar.Visible = false;

        this.vScrollBar.Scroll += new WinForms.ScrollEventHandler(OnVerticalScroll);

        this.Controls.Add( vScrollBar );

        // initialise tool tip
        this.toolTip = new WinForms.ToolTip();
        this.toolTip.Active = true;

        this.AllowDrop = this.AllowMovementOfNodes;

        this.SetStyle(WinForms.ControlStyles.DoubleBuffer | WinForms.ControlStyles.UserPaint |
        WinForms.ControlStyles.AllPaintingInWmPaint, true);

        this.BackColor = Drawing.Color.White;
    }
Exemplo n.º 16
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.largePic = new System.Windows.Forms.PictureBox();
     this.smallPic = new System.Windows.Forms.PictureBox();
     this.vBar     = new System.Windows.Forms.VScrollBar();
     this.hBar     = new System.Windows.Forms.HScrollBar();
     this.SuspendLayout();
     //
     // largePic
     //
     this.largePic.Location = new System.Drawing.Point(240, 24);
     this.largePic.Name     = "largePic";
     this.largePic.Size     = new System.Drawing.Size(888, 624);
     this.largePic.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
     this.largePic.TabIndex = 0;
     this.largePic.TabStop  = false;
     //
     // smallPic
     //
     this.smallPic.Location = new System.Drawing.Point(24, 24);
     this.smallPic.Name     = "smallPic";
     this.smallPic.Size     = new System.Drawing.Size(216, 160);
     this.smallPic.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.smallPic.TabIndex = 1;
     this.smallPic.TabStop  = false;
     this.smallPic.Paint   += new System.Windows.Forms.PaintEventHandler(this.smallPic_Paint);
     //
     // vBar
     //
     this.vBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.vBar.Location = new System.Drawing.Point(1128, 0);
     this.vBar.Name     = "vBar";
     this.vBar.Size     = new System.Drawing.Size(24, 656);
     this.vBar.TabIndex = 4;
     this.vBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.vBar_Scroll);
     //
     // hBar
     //
     this.hBar.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                              | System.Windows.Forms.AnchorStyles.Right)));
     this.hBar.Location = new System.Drawing.Point(0, 648);
     this.hBar.Name     = "hBar";
     this.hBar.Size     = new System.Drawing.Size(1128, 24);
     this.hBar.TabIndex = 5;
     this.hBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.hBar_Scroll);
     //
     // SipperImage
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(1152, 670);
     this.Controls.Add(this.hBar);
     this.Controls.Add(this.vBar);
     this.Controls.Add(this.smallPic);
     this.Controls.Add(this.largePic);
     this.Name  = "SipperImage";
     this.Text  = "SipperImage";
     this.Load += new System.EventHandler(this.SipperImage_Load);
     this.ResumeLayout(false);
 }
        VScrollBar VScrollBarStrategy; // Vertical scrollbar

        #endregion Fields

        #region Constructors

        /// <summary>
        /// Initializes the strategy field
        /// </summary>
        public Strategy_Layout(Strategy strategy)
        {
            this.strategy      = strategy;
            slots              = strategy.Slots;
            slotMinMidMax      = SlotSizeMinMidMax.mid;
            toolTip            = new ToolTip();
            flowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();
            apnlSlot           = new Panel[slots];
            pnlProperties      = new Panel();

            for (int iSlot = 0; iSlot < slots; iSlot++)
                apnlSlot[iSlot] = new Panel();

            if (bShowRemoveSlotButtons)
            {
                abtnRemoveSlot = new Button[slots];
                for (int iSlot = 0; iSlot < slots; iSlot++)
                    abtnRemoveSlot[iSlot] = new Button();
            }

            // FlowLayoutStrategy
            flowLayoutStrategy.Parent     = this;
            flowLayoutStrategy.AutoScroll = false;

            //VScrollBarStrategy
            VScrollBarStrategy.Parent  = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += new ScrollEventHandler(VScrollBarStrategy_Scroll);

            if (bShowAddSlotButtons)
            {
                // btnAddOpenFilter
                btnAddOpenFilter = new Button();
                btnAddOpenFilter.Tag       = strategy.OpenSlot;
                btnAddOpenFilter.Text      = Language.T("Add an Opening Logic Condition");
                btnAddOpenFilter.Margin    = new Padding(30, 0, 0, space);
                btnAddOpenFilter.UseVisualStyleBackColor = true;
                toolTip.SetToolTip(btnAddOpenFilter, Language.T("Add a new entry logic slot to the strategy."));

                // btnAddCloseFilter
                btnAddCloseFilter = new Button();
                btnAddCloseFilter.Tag       = strategy.CloseSlot;
                btnAddCloseFilter.Text      = Language.T("Add a Closing Logic Condition");
                btnAddCloseFilter.Margin    = new Padding(30, 0, 0, space);
                btnAddCloseFilter.UseVisualStyleBackColor = true;
                toolTip.SetToolTip(btnAddCloseFilter, Language.T("Add a new exit logic slot to the strategy."));

                // btnClosingFilterHelp
                btnClosingFilterHelp = new Button();
                btnClosingFilterHelp.Image   = Properties.Resources.info;
                btnClosingFilterHelp.Margin  = new Padding(2, 2, 0, space);
                btnClosingFilterHelp.TabStop = false;
                btnClosingFilterHelp.Click  += new EventHandler(BtnClosingFilterHelp_Click);
                btnClosingFilterHelp.UseVisualStyleBackColor = true;
            }

            return;
        }
Exemplo n.º 18
0
 public FormComboPicker()
 {
     vScroll          = new VScrollBar();
     vScroll.Scroll  += VScroll_Scroll;
     vScroll.KeyDown += VScroll_KeyDown;
     this.Controls.Add(vScroll);
     InitializeComponent();
 }
Exemplo n.º 19
0
 private void InitializeComponent()
 {
     this.pbCizimAlani        = new System.Windows.Forms.PictureBox();
     this.yatayKaydirmaCubugu = new System.Windows.Forms.HScrollBar();
     this.dikeyKaydirmaCubugu = new System.Windows.Forms.VScrollBar();
     this.SuspendLayout();
     //
     // pbCizimAlani
     //
     this.pbCizimAlani.BackColor   = System.Drawing.Color.Black;
     this.pbCizimAlani.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.pbCizimAlani.Location    = new System.Drawing.Point(0, 0);
     this.pbCizimAlani.Name        = "pbCizimAlani";
     this.pbCizimAlani.Size        = new System.Drawing.Size(520, 520);
     this.pbCizimAlani.TabIndex    = 0;
     this.pbCizimAlani.TabStop     = false;
     this.pbCizimAlani.MouseDown  += new MouseEventHandler(pbCizimAlani_MouseDown);
     this.pbCizimAlani.MouseUp    += new MouseEventHandler(pbCizimAlani_MouseUp);
     this.pbCizimAlani.MouseMove  += new MouseEventHandler(pbCizimAlani_MouseMove);
     //
     // yatayKaydirmaCubugu
     //
     this.yatayKaydirmaCubugu.LargeChange = 1;
     this.yatayKaydirmaCubugu.Location    = new System.Drawing.Point(0, 520);
     this.yatayKaydirmaCubugu.Maximum     = 50;
     this.yatayKaydirmaCubugu.Name        = "yatayKaydirmaCubugu";
     this.yatayKaydirmaCubugu.Size        = new System.Drawing.Size(520, 16);
     this.yatayKaydirmaCubugu.TabIndex    = 1;
     this.yatayKaydirmaCubugu.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.yatayKaydirmaCubugu_Scroll);
     //
     // dikeyKaydirmaCubugu
     //
     this.dikeyKaydirmaCubugu.LargeChange = 1;
     this.dikeyKaydirmaCubugu.Location    = new System.Drawing.Point(520, 0);
     this.dikeyKaydirmaCubugu.Maximum     = 50;
     this.dikeyKaydirmaCubugu.Name        = "dikeyKaydirmaCubugu";
     this.dikeyKaydirmaCubugu.Size        = new System.Drawing.Size(16, 520);
     this.dikeyKaydirmaCubugu.TabIndex    = 2;
     this.dikeyKaydirmaCubugu.Value       = 50;
     this.dikeyKaydirmaCubugu.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.dikeyKaydirmaCubugu_Scroll);
     //
     // frmCizim
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(536, 536);
     this.Controls.Add(this.dikeyKaydirmaCubugu);
     this.Controls.Add(this.yatayKaydirmaCubugu);
     this.Controls.Add(this.pbCizimAlani);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "frmCizim";
     this.Text            = "frmCizim";
     this.Load           += new System.EventHandler(this.frmCizim_Load);
     this.Activated      += new EventHandler(frmCizim_Activated);
     this.Closed         += new EventHandler(frmCizim_Closed);
     this.ResumeLayout(false);
 }
        /// <summary>
        /// Initializes the strategy field
        /// </summary>
        public StrategyLayout(Strategy strategy)
        {
            SlotPropertiesTipText = Language.T("Averaging, Trading size, Protection.");
            SlotToolTipText = Language.T("Long position logic.");
            ShowRemoveSlotButtons = true;
            ShowAddSlotButtons = true;
            _strategy = strategy;
            _slots = strategy.Slots;
            SlotMinMidMax = SlotSizeMinMidMax.mid;
            FlowLayoutStrategy = new FlowLayoutPanel();
            VScrollBarStrategy = new VScrollBar();
            SlotPanelsList = new ContextPanel[_slots];
            PanelProperties = new Panel();

            for (int slot = 0; slot < _slots; slot++)
                SlotPanelsList[slot] = new ContextPanel();

            // FlowLayoutStrategy
            FlowLayoutStrategy.Parent = this;
            FlowLayoutStrategy.AutoScroll = false;

            //VScrollBarStrategy
            VScrollBarStrategy.Parent = this;
            VScrollBarStrategy.TabStop = true;
            VScrollBarStrategy.Scroll += VScrollBarStrategyScroll;

            if (ShowAddSlotButtons)
            {
                var toolTip = new ToolTip();
                ButtonAddOpenFilter = new Button
                                          {
                                              Tag = strategy.OpenSlot,
                                              Text = Language.T("Add an Opening Logic Condition"),
                                              Margin = new Padding(30, 0, 0, Space),
                                              UseVisualStyleBackColor = true
                                          };
                toolTip.SetToolTip(ButtonAddOpenFilter, Language.T("Add a new entry logic slot to the strategy."));

                ButtonAddCloseFilter = new Button
                                           {
                                               Tag = strategy.CloseSlot,
                                               Text = Language.T("Add a Closing Logic Condition"),
                                               Margin = new Padding(30, 0, 0, Space),
                                               UseVisualStyleBackColor = true
                                           };
                toolTip.SetToolTip(ButtonAddCloseFilter, Language.T("Add a new exit logic slot to the strategy."));

                BtnClosingFilterHelp = new Button
                                            {
                                                Image = Resources.info,
                                                Margin = new Padding(2, 2, 0, Space),
                                                TabStop = false
                                            };
                BtnClosingFilterHelp.Click += BtnClosingFilterHelpClick;
                BtnClosingFilterHelp.UseVisualStyleBackColor = true;
            }
        }
Exemplo n.º 21
0
 public void SetControl(VScrollBar vScrollBar, Panel panel)
 {
     _panel = panel;
     _vScrollBar = vScrollBar;
     _vScrollBar.ValueChanged += new EventHandler(_vScrollBar_ValueChanged);
     //Add event after vscrollbar is set
     this.Click += new EventHandler(ThumbnailSurfaceControl_Click);
     this.SizeChanged += new EventHandler(ThumbnailSurfaceControl_SizeChanged);
 }
Exemplo n.º 22
0
        public void ScaleChildControl_VScrollBarTest()
        {
            using (var scrollBar = new VScrollBar { Width = 20, Height = 200 })
            {
                OTBaseForm.ScaleChildControl(scrollBar, new SizeF(2.0f, 2.0f));

                Assert.Equal(40, scrollBar.Width);
            }
        }
        /// <summary>
        /// Initializes the strategy field
        /// </summary>
        public StrategyLayout(Strategy strategy)
        {
            _strategy = strategy;
            _slots = strategy.Slots;
            _slotMinMidMax = SlotSizeMinMidMax.Mid;
            _toolTip = new ToolTip();
            _flowLayoutStrategy = new FlowLayoutPanel();
            _vScrollBarStrategy = new VScrollBar();
            ApnlSlot = new Panel[_slots];
            PnlProperties = new Panel();

            for (int iSlot = 0; iSlot < _slots; iSlot++)
                ApnlSlot[iSlot] = new Panel();

            AbtnRemoveSlot = new Button[_slots];
            for (int iSlot = 0; iSlot < _slots; iSlot++)
                AbtnRemoveSlot[iSlot] = new Button();

            // FlowLayoutStrategy
            _flowLayoutStrategy.Parent = this;
            _flowLayoutStrategy.AutoScroll = false;

            //VScrollBarStrategy
            _vScrollBarStrategy.Parent = this;
            _vScrollBarStrategy.TabStop = true;
            _vScrollBarStrategy.Scroll += VScrollBarStrategyScroll;

            // btnAddOpenFilter
            BtnAddOpenFilter = new Button
                                   {
                                       Tag = strategy.OpenSlot,
                                       Text = Language.T("Add an Opening Logic Condition"),
                                       Margin = new Padding(30, 0, 0, Space),
                                       UseVisualStyleBackColor = true
                                   };
            _toolTip.SetToolTip(BtnAddOpenFilter, Language.T("Add a new entry logic slot to the strategy."));

            // btnAddCloseFilter
            BtnAddCloseFilter = new Button
                                    {
                                        Tag = strategy.CloseSlot,
                                        Text = Language.T("Add a Closing Logic Condition"),
                                        Margin = new Padding(30, 0, 0, Space),
                                        UseVisualStyleBackColor = true
                                    };
            _toolTip.SetToolTip(BtnAddCloseFilter, Language.T("Add a new exit logic slot to the strategy."));

            // btnClosingFilterHelp
            _btnClosingFilterHelp = new Button
                                        {
                                            Image = Resources.info,
                                            Margin = new Padding(2, 2, 0, Space),
                                            TabStop = false
                                        };
            _btnClosingFilterHelp.Click += BtnClosingFilterHelp_Click;
            _btnClosingFilterHelp.UseVisualStyleBackColor = true;
        }
Exemplo n.º 24
0
 public ScrollDecorator(GraphicsView view)
 {
     View = view;
     Parent = View.Parent;
     VScroll = new VScrollBar();
     Parent.Controls.Add(VScroll);
     Parent.Resize += Parent_Resize;
     Parent_Resize(this, new EventArgs());
 }
Exemplo n.º 25
0
        public GumpControl()
        {
            DoubleBuffered = true;

            _scrollBar = new VScrollBar();
            _scrollBar.ValueChanged += OnScrollbarValueChanged;
            _scrollBar.Dock = DockStyle.Right;

            Controls.Add(_scrollBar);
        }
Exemplo n.º 26
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.m_VertScrollBar = new System.Windows.Forms.VScrollBar();
            this.m_HorzScrollBar = new System.Windows.Forms.HScrollBar();
            this.m_GridPanel     = new Altaxo.Worksheet.GUI.WorksheetPanel();
            this.SuspendLayout();
            //
            // m_VertScrollBar
            //
            this.m_VertScrollBar.Dock     = System.Windows.Forms.DockStyle.Right;
            this.m_VertScrollBar.Location = new System.Drawing.Point(276, 0);
            this.m_VertScrollBar.Name     = "m_VertScrollBar";
            this.m_VertScrollBar.Size     = new System.Drawing.Size(16, 266);
            this.m_VertScrollBar.TabIndex = 2;
            this.m_VertScrollBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.EhVertScrollBar_Scroll);
            //
            // m_HorzScrollBar
            //
            this.m_HorzScrollBar.Dock     = System.Windows.Forms.DockStyle.Bottom;
            this.m_HorzScrollBar.Location = new System.Drawing.Point(0, 250);
            this.m_HorzScrollBar.Name     = "m_HorzScrollBar";
            this.m_HorzScrollBar.Size     = new System.Drawing.Size(276, 16);
            this.m_HorzScrollBar.TabIndex = 3;
            this.m_HorzScrollBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.EhHorzScrollBar_Scroll);
            //
            // m_GridPanel
            //
            this.m_GridPanel.Dock         = System.Windows.Forms.DockStyle.Fill;
            this.m_GridPanel.Location     = new System.Drawing.Point(0, 0);
            this.m_GridPanel.Name         = "m_GridPanel";
            this.m_GridPanel.Size         = new System.Drawing.Size(276, 250);
            this.m_GridPanel.TabIndex     = 4;
            this.m_GridPanel.Click       += new System.EventHandler(this.EhTableArea_Click);
            this.m_GridPanel.SizeChanged += new System.EventHandler(this.EhTableArea_SizeChanged);
            this.m_GridPanel.MouseUp     += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseUp);
            this.m_GridPanel.Paint       += new System.Windows.Forms.PaintEventHandler(this.EhTableArea_Paint);
            this.m_GridPanel.DoubleClick += new System.EventHandler(this.EhTableArea_DoubleClick);
            this.m_GridPanel.MouseMove   += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseMove);
            this.m_GridPanel.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseDown);
            this.m_GridPanel.MouseWheel  += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseWheel);
            this.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseWheel);
            //this.ParentForm.MouseWheel += new System.Windows.Forms.MouseEventHandler(this.EhTableArea_MouseWheel);

            //
            // WorksheetView
            //
            //this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(292, 266);
            this.Controls.Add(this.m_GridPanel);
            this.Controls.Add(this.m_HorzScrollBar);
            this.Controls.Add(this.m_VertScrollBar);
            this.Name = "WorksheetView";
            this.Text = "WorksheetView";
            this.ResumeLayout(false);
        }
Exemplo n.º 27
0
        public DescriptionControl()
        {
            ResizeRedraw = false;

            InitializeComponent();

            // Get the size of a vertical scroll bar.
            VScrollBar scrollBar = new VScrollBar();
            scrollWidth = scrollBar.GetPreferredSize(new Size(200,200)).Width;
            scrollBar.Dispose();
        }
Exemplo n.º 28
0
        public void SetScrollBarBounds()
        {
            System.Windows.Forms.VScrollBar rectangle = this.vScrollBar;
            Rectangle bounds = this.textArea.Bounds;

            rectangle.Bounds = new Rectangle(bounds.Right, 0, SystemInformation.HorizontalScrollBarArrowWidth, base.Height - SystemInformation.VerticalScrollBarArrowHeight);
            System.Windows.Forms.HScrollBar hScrollBar = this.hScrollBar;
            Rectangle bounds1 = this.textArea.Bounds;

            hScrollBar.Bounds = new Rectangle(0, bounds1.Bottom, base.Width - SystemInformation.HorizontalScrollBarArrowWidth, SystemInformation.VerticalScrollBarArrowHeight);
        }
Exemplo n.º 29
0
        public void CommitScrollBar(VScrollBar sb, bool dirty_only)
        {
            if(dirty_only && !_transientScrollBarDirty) return;

            sb.Enabled = _transientScrollBarEnabled;
            sb.Maximum = _transientScrollBarMaximum;
            sb.LargeChange = _transientScrollBarLargeChange;
            //!!�{������if���͕s�v�Ȃ͂������A�͈̓G���[�ɂȂ�P�[�X�����󂯂�ꂽ�B���̌�����T���ă����[�X���O�ɂ��낢�낢����̂͊댯�Ȃ̂ł����͓�����B��ł����Ɖ𖾂���B
            if(_transientScrollBarValue < _transientScrollBarMaximum)
                sb.Value = _transientScrollBarValue;
            _transientScrollBarDirty = false;
        }
Exemplo n.º 30
0
Arquivo: Hex2.cs Projeto: realwxp/hex
 public Hex2() {
     /*Data = new byte[1280];
     Random r = new Random();
     r.NextBytes(Data);
     */
     Data = new byte[0];
     _scrollBar = new VScrollBar();
     _scrollBar.Dock = DockStyle.Right;
     _scrollBar.Scroll += _scrollBar_Scroll;
     Controls.Add(_scrollBar); 
     QueryHitAddresses = new List<Int32>();
 }
Exemplo n.º 31
0
        public HexView()
        {
            DoubleBuffered = true;

            scrollBar = new VScrollBar();
            scrollBar.Dock = DockStyle.Right;
            scrollBar.Scroll += scrollBar_Scroll;
            scrollBar.Visible = false;
            Controls.Add(scrollBar);

            this.MouseWheel += HexView_MouseWheel;
        }
Exemplo n.º 32
0
		public MemoryControl()
		{
            mcp = new MemoryControlPainter(this);
			SetStyle(ControlStyles.DoubleBuffer, true);
			SetStyle(ControlStyles.AllPaintingInWmPaint, true);
			SetStyle(ControlStyles.UserPaint, true);
			vscroller = new VScrollBar();
			vscroller.Dock = DockStyle.Right;
			Controls.Add(vscroller);
			vscroller.Scroll += vscroller_Scroll;
			wordSize = 1;
			cbRow = 16;
		}
Exemplo n.º 33
0
 /// <summary>
 /// デザイナ サポートに必要なメソッドです。このメソッドの内容を
 /// コード エディタで変更しないでください。
 /// </summary>
 private void InitializeComponent()
 {
     TiemText     = new Tono.GuiWinForm.TTextBoxTimeMask();
     vScrollBar   = new System.Windows.Forms.VScrollBar();
     comboBox_Day = new System.Windows.Forms.ComboBox();
     SuspendLayout();
     //
     // TiemText
     //
     TiemText.Anchor    = (System.Windows.Forms.AnchorStyles.Left | System.Windows.Forms.AnchorStyles.Right);
     TiemText.Font      = new System.Drawing.Font("Arial Black", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     TiemText.Location  = new System.Drawing.Point(79, 0);
     TiemText.Name      = "TiemText";
     TiemText.Size      = new System.Drawing.Size(144, 30);
     TiemText.TabIndex  = 1;
     TiemText.Text      = "00:00:00";
     TiemText.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
     //
     // vScrollBar
     //
     vScrollBar.Anchor   = System.Windows.Forms.AnchorStyles.Right;
     vScrollBar.Location = new System.Drawing.Point(224, 0);
     vScrollBar.Name     = "vScrollBar";
     vScrollBar.Size     = new System.Drawing.Size(24, 30);
     vScrollBar.TabIndex = 2;
     vScrollBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(vScrollBar_Scroll);
     //
     // comboBox_Day
     //
     comboBox_Day.Anchor        = System.Windows.Forms.AnchorStyles.Left;
     comboBox_Day.DrawMode      = System.Windows.Forms.DrawMode.OwnerDrawFixed;
     comboBox_Day.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     comboBox_Day.Font          = new System.Drawing.Font("HGP創英角ゴシックUB", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 128);
     comboBox_Day.ImeMode       = System.Windows.Forms.ImeMode.Off;
     comboBox_Day.ItemHeight    = 24;
     comboBox_Day.Location      = new System.Drawing.Point(0, 1);
     comboBox_Day.Name          = "comboBox_Day";
     comboBox_Day.Size          = new System.Drawing.Size(80, 30);
     comboBox_Day.TabIndex      = 0;
     comboBox_Day.DrawItem     += new System.Windows.Forms.DrawItemEventHandler(comboBox_Day_DrawItem);
     //
     // cTimeUpDown
     //
     Controls.Add(vScrollBar);
     Controls.Add(comboBox_Day);
     Controls.Add(TiemText);
     Font = new System.Drawing.Font("Arial Black", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
     Name = "cTimeUpDown";
     Size = new System.Drawing.Size(248, 30);
     ResumeLayout(false);
 }
Exemplo n.º 34
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.vsbSpin     = new System.Windows.Forms.VScrollBar();
     this.pnlControls = new System.Windows.Forms.Panel();
     this.txtHour     = new System.Windows.Forms.TextBox();
     this.pnlControls.SuspendLayout();
     this.SuspendLayout();
     //
     // vsbSpin
     //
     this.vsbSpin.Dock        = System.Windows.Forms.DockStyle.Right;
     this.vsbSpin.LargeChange = 1;
     this.vsbSpin.Location    = new System.Drawing.Point(108, 0);
     this.vsbSpin.Name        = "vsbSpin";
     this.vsbSpin.Size        = new System.Drawing.Size(16, 16);
     this.vsbSpin.TabIndex    = 1;
     this.vsbSpin.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.vsbSpin_Scroll);
     //
     // pnlControls
     //
     this.pnlControls.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.pnlControls.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.pnlControls.Controls.Add(this.txtHour);
     this.pnlControls.Controls.Add(this.vsbSpin);
     this.pnlControls.Location = new System.Drawing.Point(0, 0);
     this.pnlControls.Name     = "pnlControls";
     this.pnlControls.Size     = new System.Drawing.Size(128, 20);
     this.pnlControls.TabIndex = 2;
     //
     // txtHour
     //
     this.txtHour.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.txtHour.Dock        = System.Windows.Forms.DockStyle.Fill;
     this.txtHour.Location    = new System.Drawing.Point(0, 0);
     this.txtHour.Name        = "txtHour";
     this.txtHour.ReadOnly    = true;
     this.txtHour.Size        = new System.Drawing.Size(108, 13);
     this.txtHour.TabIndex    = 2;
     this.txtHour.Enter      += new System.EventHandler(this.txtHour_Enter);
     this.txtHour.KeyDown    += new System.Windows.Forms.KeyEventHandler(this.txtHour_KeyDown);
     //
     // TimeBox
     //
     this.Controls.Add(this.pnlControls);
     this.Name = "TimeBox";
     this.Size = new System.Drawing.Size(128, 21);
     this.pnlControls.ResumeLayout(false);
     this.pnlControls.PerformLayout();
     this.ResumeLayout(false);
 }
Exemplo n.º 35
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.myPanel      = new System.Windows.Forms.Panel();
     this.myLayerPanel = new WorkSpace.SlideView.DoubleBufferPanel();
     this.myScrollBar  = new System.Windows.Forms.VScrollBar();
     this.myPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // myPanel
     //
     this.myPanel.BackColor   = System.Drawing.Color.Transparent;
     this.myPanel.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.myPanel.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.myLayerPanel,
         this.myScrollBar
     });
     this.myPanel.Name     = "myPanel";
     this.myPanel.Size     = new System.Drawing.Size(150, 104);
     this.myPanel.TabIndex = 0;
     //
     // myLayerPanel
     //
     this.myLayerPanel.AccessibleDescription = "myLayerPanel";
     this.myLayerPanel.AccessibleName        = "myLayerPanel";
     this.myLayerPanel.BackColor             = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(192)), ((System.Byte)(192)));
     this.myLayerPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.myLayerPanel.Name     = "myLayerPanel";
     this.myLayerPanel.Size     = new System.Drawing.Size(114, 100);
     this.myLayerPanel.TabIndex = 1;
     //
     // myScrollBar
     //
     this.myScrollBar.AccessibleDescription = "myScrollBar";
     this.myScrollBar.AccessibleName        = "myScrollBar";
     this.myScrollBar.Dock          = System.Windows.Forms.DockStyle.Right;
     this.myScrollBar.Location      = new System.Drawing.Point(114, 0);
     this.myScrollBar.Name          = "myScrollBar";
     this.myScrollBar.Size          = new System.Drawing.Size(32, 100);
     this.myScrollBar.TabIndex      = 0;
     this.myScrollBar.ValueChanged += new System.EventHandler(this.HandleScrollBarScrollValueChanged);
     this.myScrollBar.Scroll       += new System.Windows.Forms.ScrollEventHandler(this.HandleScroll);
     //
     // SlideView
     //
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.myPanel
     });
     this.Name = "SlideView";
     this.myPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 36
0
		/// <summary/>
		public FakeBrowseViewer()
		{
			m_scrollBar = new VScrollBar();
			m_configureButton = new Button();
			m_lvHeader = new DhListView(this);
			m_scrollContainer = new BrowseViewScroller(this);

			// When running FieldWorks, the constructor eventually creates an XmlBrowseView and calls AddControl() with it,
			// and adds m_scrollContainer to Controls. Model this so the .Dispose methods can behave the same way when
			// testing as when running FieldWorks.
			Controls.Add(m_scrollContainer);
			m_xbv = new FakeXmlBrowseViewBase(this);
			AddControl(m_xbv);
		}
        private void InitializeComponent()
        {
            SuspendLayout();
            ClientSize = new Size(600, 500);
            MinimumSize = new Size(300, 300);
            _ClientWidth = ClientSize.Width;
            _ClientHeight = ClientSize.Height;

            Text = "Fast Image Scroll";
            Resize += ResizeForm_Resize;
            Paint += Form_Paint;

            _VScrollBar = new VScrollBar();
            _VScrollBar.Maximum = 0;
            _VScrollBar.Minimum = 0;
            _VScrollBar.Name = "small scroll bar";
            _VScrollBar.Size = new Size(15, _ClientHeight);
            _VScrollBar.Value = 0;
            _VScrollBar.Scroll += SbarScroll;
            _VScrollBar.Location = new Point(_ClientWidth - 15, 0);

            _Picbox = new PictureBox();
            _Picbox.BackColor = Color.White;  //Set White backgroud of Picture Box


            _BufferImage = new Bitmap(_ClientWidth - 15, _ClientHeight, PixelFormat.Format24bppRgb);
            _InputImageHeight = _BufferImage.Height; _InputImageWidth = _BufferImage.Width;
            Graphics gtw = Graphics.FromImage(_BufferImage);
            gtw.Clear(Color.White);
            gtw.Dispose();
            _Picbox.Image = _BufferImage;
            _Picbox.Name = "_Picbox";
            _Picbox.Location = new Point(0, 0);
            _Picbox.Size = new Size(_ClientWidth - 15, _ClientHeight);
            _Picbox.SizeMode = PictureBoxSizeMode.StretchImage;// .Normal;
            Controls.AddRange(new Control[] { _Picbox, _VScrollBar });

            OpenFileDialog fileOpen = new OpenFileDialog();
            fileOpen.InitialDirectory = ".\\";
            fileOpen.Filter = "All file (*.*)| *.*";
            fileOpen.FilterIndex = 1; fileOpen.ShowHelp = true;
            fileOpen.RestoreDirectory = false; //true;
            if (fileOpen.ShowDialog() != DialogResult.Cancel)
            {
                string inputfile = fileOpen.FileName;
                UnpackImage(inputfile); ResumeLayout(false);
            }
            else Close(); // if cancel is pressed, close the window
        }
Exemplo n.º 38
0
        public XPNumericUpDown()
        {
            AutoSize = false;
            //Height += 2;
            vScrollBar          = new System.Windows.Forms.VScrollBar();
            vScrollBar.Size     = new Size(vScrollBar.Size.Width, Height);
            vScrollBar.Location = new Point(Width - vScrollBar.Width - 3, 0);
            vScrollBar.Cursor   = Cursors.Default;
            vScrollBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(vScrollBarChanged);
            Controls.Add(vScrollBar);

            Value   = 0;
            Maximum = 100;
            Minimum = 0;
        }
Exemplo n.º 39
0
        public HAPDataView()
            : base()
        {
            AllocateBuffer();

            //Initilize Filter
            filter = new Dictionary<string, object>();
            OnFilterChanged += OnFilter;

            //Initilize DetailScrollBar
            detailScrollBar = new VScrollBar();
            detailScrollBar.Parent = this;
            detailScrollBar.Dock = DockStyle.Right;
            detailScrollBar.Scroll += OnDetailScrollBarScroll;
        }
Exemplo n.º 40
0
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);

}
Exemplo n.º 41
0
 FindInstitution()
 {
     InitializeComponent();
     /* Icon */
     this.Icon = System.Drawing.Icon.FromHandle(global::RegexMarkup.Properties.Resources.institution.GetHicon());
     this.dataGridView1.RowPostPaint += new DataGridViewRowPostPaintEventHandler(dgGrid_RowPostPaint);
     foreach (Control c in dataGridView1.Controls){
          if (c is VScrollBar){
              vScrollBar = (VScrollBar)c;
              vScrollBar.Scroll += new ScrollEventHandler(dataGridView1_Scroll);
              vScrollBar.ValueChanged += new EventHandler(vScrollBar_ValueChanged);
          }
     }
     this.getCountrys();
     this.textSearch.KeyDown +=new KeyEventHandler(textSearch_KeyDown);
 }
Exemplo n.º 42
0
        public ConsoleControl()
        {
            InitializeComponent();

            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            _scrollBar = new VScrollBar();
            _scrollBar.Width = SystemInformation.VerticalScrollBarWidth;
            _scrollBar.Dock = DockStyle.Right;
            _scrollBar.Scroll += new ScrollEventHandler(_scrollBar_Scroll);

            _scrollBar.Parent = this;

            _defaultFont = CreateAvailableFont(10.0f, FontStyle.Regular, "Consolas", "Lucida Console", "Courier New");
        }
Exemplo n.º 43
0
        public TotalViewPck()
        {
            tileChooser = new ComboBox();
            scroll      = new VScrollBar();
            status      = new Label();
            showBytes   = new CheckBox();

            tileChooser.DropDownStyle         = System.Windows.Forms.ComboBoxStyle.DropDownList;
            tileChooser.Size                  = new System.Drawing.Size(121, 21);
            tileChooser.SelectedIndexChanged += new System.EventHandler(this.tileChooser_SelectedIndexChanged);
            tileChooser.MaxDropDownItems      = 20;

            this.status.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                  | System.Windows.Forms.AnchorStyles.Right);
            this.status.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            this.status.Location    = new System.Drawing.Point(0, 250);
            this.status.Size        = new System.Drawing.Size(293, 23);

            this.showBytes.Anchor = ((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                     | System.Windows.Forms.AnchorStyles.Right);
            this.showBytes.Location        = new System.Drawing.Point(120, 0);
            this.showBytes.Size            = new System.Drawing.Size(100, 21);
            this.showBytes.Text            = "Show Bytes";
            this.showBytes.CheckedChanged += new System.EventHandler(this.showBytes_CheckedChanged);

            scroll.Dock     = System.Windows.Forms.DockStyle.Right;
            scroll.Location = new System.Drawing.Point(294, 0);
            scroll.Size     = new System.Drawing.Size(18, 273);
            scroll.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.scroll_Scroll);

            this.Controls.AddRange(new System.Windows.Forms.Control[] {
                showBytes,
                status,
                scroll,
                tileChooser
            });

            //this.images = images;

            view             = new ViewPck();
            view.Location    = new Point(0, tileChooser.Height);
            view.MouseThing += new MouseStuff(viewClicked);
            scroll.Minimum   = -tileChooser.Height;

            this.Controls.Add(view);
            OnResize(null);
        }
Exemplo n.º 44
0
        internal void Native_EnableScrollBar(bool enable, int orientation)
        {
            var oriV = orientation == NativeMethods.SB_VERT;
            var oriH = orientation == NativeMethods.SB_HORZ;

            if (enable)
            {
                if (oriV && vscroll == null)
                {
                    vscroll               = new VScrollBar();
                    vscroll.Anchor        = AnchorStyles.Top | AnchorStyles.Right | AnchorStyles.Bottom;
                    vscroll.uwfSystem     = true;
                    vscroll.ValueChanged += Scroll_ValueChanged;

                    Controls.Add(vscroll);
                }

                if (oriH && hscroll == null)
                {
                    hscroll               = new HScrollBar();
                    hscroll.Anchor        = AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Right;
                    hscroll.uwfSystem     = true;
                    hscroll.ValueChanged += Scroll_ValueChanged;

                    Controls.Add(hscroll);
                }
            }
            else
            {
                if (oriV && vscroll != null)
                {
                    vscroll.Value         = 0; // Reset view.
                    vscroll.ValueChanged -= Scroll_ValueChanged;
                    vscroll.Dispose();
                    vscroll = null;
                }

                if (oriH && hscroll != null)
                {
                    hscroll.Value         = 0; // Reset view.
                    hscroll.ValueChanged -= Scroll_ValueChanged;
                    hscroll.Dispose();
                    hscroll = null;
                }
            }
        }
Exemplo n.º 45
0
 /// <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);
 }
Exemplo n.º 46
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panelMain   = new System.Windows.Forms.Panel();
     this.vScrollBar2 = new System.Windows.Forms.VScrollBar();
     this.panelSlide  = new System.Windows.Forms.Panel();
     this.panelMain.SuspendLayout();
     this.SuspendLayout();
     //
     // panelMain
     //
     this.panelMain.Controls.Add(this.panelSlide);
     this.panelMain.Controls.Add(this.vScrollBar2);
     this.panelMain.Location = new System.Drawing.Point(1, 1);
     this.panelMain.Name     = "panelMain";
     this.panelMain.Size     = new System.Drawing.Size(262, 313);
     this.panelMain.TabIndex = 0;
     //
     // vScrollBar2
     //
     this.vScrollBar2.Dock     = System.Windows.Forms.DockStyle.Right;
     this.vScrollBar2.Location = new System.Drawing.Point(245, 0);
     this.vScrollBar2.Name     = "vScrollBar2";
     this.vScrollBar2.Size     = new System.Drawing.Size(17, 313);
     this.vScrollBar2.TabIndex = 1;
     this.vScrollBar2.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.vScrollBar2_Scroll);
     //
     // panelSlide
     //
     this.panelSlide.Location = new System.Drawing.Point(0, 0);
     this.panelSlide.Name     = "panelSlide";
     this.panelSlide.Size     = new System.Drawing.Size(224, 276);
     this.panelSlide.TabIndex = 2;
     this.panelSlide.Click   += new System.EventHandler(this.panelSlide_Click);
     //
     // ContrMultInput
     //
     this.Controls.Add(this.panelMain);
     this.Name    = "ContrMultInput";
     this.Size    = new System.Drawing.Size(272, 321);
     this.Paint  += new System.Windows.Forms.PaintEventHandler(this.ContrMultInput_Paint);
     this.Layout += new System.Windows.Forms.LayoutEventHandler(this.ContrMultInput_Layout);
     this.panelMain.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 47
0
        public void AdjustScrollBars()
        {
            this.adjustScrollBarsOnNextUpdate = false;
            this.vScrollBar.Minimum           = 0;
            this.vScrollBar.Maximum           = this.textArea.MaxVScrollValue;
            int num = 0;
            int firstVisibleLine = this.textArea.TextView.FirstVisibleLine;
            int firstLogicalLine = this.Document.GetFirstLogicalLine(this.textArea.TextView.FirstPhysicalLine + this.textArea.TextView.VisibleLineCount);

            if (firstLogicalLine >= this.Document.TotalNumberOfLines)
            {
                firstLogicalLine = this.Document.TotalNumberOfLines - 1;
            }
            if (this.lineLengthCache == null || (int)this.lineLengthCache.Length <= firstLogicalLine)
            {
                this.lineLengthCache = new int[firstLogicalLine + 100];
            }
            for (int i = firstVisibleLine; i <= firstLogicalLine; i++)
            {
                LineSegment lineSegment = this.Document.GetLineSegment(i);
                if (this.Document.FoldingManager.IsLineVisible(i))
                {
                    if (this.lineLengthCache[i] <= 0)
                    {
                        int visualColumnFast = this.textArea.TextView.GetVisualColumnFast(lineSegment, lineSegment.Length);
                        this.lineLengthCache[i] = Math.Max(1, visualColumnFast);
                        num = Math.Max(num, visualColumnFast);
                    }
                    else
                    {
                        num = Math.Max(num, this.lineLengthCache[i]);
                    }
                }
            }
            this.hScrollBar.Minimum = 0;
            this.hScrollBar.Maximum = Math.Max(num + 20, this.textArea.TextView.VisibleColumnCount - 1);
            System.Windows.Forms.VScrollBar vScrollBar = this.vScrollBar;
            Rectangle drawingPosition = this.textArea.TextView.DrawingPosition;

            vScrollBar.LargeChange      = Math.Max(0, drawingPosition.Height);
            this.vScrollBar.SmallChange = Math.Max(0, this.textArea.TextView.FontHeight);
            this.hScrollBar.LargeChange = Math.Max(0, this.textArea.TextView.VisibleColumnCount - 1);
            this.hScrollBar.SmallChange = Math.Max(0, this.textArea.TextView.SpaceWidth);
        }
Exemplo n.º 48
0
 /// <summary>
 /// Required method for Designer support.
 /// </summary>
 private void InitializeComponent()
 {
     this.mScrollBar = new System.Windows.Forms.VScrollBar();
     this.SuspendLayout();
     //
     // mScrollBar
     //
     this.mScrollBar.Location = new System.Drawing.Point(149, 41);
     this.mScrollBar.Name     = "mScrollBar";
     this.mScrollBar.Size     = new System.Drawing.Size(17, 80);
     this.mScrollBar.TabIndex = 0;
     this.mScrollBar.Visible  = false;
     this.mScrollBar.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.mScrollBar_Scroll);
     //
     // BinaryMapViewer
     //
     this.Controls.Add(this.mScrollBar);
     this.DoubleBuffered = true;
     this.Name           = "BinaryMapViewer";
     this.Size           = new System.Drawing.Size(200, 240);
     this.ResumeLayout(false);
 }
Exemplo n.º 49
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器
 /// 修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.valueBox = new System.Windows.Forms.TextBox();
     this.upDown   = new System.Windows.Forms.VScrollBar();
     this.SuspendLayout();
     //
     // valueBox
     //
     this.valueBox.Location     = new System.Drawing.Point(1, 2);
     this.valueBox.Name         = "valueBox";
     this.valueBox.Size         = new System.Drawing.Size(112, 21);
     this.valueBox.TabIndex     = 0;
     this.valueBox.Text         = " + 00:00:00,000";
     this.valueBox.KeyDown     += new System.Windows.Forms.KeyEventHandler(this.valueBox_KeyDown);
     this.valueBox.MouseDown   += new System.Windows.Forms.MouseEventHandler(this.valueBox_MouseDown);
     this.valueBox.KeyPress    += new System.Windows.Forms.KeyPressEventHandler(this.valueBox_KeyPress);
     this.valueBox.DoubleClick += new System.EventHandler(this.valueBox_DoubleClick);
     this.valueBox.MouseMove   += new System.Windows.Forms.MouseEventHandler(this.valueBox_MouseMove);
     //
     // upDown
     //
     this.upDown.LargeChange = 1;
     this.upDown.Location    = new System.Drawing.Point(96, 3);
     this.upDown.Maximum     = 1;
     this.upDown.Name        = "upDown";
     this.upDown.Size        = new System.Drawing.Size(16, 19);
     this.upDown.TabIndex    = 0;
     this.upDown.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.upDown_Scroll);
     //
     // TimeBaseLine
     //
     this.Controls.Add(this.upDown);
     this.Controls.Add(this.valueBox);
     this.Name = "TimeBaseLine";
     this.Size = new System.Drawing.Size(113, 24);
     this.ResumeLayout(false);
 }
Exemplo n.º 50
0
        public ListBox()
        {
            items = new ObjectCollection(this);

            BackColor   = Color.White;
            DrawMode    = DrawMode.Normal;
            DrawItem    = InternalDrawItem;
            uwfWrapText = true;

            uwfItemDisabledColor      = Color.Gray;
            uwfItemHoverColor         = Color.FromArgb(221, 238, 253);
            uwfSelectionBackColor     = SystemColors.Highlight;
            uwfSelectionDisabledColor = Color.FromArgb(101, 203, 255);
            uwfSelectionForeColor     = SystemColors.HighlightText;

            vScroll          = new VScrollBar();
            vScroll.Anchor   = AnchorStyles.Right | AnchorStyles.Top | AnchorStyles.Bottom;
            vScroll.Location = new Point(Width - vScroll.Width, 0);
            vScroll.Height   = Height;
            vScroll.Visible  = false;
            Controls.Add(vScroll);

            UpdateBorder();
        }
        public PrintPreviewControl()
        {
            autozoom  = true;
            columns   = 1;
            rows      = 0;
            startPage = 0;

            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();
        }
Exemplo n.º 52
0
 /// <summary>
 /// 设计器支持所需的方法 - 不要使用代码编辑器修改
 /// 此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
     this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
     this.trackBar1   = new System.Windows.Forms.TrackBar();
     this.trackBar2   = new System.Windows.Forms.TrackBar();
     this.trackBar3   = new System.Windows.Forms.TrackBar();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).BeginInit();
     this.SuspendLayout();
     //
     // hScrollBar1
     //
     this.hScrollBar1.Location = new System.Drawing.Point(32, 56);
     this.hScrollBar1.Name     = "hScrollBar1";
     this.hScrollBar1.TabIndex = 0;
     //
     // vScrollBar1
     //
     this.vScrollBar1.Location = new System.Drawing.Point(160, 32);
     this.vScrollBar1.Name     = "vScrollBar1";
     this.vScrollBar1.TabIndex = 1;
     //
     // trackBar1
     //
     this.trackBar1.Location = new System.Drawing.Point(216, 16);
     this.trackBar1.Name     = "trackBar1";
     this.trackBar1.TabIndex = 2;
     //
     // trackBar2
     //
     this.trackBar2.Location  = new System.Drawing.Point(216, 88);
     this.trackBar2.Name      = "trackBar2";
     this.trackBar2.TabIndex  = 2;
     this.trackBar2.TickStyle = System.Windows.Forms.TickStyle.TopLeft;
     //
     // trackBar3
     //
     this.trackBar3.Location  = new System.Drawing.Point(216, 48);
     this.trackBar3.Name      = "trackBar3";
     this.trackBar3.TabIndex  = 2;
     this.trackBar3.TickStyle = System.Windows.Forms.TickStyle.Both;
     //
     // Form1
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
     this.ClientSize        = new System.Drawing.Size(352, 149);
     this.Controls.AddRange(new System.Windows.Forms.Control[] {
         this.trackBar1,
         this.vScrollBar1,
         this.hScrollBar1,
         this.trackBar2,
         this.trackBar3
     });
     this.Name = "Form1";
     this.Text = "Form1";
     ((System.ComponentModel.ISupportInitialize)(this.trackBar1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.trackBar3)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 53
0
        private void UpdateScrolls()
        {
            // Create or dispose scrolls.
            if (Rows.Count > 0)
            {
                if (Height < maxScrollHeight)
                {
                    if (vScroll == null)
                    {
                        vScroll               = new VScrollBar();
                        vScroll.Anchor        = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Right;
                        vScroll.Height        = Height;
                        vScroll.Location      = new Point(Width - vScroll.Width, 0);
                        vScroll.ValueChanged += VScroll_ValueChanged;
                        vScroll.Visible       = !vScrollHidden;
                        Controls.Add(vScroll);
                    }
                }
                else if (vScroll != null)
                {
                    vScroll.ValueChanged -= VScroll_ValueChanged;
                    vScroll.Dispose();
                    vScroll = null;
                    ResetVOffset();
                }
            }
            else if (vScroll != null)
            {
                vScroll.ValueChanged -= VScroll_ValueChanged;
                vScroll.Dispose();
                vScroll = null;
                ResetVOffset();
            }

            if (Columns.Count > 0)
            {
                if (Width < maxScrollWidth)
                {
                    if (hScroll == null)
                    {
                        hScroll               = new HScrollBar();
                        hScroll.Anchor        = AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
                        hScroll.Width         = Width;
                        hScroll.Location      = new Point(0, Height - hScroll.Height);
                        hScroll.ValueChanged += HScroll_ValueChanged;
                        hScroll.Visible       = !hScrollHidden;
                        Controls.Add(hScroll);
                    }
                }
                else if (hScroll != null)
                {
                    hScroll.ValueChanged -= HScroll_ValueChanged;
                    hScroll.Dispose();
                    hScroll = null;
                    ResetHOffset();
                }
            }
            else if (vScroll != null)
            {
                vScroll.ValueChanged -= VScroll_ValueChanged;
                vScroll.Dispose();
                vScroll = null;
                ResetHOffset();
            }

            // Update properties.
            if (vScroll != null)
            {
                vScroll.Maximum     = (int)maxScrollHeight;
                vScroll.LargeChange = vScroll.Height;
                vScroll.BringToFront();
            }
            if (hScroll != null)
            {
                if (vScroll != null)
                {
                    hScroll.Width = Width - vScroll.Width;
                }
                else
                {
                    hScroll.Width = Width;
                }

                hScroll.Maximum     = (int)maxScrollWidth;
                hScroll.LargeChange = hScroll.Width;
                hScroll.BringToFront();
            }
        }
Exemplo n.º 54
0
 /// <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(frmBeatPad));
     this.beatPadScroll = new System.Windows.Forms.VScrollBar();
     this.panelPopUp    = new System.Windows.Forms.Panel();
     this.cmbSplice     = new System.Windows.Forms.Button();
     this.cmbSetKey     = new System.Windows.Forms.Button();
     this.cmbDone       = new System.Windows.Forms.Button();
     this.cmbSettings   = new System.Windows.Forms.Button();
     this.panelPopUp.SuspendLayout();
     this.SuspendLayout();
     //
     // beatPadScroll
     //
     this.beatPadScroll.Location      = new System.Drawing.Point(264, 0);
     this.beatPadScroll.Maximum       = 69;
     this.beatPadScroll.Name          = "beatPadScroll";
     this.beatPadScroll.Size          = new System.Drawing.Size(16, 256);
     this.beatPadScroll.TabIndex      = 16;
     this.beatPadScroll.ValueChanged += new System.EventHandler(this.beatPadScroll_ValueChanged);
     //
     // panelPopUp
     //
     this.panelPopUp.Controls.Add(this.cmbSplice);
     this.panelPopUp.Controls.Add(this.cmbSetKey);
     this.panelPopUp.Controls.Add(this.cmbDone);
     this.panelPopUp.Controls.Add(this.cmbSettings);
     this.panelPopUp.Location = new System.Drawing.Point(97, 37);
     this.panelPopUp.Name     = "panelPopUp";
     this.panelPopUp.Size     = new System.Drawing.Size(56, 95);
     this.panelPopUp.TabIndex = 133;
     this.panelPopUp.Visible  = false;
     //
     // cmbSplice
     //
     this.cmbSplice.Location = new System.Drawing.Point(0, 48);
     this.cmbSplice.Name     = "cmbSplice";
     this.cmbSplice.Size     = new System.Drawing.Size(56, 24);
     this.cmbSplice.TabIndex = 38;
     this.cmbSplice.Text     = "Splice";
     this.cmbSplice.UseVisualStyleBackColor = false;
     this.cmbSplice.Click += new System.EventHandler(this.cmbSplice_Click);
     //
     // cmbSetKey
     //
     this.cmbSetKey.Location = new System.Drawing.Point(0, 24);
     this.cmbSetKey.Name     = "cmbSetKey";
     this.cmbSetKey.Size     = new System.Drawing.Size(56, 24);
     this.cmbSetKey.TabIndex = 37;
     this.cmbSetKey.Text     = "Set Key";
     this.cmbSetKey.UseVisualStyleBackColor = false;
     this.cmbSetKey.Click += new System.EventHandler(this.cmbSetKey_Click);
     //
     // cmbDone
     //
     this.cmbDone.Location = new System.Drawing.Point(0, 72);
     this.cmbDone.Name     = "cmbDone";
     this.cmbDone.Size     = new System.Drawing.Size(56, 24);
     this.cmbDone.TabIndex = 36;
     this.cmbDone.Text     = "Done";
     this.cmbDone.UseVisualStyleBackColor = false;
     this.cmbDone.Click += new System.EventHandler(this.cmbDone_Click);
     //
     // cmbSettings
     //
     this.cmbSettings.Location = new System.Drawing.Point(0, 0);
     this.cmbSettings.Name     = "cmbSettings";
     this.cmbSettings.Size     = new System.Drawing.Size(56, 24);
     this.cmbSettings.TabIndex = 35;
     this.cmbSettings.Text     = "Settings";
     this.cmbSettings.UseVisualStyleBackColor = false;
     this.cmbSettings.Click += new System.EventHandler(this.cmbSettings_Click);
     //
     // frmBeatPad
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(280, 256);
     this.Controls.Add(this.panelPopUp);
     this.Controls.Add(this.beatPadScroll);
     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       = "frmBeatPad";
     this.Text       = "Beat Pad";
     this.Click     += new System.EventHandler(this.frmBeatPad_Click);
     this.KeyDown   += new System.Windows.Forms.KeyEventHandler(this.frmBeatPad_KeyDown);
     this.Load      += new System.EventHandler(this.frmBeatPad_Load);
     this.panelPopUp.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 55
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.picBoxZoom       = new System.Windows.Forms.PictureBox();
     this.OuterPanel       = new System.Windows.Forms.Panel();
     this.hScrollBar1      = new System.Windows.Forms.HScrollBar();
     this.vScrollBar1      = new System.Windows.Forms.VScrollBar();
     this.picBoxMain       = new System.Windows.Forms.PictureBox();
     this.textBoxMainPanel = new System.Windows.Forms.Panel();
     this.txtBoxMain       = new System.Windows.Forms.RichTextBox();
     ((System.ComponentModel.ISupportInitialize)(this.picBoxZoom)).BeginInit();
     this.OuterPanel.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.picBoxMain)).BeginInit();
     this.textBoxMainPanel.SuspendLayout();
     this.SuspendLayout();
     //
     // picBoxZoom
     //
     this.picBoxZoom.Location = new System.Drawing.Point(72, 136);
     this.picBoxZoom.Margin   = new System.Windows.Forms.Padding(0);
     this.picBoxZoom.Name     = "picBoxZoom";
     this.picBoxZoom.Size     = new System.Drawing.Size(100, 100);
     this.picBoxZoom.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.picBoxZoom.TabIndex = 1;
     this.picBoxZoom.TabStop  = false;
     this.picBoxZoom.Visible  = false;
     //
     // OuterPanel
     //
     this.OuterPanel.Controls.Add(this.hScrollBar1);
     this.OuterPanel.Controls.Add(this.vScrollBar1);
     this.OuterPanel.Controls.Add(this.picBoxMain);
     this.OuterPanel.Controls.Add(this.textBoxMainPanel);
     this.OuterPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.OuterPanel.Location = new System.Drawing.Point(0, 0);
     this.OuterPanel.Name     = "OuterPanel";
     this.OuterPanel.Size     = new System.Drawing.Size(416, 328);
     this.OuterPanel.TabIndex = 5;
     //
     // hScrollBar1
     //
     this.hScrollBar1.Location = new System.Drawing.Point(280, 168);
     this.hScrollBar1.Name     = "hScrollBar1";
     this.hScrollBar1.Size     = new System.Drawing.Size(80, 17);
     this.hScrollBar1.TabIndex = 6;
     this.hScrollBar1.Visible  = false;
     //
     // vScrollBar1
     //
     this.vScrollBar1.Location = new System.Drawing.Point(264, 240);
     this.vScrollBar1.Name     = "vScrollBar1";
     this.vScrollBar1.Size     = new System.Drawing.Size(17, 80);
     this.vScrollBar1.TabIndex = 5;
     this.vScrollBar1.Visible  = false;
     //
     // picBoxMain
     //
     this.picBoxMain.Location   = new System.Drawing.Point(0, 0);
     this.picBoxMain.Name       = "picBoxMain";
     this.picBoxMain.Size       = new System.Drawing.Size(150, 140);
     this.picBoxMain.TabIndex   = 3;
     this.picBoxMain.TabStop    = false;
     this.picBoxMain.MouseDown += new System.Windows.Forms.MouseEventHandler(this.picBoxMain_MouseDown);
     this.picBoxMain.MouseMove += new System.Windows.Forms.MouseEventHandler(this.picBoxMain_MouseMove);
     this.picBoxMain.Paint     += new System.Windows.Forms.PaintEventHandler(this.picBoxMain_Paint);
     this.picBoxMain.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.picBoxMain_MouseUp);
     //
     // textBoxMainPanel
     //
     this.textBoxMainPanel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(233)))), ((int)(((byte)(240)))));
     this.textBoxMainPanel.Controls.Add(this.txtBoxMain);
     this.textBoxMainPanel.Dock     = System.Windows.Forms.DockStyle.Fill;
     this.textBoxMainPanel.Location = new System.Drawing.Point(0, 0);
     this.textBoxMainPanel.Name     = "textBoxMainPanel";
     this.textBoxMainPanel.Padding  = new System.Windows.Forms.Padding(5);
     this.textBoxMainPanel.Size     = new System.Drawing.Size(416, 328);
     this.textBoxMainPanel.TabIndex = 7;
     this.textBoxMainPanel.Visible  = false;
     //
     // txtBoxMain
     //
     this.txtBoxMain.BackColor  = System.Drawing.SystemColors.Window;
     this.txtBoxMain.Dock       = System.Windows.Forms.DockStyle.Fill;
     this.txtBoxMain.Location   = new System.Drawing.Point(5, 5);
     this.txtBoxMain.Name       = "txtBoxMain";
     this.txtBoxMain.ReadOnly   = true;
     this.txtBoxMain.ScrollBars = System.Windows.Forms.RichTextBoxScrollBars.Vertical;
     this.txtBoxMain.Size       = new System.Drawing.Size(406, 318);
     this.txtBoxMain.TabIndex   = 4;
     this.txtBoxMain.Text       = "";
     //
     // Viewer
     //
     this.BackColor = System.Drawing.SystemColors.Control;
     this.Controls.Add(this.picBoxZoom);
     this.Controls.Add(this.OuterPanel);
     this.Name   = "Viewer";
     this.Size   = new System.Drawing.Size(416, 328);
     this.Paint += new System.Windows.Forms.PaintEventHandler(this.Viewer_Paint);
     ((System.ComponentModel.ISupportInitialize)(this.picBoxZoom)).EndInit();
     this.OuterPanel.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.picBoxMain)).EndInit();
     this.textBoxMainPanel.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 56
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo1 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo2 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.gridControl1 = new Syncfusion.Windows.Forms.Grid.GridControl();
     this.vScrollBar1  = new System.Windows.Forms.VScrollBar();
     this.hScrollBar1  = new System.Windows.Forms.HScrollBar();
     this.panel1       = new System.Windows.Forms.Panel();
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // gridControl1
     //
     this.gridControl1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.gridControl1.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.gridControl1.BorderStyle            = System.Windows.Forms.BorderStyle.FixedSingle;
     this.gridControl1.DefaultGridBorderStyle = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.gridControl1.DefaultRowHeight       = 20;
     this.gridControl1.Font                 = new System.Drawing.Font("Segoe UI", 9F);
     gridCellInfo1.Col                      = -1;
     gridCellInfo1.Row                      = -1;
     gridCellInfo1.StyleInfo.Font.Bold      = false;
     gridCellInfo1.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo1.StyleInfo.Font.Italic    = false;
     gridCellInfo1.StyleInfo.Font.Size      = 9F;
     gridCellInfo1.StyleInfo.Font.Strikeout = false;
     gridCellInfo1.StyleInfo.Font.Underline = false;
     gridCellInfo1.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo2.Col                      = -1;
     gridCellInfo2.Row                      = -1;
     gridCellInfo2.StyleInfo.Borders.Bottom = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo2.StyleInfo.Borders.Right  = new Syncfusion.Windows.Forms.Grid.GridBorder(Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid, System.Drawing.Color.FromArgb(((int)(((byte)(234)))), ((int)(((byte)(234)))), ((int)(((byte)(234))))), Syncfusion.Windows.Forms.Grid.GridBorderWeight.ExtraThin);
     gridCellInfo2.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo2.StyleInfo.Interior       = new Syncfusion.Drawing.BrushInfo(System.Drawing.Color.White);
     gridCellInfo2.StyleInfo.TextColor      = System.Drawing.Color.FromArgb(((int)(((byte)(138)))), ((int)(((byte)(138)))), ((int)(((byte)(138)))));
     this.gridControl1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo1,
         gridCellInfo2
     });
     this.gridControl1.ThemesEnabled        = true;
     this.gridControl1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.gridControl1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.gridControl1.HorizontalScrollTips = true;
     this.gridControl1.HorizontalThumbTrack = true;
     this.gridControl1.HScrollBehavior      = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Shared;
     this.gridControl1.Location             = new System.Drawing.Point(25, 12);
     this.gridControl1.MetroScrollBars      = true;
     this.gridControl1.Name = "gridControl1";
     this.gridControl1.Properties.ForceImmediateRepaint = false;
     this.gridControl1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(212)))), ((int)(((byte)(212)))), ((int)(((byte)(212)))));
     this.gridControl1.Properties.MarkColHeader         = false;
     this.gridControl1.Properties.MarkRowHeader         = false;
     this.gridControl1.RowCount = 40;
     this.gridControl1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 29)
     });
     this.gridControl1.Size               = new System.Drawing.Size(526, 361);
     this.gridControl1.SmartSizeBox       = false;
     this.gridControl1.TabIndex           = 0;
     this.gridControl1.Text               = "gridControl1";
     this.gridControl1.VerticalScrollTips = true;
     this.gridControl1.VerticalThumbTrack = true;
     this.gridControl1.VScrollBehavior    = Syncfusion.Windows.Forms.Grid.GridScrollbarMode.Shared;
     //
     // vScrollBar1
     //
     this.vScrollBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.vScrollBar1.Location = new System.Drawing.Point(565, 65);
     this.vScrollBar1.Name     = "vScrollBar1";
     this.vScrollBar1.Size     = new System.Drawing.Size(16, 250);
     this.vScrollBar1.TabIndex = 1;
     //
     // hScrollBar1
     //
     this.hScrollBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.hScrollBar1.Location = new System.Drawing.Point(69, 389);
     this.hScrollBar1.Name     = "hScrollBar1";
     this.hScrollBar1.Size     = new System.Drawing.Size(408, 16);
     this.hScrollBar1.TabIndex = 2;
     //
     // panel1
     //
     this.panel1.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.panel1.Controls.Add(this.vScrollBar1);
     this.panel1.Controls.Add(this.hScrollBar1);
     this.panel1.Controls.Add(this.gridControl1);
     this.panel1.Location = new System.Drawing.Point(0, 0);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(601, 431);
     this.panel1.TabIndex = 3;
     //
     // Form1
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.ClientSize          = new System.Drawing.Size(601, 433);
     this.Controls.Add(this.panel1);
     this.MinimumSize = new System.Drawing.Size(480, 410);
     this.Name        = "Form1";
     this.Text        = "Scrollbar";
     ((System.ComponentModel.ISupportInitialize)(this.gridControl1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.ResumeLayout(false);
 }
Exemplo n.º 57
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo1 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo2 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     Syncfusion.Windows.Forms.Grid.GridCellInfo gridCellInfo3 = new Syncfusion.Windows.Forms.Grid.GridCellInfo();
     this.grid1       = new Syncfusion.Samples.GridPad.SampleGrid();
     this.hScrollBar1 = new System.Windows.Forms.HScrollBar();
     this.vScrollBar1 = new System.Windows.Forms.VScrollBar();
     ((System.ComponentModel.ISupportInitialize)(this.grid1)).BeginInit();
     this.SuspendLayout();
     //
     // grid1
     //
     this.grid1.AllowDragSelectedCols    = true;
     this.grid1.AllowDragSelectedRows    = true;
     this.grid1.AlphaBlendSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(94)))), ((int)(((byte)(171)))), ((int)(((byte)(222)))));
     this.grid1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.grid1.BackColor               = System.Drawing.Color.White;
     this.grid1.ColCount                = 0;
     this.grid1.DefaultColWidth         = 0;
     this.grid1.DefaultGridBorderStyle  = Syncfusion.Windows.Forms.Grid.GridBorderStyle.Solid;
     this.grid1.DefaultRowHeight        = 20;
     this.grid1.ExcelLikeCurrentCell    = true;
     this.grid1.ExcelLikeSelectionFrame = true;
     this.grid1.Font      = new System.Drawing.Font("Segoe UI", 9F);
     this.grid1.ForeColor = System.Drawing.SystemColors.WindowText;
     gridCellInfo1.Col    = -1;
     gridCellInfo1.Row    = -1;
     gridCellInfo1.StyleInfo.Font.Bold      = false;
     gridCellInfo1.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo1.StyleInfo.Font.Italic    = false;
     gridCellInfo1.StyleInfo.Font.Size      = 8.25F;
     gridCellInfo1.StyleInfo.Font.Strikeout = false;
     gridCellInfo1.StyleInfo.Font.Underline = false;
     gridCellInfo1.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo1.StyleInfo.TextColor      = System.Drawing.Color.MidnightBlue;
     gridCellInfo2.Col = -1;
     gridCellInfo2.Row = -1;
     gridCellInfo2.StyleInfo.Font.Bold      = false;
     gridCellInfo2.StyleInfo.Font.Facename  = "Segoe UI";
     gridCellInfo2.StyleInfo.Font.Italic    = false;
     gridCellInfo2.StyleInfo.Font.Size      = 8.25F;
     gridCellInfo2.StyleInfo.Font.Strikeout = false;
     gridCellInfo2.StyleInfo.Font.Underline = false;
     gridCellInfo2.StyleInfo.Font.Unit      = System.Drawing.GraphicsUnit.Point;
     gridCellInfo2.StyleInfo.TextColor      = System.Drawing.Color.MidnightBlue;
     gridCellInfo3.Col = -1;
     gridCellInfo3.Row = -1;
     gridCellInfo3.StyleInfo.Font.Facename = "Segoe UI";
     gridCellInfo3.StyleInfo.TextColor     = System.Drawing.Color.MidnightBlue;
     this.grid1.GridCells.AddRange(new Syncfusion.Windows.Forms.Grid.GridCellInfo[] {
         gridCellInfo1,
         gridCellInfo2,
         gridCellInfo3
     });
     this.grid1.GridOfficeScrollBars = Syncfusion.Windows.Forms.OfficeScrollBars.Metro;
     this.grid1.GridVisualStyles     = Syncfusion.Windows.Forms.GridVisualStyles.Metro;
     this.grid1.HorizontalScrollTips = true;
     this.grid1.HorizontalThumbTrack = true;
     this.grid1.Location             = new System.Drawing.Point(20, 25);
     this.grid1.MetroScrollBars      = true;
     this.grid1.Name = "grid1";
     this.grid1.Properties.ForceImmediateRepaint = false;
     this.grid1.Properties.GridLineColor         = System.Drawing.Color.FromArgb(((int)(((byte)(208)))), ((int)(((byte)(215)))), ((int)(((byte)(229)))));
     this.grid1.Properties.MarkColHeader         = false;
     this.grid1.Properties.MarkRowHeader         = false;
     this.grid1.RowCount = 0;
     this.grid1.RowHeightEntries.AddRange(new Syncfusion.Windows.Forms.Grid.GridRowHeight[] {
         new Syncfusion.Windows.Forms.Grid.GridRowHeight(0, 29)
     });
     this.grid1.Size               = new System.Drawing.Size(932, 590);
     this.grid1.SmartSizeBox       = false;
     this.grid1.TabIndex           = 0;
     this.grid1.Text               = "grid1";
     this.grid1.ThemesEnabled      = true;
     this.grid1.VerticalScrollTips = true;
     //
     // hScrollBar1
     //
     this.hScrollBar1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                     | System.Windows.Forms.AnchorStyles.Right)));
     this.hScrollBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(172)))), ((int)(((byte)(38)))));
     this.hScrollBar1.Location  = new System.Drawing.Point(20, 618);
     this.hScrollBar1.Name      = "hScrollBar1";
     this.hScrollBar1.Size      = new System.Drawing.Size(932, 15);
     this.hScrollBar1.TabIndex  = 1;
     //
     // vScrollBar1
     //
     this.vScrollBar1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(172)))), ((int)(((byte)(38)))));
     this.vScrollBar1.Location  = new System.Drawing.Point(955, 25);
     this.vScrollBar1.Name      = "vScrollBar1";
     this.vScrollBar1.Size      = new System.Drawing.Size(16, 608);
     this.vScrollBar1.TabIndex  = 2;
     //
     // GridDialog
     //
     this.ClientSize = new System.Drawing.Size(1012, 656);
     this.Controls.Add(this.vScrollBar1);
     this.Controls.Add(this.hScrollBar1);
     this.Controls.Add(this.grid1);
     this.Name            = "GridDialog";
     this.Text            = "Grid Dialog";
     this.TransparencyKey = System.Drawing.SystemColors.Desktop;
     ((System.ComponentModel.ISupportInitialize)(this.grid1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 58
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ScrollBarCtl));
     this.label11      = new System.Windows.Forms.Label();
     this.label10      = new System.Windows.Forms.Label();
     this.VScrollBar1  = new System.Windows.Forms.VScrollBar();
     this.label12      = new System.Windows.Forms.Label();
     this.comboBox1    = new System.Windows.Forms.ComboBox();
     this.HScrollBar1  = new System.Windows.Forms.HScrollBar();
     this.groupBox1    = new System.Windows.Forms.GroupBox();
     this.labMinValMax = new System.Windows.Forms.Label();
     this.label7       = new System.Windows.Forms.Label();
     this.label6       = new System.Windows.Forms.Label();
     this.comboBox2    = new System.Windows.Forms.ComboBox();
     this.pictureBox1  = new System.Windows.Forms.PictureBox();
     this.label4       = new System.Windows.Forms.Label();
     this.label5       = new System.Windows.Forms.Label();
     this.label8       = new System.Windows.Forms.Label();
     this.label9       = new System.Windows.Forms.Label();
     this.label2       = new System.Windows.Forms.Label();
     this.label3       = new System.Windows.Forms.Label();
     this.label1       = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.SuspendLayout();
     //
     // label11
     //
     this.label11.Location = new System.Drawing.Point(144, 112);
     this.label11.Name     = "label11";
     this.label11.Size     = new System.Drawing.Size(72, 16);
     this.label11.TabIndex = 4;
     this.label11.Text     = "Label11";
     //
     // label10
     //
     this.label10.Location = new System.Drawing.Point(216, 168);
     this.label10.Name     = "label10";
     this.label10.Size     = new System.Drawing.Size(24, 16);
     this.label10.TabIndex = 13;
     this.label10.Text     = "100";
     //
     // VScrollBar1
     //
     this.VScrollBar1.Location = new System.Drawing.Point(200, 24);
     this.VScrollBar1.Minimum  = -100;
     this.VScrollBar1.Name     = "VScrollBar1";
     this.VScrollBar1.Size     = new System.Drawing.Size(16, 152);
     this.VScrollBar1.TabIndex = 2;
     this.VScrollBar1.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar1_Scroll);
     //
     // label12
     //
     this.label12.Location = new System.Drawing.Point(144, 136);
     this.label12.Name     = "label12";
     this.label12.Size     = new System.Drawing.Size(72, 16);
     this.label12.TabIndex = 7;
     this.label12.Text     = "label12";
     //
     // comboBox1
     //
     this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox1.Items.AddRange(new object[] {
         "20",
         "10",
         "5"
     });
     this.comboBox1.Location              = new System.Drawing.Point(136, 24);
     this.comboBox1.Name                  = "comboBox1";
     this.comboBox1.Size                  = new System.Drawing.Size(96, 21);
     this.comboBox1.TabIndex              = 0;
     this.comboBox1.SelectedIndexChanged += new System.EventHandler(this.comboBox1_SelectedIndexChanged);
     //
     // HScrollBar1
     //
     this.HScrollBar1.Location = new System.Drawing.Point(16, 176);
     this.HScrollBar1.Minimum  = -100;
     this.HScrollBar1.Name     = "HScrollBar1";
     this.HScrollBar1.Size     = new System.Drawing.Size(184, 16);
     this.HScrollBar1.TabIndex = 3;
     this.HScrollBar1.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.HScrollBar1_Scroll);
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.labMinValMax);
     this.groupBox1.Controls.Add(this.label7);
     this.groupBox1.Controls.Add(this.label6);
     this.groupBox1.Controls.Add(this.comboBox2);
     this.groupBox1.Controls.Add(this.comboBox1);
     this.groupBox1.Controls.Add(this.label11);
     this.groupBox1.Controls.Add(this.label12);
     this.groupBox1.Location = new System.Drawing.Point(264, 16);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(248, 264);
     this.groupBox1.TabIndex = 5;
     this.groupBox1.TabStop  = false;
     this.groupBox1.Text     = "HScrollBar and VScrollBar";
     this.groupBox1.Enter   += new System.EventHandler(this.groupBox1_Enter);
     //
     // labMinValMax
     //
     this.labMinValMax.Location = new System.Drawing.Point(24, 176);
     this.labMinValMax.Name     = "labMinValMax";
     this.labMinValMax.Size     = new System.Drawing.Size(192, 16);
     this.labMinValMax.TabIndex = 8;
     this.labMinValMax.Text     = "labMinValMax";
     //
     // label7
     //
     this.label7.Location = new System.Drawing.Point(16, 136);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(92, 16);
     this.label7.TabIndex = 2;
     this.label7.Text     = "VScrollBar.value";
     //
     // label6
     //
     this.label6.Location = new System.Drawing.Point(16, 112);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(92, 16);
     this.label6.TabIndex = 3;
     this.label6.Text     = "HScrollBar.value";
     //
     // comboBox2
     //
     this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.comboBox2.Items.AddRange(new object[] {
         "5",
         "2",
         "1"
     });
     this.comboBox2.Location              = new System.Drawing.Point(136, 48);
     this.comboBox2.Name                  = "comboBox2";
     this.comboBox2.Size                  = new System.Drawing.Size(96, 21);
     this.comboBox2.TabIndex              = 1;
     this.comboBox2.SelectedIndexChanged += new System.EventHandler(this.comboBox2_SelectedIndexChanged);
     //
     // pictureBox1
     //
     this.pictureBox1.Cursor     = System.Windows.Forms.Cursors.Default;
     this.pictureBox1.Image      = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
     this.pictureBox1.Location   = new System.Drawing.Point(64, 56);
     this.pictureBox1.Name       = "pictureBox1";
     this.pictureBox1.Size       = new System.Drawing.Size(96, 96);
     this.pictureBox1.SizeMode   = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
     this.pictureBox1.TabIndex   = 6;
     this.pictureBox1.TabStop    = false;
     this.pictureBox1.Text       = "pictureBox1";
     this.pictureBox1.MouseMove += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseMove);
     this.pictureBox1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseDown);
     this.pictureBox1.MouseUp   += new System.Windows.Forms.MouseEventHandler(this.pictureBox1_MouseUp);
     //
     // label4
     //
     this.label4.Location = new System.Drawing.Point(184, 192);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(24, 16);
     this.label4.TabIndex = 9;
     this.label4.Text     = "100";
     //
     // label5
     //
     this.label5.Location = new System.Drawing.Point(112, 200);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(32, 16);
     this.label5.TabIndex = 10;
     this.label5.Text     = "0";
     //
     // label8
     //
     this.label8.Location = new System.Drawing.Point(224, 24);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(32, 16);
     this.label8.TabIndex = 11;
     this.label8.Text     = "-100";
     //
     // label9
     //
     this.label9.Location = new System.Drawing.Point(224, 96);
     this.label9.Name     = "label9";
     this.label9.Size     = new System.Drawing.Size(16, 16);
     this.label9.TabIndex = 12;
     this.label9.Text     = "0";
     //
     // label2
     //
     this.label2.Location = new System.Drawing.Point(280, 64);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(92, 16);
     this.label2.TabIndex = 1;
     this.label2.Text     = "SmallChange";
     //
     // label3
     //
     this.label3.Location = new System.Drawing.Point(8, 200);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(32, 16);
     this.label3.TabIndex = 8;
     this.label3.Text     = "-100";
     //
     // label1
     //
     this.label1.Location = new System.Drawing.Point(280, 40);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(92, 72);
     this.label1.TabIndex = 0;
     this.label1.Text     = "LargeChange";
     //
     // ScrollBarCtl
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(518, 296);
     this.Controls.Add(this.label10);
     this.Controls.Add(this.label9);
     this.Controls.Add(this.label8);
     this.Controls.Add(this.label5);
     this.Controls.Add(this.label4);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.HScrollBar1);
     this.Controls.Add(this.VScrollBar1);
     this.Controls.Add(this.pictureBox1);
     this.Name = "ScrollBarCtl";
     this.Text = "VScrollBar";
     this.groupBox1.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.ResumeLayout(false);
 }
Exemplo n.º 59
0
 // THIS METHOD IS MAINTAINED BY THE FORM DESIGNER
 // DO NOT EDIT IT MANUALLY! YOUR CHANGES ARE LIKELY TO BE LOST
 void InitializeComponent()
 {
     this.lblDescription8 = new System.Windows.Forms.Label();
     this.lblDescription6 = new System.Windows.Forms.Label();
     this.lblDescription7 = new System.Windows.Forms.Label();
     this.lblDescription4 = new System.Windows.Forms.Label();
     this.lblDescription5 = new System.Windows.Forms.Label();
     this.lblDescription2 = new System.Windows.Forms.Label();
     this.lblDescription3 = new System.Windows.Forms.Label();
     this.vScrollBar1     = new System.Windows.Forms.VScrollBar();
     this.lblDescription1 = new System.Windows.Forms.Label();
     this.vScrollBar3     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar4     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar5     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar6     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar7     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar8     = new System.Windows.Forms.VScrollBar();
     this.vScrollBar2     = new System.Windows.Forms.VScrollBar();
     this.lblValue3       = new System.Windows.Forms.Label();
     this.lblValue7       = new System.Windows.Forms.Label();
     this.lblValue6       = new System.Windows.Forms.Label();
     this.lblValue5       = new System.Windows.Forms.Label();
     this.lblValue4       = new System.Windows.Forms.Label();
     this.lblValue8       = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // lblDescription8
     //
     this.lblDescription8.Location = new System.Drawing.Point(144, 144);
     this.lblDescription8.Name     = "lblDescription8";
     this.lblDescription8.Size     = new System.Drawing.Size(264, 16);
     this.lblDescription8.TabIndex = 14;
     this.lblDescription8.Text     = "A normal VScrollBar - Anchor: All";
     //
     // lblDescription6
     //
     this.lblDescription6.Location = new System.Drawing.Point(96, 96);
     this.lblDescription6.Name     = "lblDescription6";
     this.lblDescription6.Size     = new System.Drawing.Size(312, 16);
     this.lblDescription6.TabIndex = 11;
     this.lblDescription6.Text     = "A normal VScrollBar - SmallChange: 5 ; LargeChange: 20";
     //
     // lblDescription7
     //
     this.lblDescription7.Location = new System.Drawing.Point(120, 120);
     this.lblDescription7.Name     = "lblDescription7";
     this.lblDescription7.Size     = new System.Drawing.Size(288, 16);
     this.lblDescription7.TabIndex = 13;
     this.lblDescription7.Text     = "A normal VScrollBar - Enabled: false";
     //
     // lblDescription4
     //
     this.lblDescription4.Location = new System.Drawing.Point(48, 48);
     this.lblDescription4.Name     = "lblDescription4";
     this.lblDescription4.Size     = new System.Drawing.Size(360, 16);
     this.lblDescription4.TabIndex = 7;
     this.lblDescription4.Text     = "A normal VSrollBar - Maximum: 900 - Minimum: 200";
     //
     // lblDescription5
     //
     this.lblDescription5.Location = new System.Drawing.Point(72, 72);
     this.lblDescription5.Name     = "lblDescription5";
     this.lblDescription5.Size     = new System.Drawing.Size(336, 16);
     this.lblDescription5.TabIndex = 9;
     this.lblDescription5.Text     = "A normal VScrollBar - Value: 50";
     //
     // lblDescription2
     //
     this.lblDescription2.Dock      = System.Windows.Forms.DockStyle.Bottom;
     this.lblDescription2.Location  = new System.Drawing.Point(16, 389);
     this.lblDescription2.Name      = "lblDescription2";
     this.lblDescription2.Size      = new System.Drawing.Size(504, 16);
     this.lblDescription2.TabIndex  = 3;
     this.lblDescription2.Text      = "A normal VScrollBar - Dock: Right";
     this.lblDescription2.TextAlign = System.Drawing.ContentAlignment.BottomRight;
     //
     // lblDescription3
     //
     this.lblDescription3.Location = new System.Drawing.Point(24, 24);
     this.lblDescription3.Name     = "lblDescription3";
     this.lblDescription3.Size     = new System.Drawing.Size(384, 16);
     this.lblDescription3.TabIndex = 5;
     this.lblDescription3.Text     = "A normal VScrollBar";
     //
     // vScrollBar1
     //
     this.vScrollBar1.Dock     = System.Windows.Forms.DockStyle.Left;
     this.vScrollBar1.Location = new System.Drawing.Point(0, 0);
     this.vScrollBar1.Name     = "vScrollBar1";
     this.vScrollBar1.Size     = new System.Drawing.Size(16, 405);
     this.vScrollBar1.TabIndex = 0;
     //
     // lblDescription1
     //
     this.lblDescription1.Dock     = System.Windows.Forms.DockStyle.Top;
     this.lblDescription1.Location = new System.Drawing.Point(16, 0);
     this.lblDescription1.Name     = "lblDescription1";
     this.lblDescription1.Size     = new System.Drawing.Size(504, 16);
     this.lblDescription1.TabIndex = 2;
     this.lblDescription1.Text     = "A normal VScrollBar - Dock: Left";
     //
     // vScrollBar3
     //
     this.vScrollBar3.Location = new System.Drawing.Point(24, 40);
     this.vScrollBar3.Name     = "vScrollBar3";
     this.vScrollBar3.Size     = new System.Drawing.Size(16, 344);
     this.vScrollBar3.TabIndex = 4;
     this.vScrollBar3.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar3Scroll);
     //
     // vScrollBar4
     //
     this.vScrollBar4.Location = new System.Drawing.Point(48, 64);
     this.vScrollBar4.Maximum  = 900;
     this.vScrollBar4.Minimum  = 200;
     this.vScrollBar4.Name     = "vScrollBar4";
     this.vScrollBar4.Size     = new System.Drawing.Size(16, 320);
     this.vScrollBar4.TabIndex = 6;
     this.vScrollBar4.Value    = 200;
     this.vScrollBar4.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar4Scroll);
     //
     // vScrollBar5
     //
     this.vScrollBar5.Location = new System.Drawing.Point(72, 88);
     this.vScrollBar5.Name     = "vScrollBar5";
     this.vScrollBar5.Size     = new System.Drawing.Size(16, 296);
     this.vScrollBar5.TabIndex = 8;
     this.vScrollBar5.Value    = 50;
     this.vScrollBar5.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar5Scroll);
     //
     // vScrollBar6
     //
     this.vScrollBar6.LargeChange = 20;
     this.vScrollBar6.Location    = new System.Drawing.Point(96, 112);
     this.vScrollBar6.Name        = "vScrollBar6";
     this.vScrollBar6.Size        = new System.Drawing.Size(16, 272);
     this.vScrollBar6.SmallChange = 5;
     this.vScrollBar6.TabIndex    = 10;
     this.vScrollBar6.Scroll     += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar6Scroll);
     //
     // vScrollBar7
     //
     this.vScrollBar7.Enabled  = false;
     this.vScrollBar7.Location = new System.Drawing.Point(120, 136);
     this.vScrollBar7.Name     = "vScrollBar7";
     this.vScrollBar7.Size     = new System.Drawing.Size(16, 248);
     this.vScrollBar7.TabIndex = 12;
     this.vScrollBar7.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar7Scroll);
     //
     // vScrollBar8
     //
     this.vScrollBar8.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.vScrollBar8.Location = new System.Drawing.Point(144, 160);
     this.vScrollBar8.Name     = "vScrollBar8";
     this.vScrollBar8.Size     = new System.Drawing.Size(16, 224);
     this.vScrollBar8.TabIndex = 15;
     this.vScrollBar8.Scroll  += new System.Windows.Forms.ScrollEventHandler(this.VScrollBar8Scroll);
     //
     // vScrollBar2
     //
     this.vScrollBar2.Dock     = System.Windows.Forms.DockStyle.Right;
     this.vScrollBar2.Location = new System.Drawing.Point(520, 0);
     this.vScrollBar2.Name     = "vScrollBar2";
     this.vScrollBar2.Size     = new System.Drawing.Size(16, 405);
     this.vScrollBar2.TabIndex = 1;
     //
     // lblValue3
     //
     this.lblValue3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue3.Location    = new System.Drawing.Point(408, 24);
     this.lblValue3.Name        = "lblValue3";
     this.lblValue3.Size        = new System.Drawing.Size(104, 16);
     this.lblValue3.TabIndex    = 16;
     this.lblValue3.Text        = "Value: 0";
     //
     // lblValue7
     //
     this.lblValue7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue7.Location    = new System.Drawing.Point(408, 120);
     this.lblValue7.Name        = "lblValue7";
     this.lblValue7.Size        = new System.Drawing.Size(104, 16);
     this.lblValue7.TabIndex    = 20;
     this.lblValue7.Text        = "Value: 0";
     //
     // lblValue6
     //
     this.lblValue6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue6.Location    = new System.Drawing.Point(408, 96);
     this.lblValue6.Name        = "lblValue6";
     this.lblValue6.Size        = new System.Drawing.Size(104, 16);
     this.lblValue6.TabIndex    = 19;
     this.lblValue6.Text        = "Value: 0";
     //
     // lblValue5
     //
     this.lblValue5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue5.Location    = new System.Drawing.Point(408, 72);
     this.lblValue5.Name        = "lblValue5";
     this.lblValue5.Size        = new System.Drawing.Size(104, 16);
     this.lblValue5.TabIndex    = 18;
     this.lblValue5.Text        = "Value: 50";
     //
     // lblValue4
     //
     this.lblValue4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue4.Location    = new System.Drawing.Point(408, 48);
     this.lblValue4.Name        = "lblValue4";
     this.lblValue4.Size        = new System.Drawing.Size(104, 16);
     this.lblValue4.TabIndex    = 17;
     this.lblValue4.Text        = "Value: 200";
     //
     // lblValue8
     //
     this.lblValue8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.lblValue8.Location    = new System.Drawing.Point(408, 144);
     this.lblValue8.Name        = "lblValue8";
     this.lblValue8.Size        = new System.Drawing.Size(104, 16);
     this.lblValue8.TabIndex    = 21;
     this.lblValue8.Text        = "Value: 0";
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(536, 405);
     this.Controls.Add(this.lblValue8);
     this.Controls.Add(this.lblValue7);
     this.Controls.Add(this.lblValue6);
     this.Controls.Add(this.lblValue5);
     this.Controls.Add(this.lblValue4);
     this.Controls.Add(this.lblValue3);
     this.Controls.Add(this.vScrollBar8);
     this.Controls.Add(this.lblDescription8);
     this.Controls.Add(this.lblDescription7);
     this.Controls.Add(this.vScrollBar7);
     this.Controls.Add(this.lblDescription6);
     this.Controls.Add(this.vScrollBar6);
     this.Controls.Add(this.lblDescription5);
     this.Controls.Add(this.vScrollBar5);
     this.Controls.Add(this.lblDescription4);
     this.Controls.Add(this.vScrollBar4);
     this.Controls.Add(this.lblDescription3);
     this.Controls.Add(this.vScrollBar3);
     this.Controls.Add(this.lblDescription2);
     this.Controls.Add(this.lblDescription1);
     this.Controls.Add(this.vScrollBar2);
     this.Controls.Add(this.vScrollBar1);
     this.Name  = "MainForm";
     this.Text  = "swf-verticalscrollbar";
     this.Load += new System.EventHandler(this.MainFormLoad);
     this.ResumeLayout(false);
 }
Exemplo n.º 60
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.panelGrid      = new System.Windows.Forms.Panel();
     this.panelSubGrid   = new System.Windows.Forms.Panel();
     this.panelHeaders   = new System.Windows.Forms.Panel();
     this.columnHeaders1 = new Endogine.Editors.ColumnHeadersX();
     this.vScrollBar1    = new System.Windows.Forms.VScrollBar();
     this.hScrollBar1    = new System.Windows.Forms.HScrollBar();
     this.panelGrid.SuspendLayout();
     this.panelHeaders.SuspendLayout();
     this.SuspendLayout();
     //
     // panelGrid
     //
     this.panelGrid.Controls.Add(this.panelSubGrid);
     this.panelGrid.Location = new System.Drawing.Point(0, 17);
     this.panelGrid.Name     = "panelGrid";
     this.panelGrid.Size     = new System.Drawing.Size(120, 72);
     this.panelGrid.TabIndex = 0;
     //
     // panelSubGrid
     //
     this.panelSubGrid.Location = new System.Drawing.Point(0, 0);
     this.panelSubGrid.Name     = "panelSubGrid";
     this.panelSubGrid.Size     = new System.Drawing.Size(104, 48);
     this.panelSubGrid.TabIndex = 0;
     //
     // panelHeaders
     //
     this.panelHeaders.BackColor = System.Drawing.SystemColors.ControlDark;
     this.panelHeaders.Controls.Add(this.columnHeaders1);
     this.panelHeaders.Location = new System.Drawing.Point(0, 0);
     this.panelHeaders.Name     = "panelHeaders";
     this.panelHeaders.Size     = new System.Drawing.Size(120, 18);
     this.panelHeaders.TabIndex = 1;
     //
     // columnHeaders1
     //
     this.columnHeaders1.Location              = new System.Drawing.Point(0, 0);
     this.columnHeaders1.Name                  = "columnHeaders1";
     this.columnHeaders1.Size                  = new System.Drawing.Size(96, 16);
     this.columnHeaders1.TabIndex              = 4;
     this.columnHeaders1.ChangedColumnSorting += new Endogine.Editors.ColumnHeadersX.ChangedSortingDelegate(this.columnHeaders1_ChangedColumnSorting);
     this.columnHeaders1.ChangedColumnWidth   += new Endogine.Editors.ColumnHeadersX.ChangedSizeDelegate(this.columnHeaders1_ChangedColumnWidth);
     //
     // vScrollBar1
     //
     this.vScrollBar1.Location      = new System.Drawing.Point(120, 17);
     this.vScrollBar1.Name          = "vScrollBar1";
     this.vScrollBar1.Size          = new System.Drawing.Size(16, 72);
     this.vScrollBar1.TabIndex      = 3;
     this.vScrollBar1.ValueChanged += new System.EventHandler(this.vScrollBar1_ValueChanged);
     //
     // hScrollBar1
     //
     this.hScrollBar1.Location      = new System.Drawing.Point(0, 89);
     this.hScrollBar1.Name          = "hScrollBar1";
     this.hScrollBar1.Size          = new System.Drawing.Size(120, 16);
     this.hScrollBar1.TabIndex      = 2;
     this.hScrollBar1.ValueChanged += new System.EventHandler(this.hScrollBar1_ValueChanged);
     //
     // VersatileDataGrid
     //
     this.Controls.Add(this.vScrollBar1);
     this.Controls.Add(this.hScrollBar1);
     this.Controls.Add(this.panelHeaders);
     this.Controls.Add(this.panelGrid);
     this.Name    = "VersatileDataGrid";
     this.Size    = new System.Drawing.Size(136, 128);
     this.Resize += new System.EventHandler(this.VersatileDataGrid_Resize);
     this.Load   += new System.EventHandler(this.VersatileDataGrid_Load);
     this.panelGrid.ResumeLayout(false);
     this.panelHeaders.ResumeLayout(false);
     this.ResumeLayout(false);
 }