• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# Forms.HScrollBar类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中System.Windows.Forms.HScrollBar的典型用法代码示例。如果您正苦于以下问题:C# HScrollBar类的具体用法?C# HScrollBar怎么用?C# HScrollBar使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



HScrollBar类属于System.Windows.Forms命名空间,在下文中一共展示了HScrollBar类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MetroDataGridHelper

        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();
        }
开发者ID:flexboj,项目名称:winforms-modernui,代码行数:29,代码来源:MetroGrid.cs


示例2: SpreadsheetPanel

        /// <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;
        }
开发者ID:jiiehe,项目名称:cs3500,代码行数:33,代码来源:SpreadsheetPanel.cs


示例3: ResizeToRectangle

      override public void ResizeToRectangle(HScrollBar hBar)
      {
         hBar.LargeChange = m_Bounds.Width;
         hBar.Maximum = 1024;

         SetDisplayWindow(hBar.Value, 1024);
      }
开发者ID:Reeyaw,项目名称:xoscillo,代码行数:7,代码来源:GraphFFT.cs


示例4: Game1

        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);
        }
开发者ID:rjr5838,项目名称:Vegetable-Slayer,代码行数:25,代码来源:Game1.cs


示例5: PagePreview

        /// <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();
        }
开发者ID:Core2D,项目名称:PDFsharp,代码行数:37,代码来源:PagePreview.cs


示例6: TrackEditor

        public TrackEditor()
        {
            if (!DesignMode)
            {
                this.DoubleBuffered = true;
                this.PlaybackPosition = 0;

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

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

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

                this.Controls.Add(HScroll);

            }
        }
开发者ID:BGCX261,项目名称:ziggy-pro-editor-svn-to-git,代码行数:25,代码来源:TrackEditor.cs


示例7: DataGridViewSummary

        public DataGridViewSummary()
        {
            InitializeComponent();

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

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

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

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

            hScrollBar.Top += summaryControl.Bottom;
            hScrollBar.Minimum = 0;
            hScrollBar.Maximum = 0;
            hScrollBar.Value = 0;
        }
开发者ID:rymarrv,项目名称:Compas,代码行数:25,代码来源:DataGridViewSummary.cs


示例8: Sygnal

        public Sygnal(HScrollBar scrollBar, TrackBar zoomTrackBar, PictureBox pictureBoxSygnal, int dlugoscKanalu)
        {
            this.scrollBar = scrollBar;
            this.zoomTrackBar = zoomTrackBar;
            this.pictureBoxSygnal = pictureBoxSygnal;
            this.dlugoscKanalu = dlugoscKanalu;
            graphicsSygnal = Graphics.FromHwnd(pictureBoxSygnal.Handle);

            UstawMaksZoom();
            UstawMaksINowaWartoscScroll();
            dlugoscSygnalu = ObliczDlugoscSygnalu();
            iloscPikseliNaProbke = ObliczIloscPikseliNaProbke();
        }
开发者ID:sliwku,项目名称:falkowy,代码行数:13,代码来源:Sygnal.cs


示例9: AutoCompleteTagger

        public AutoCompleteTagger()
        {
            asKeyWords = new string[0];

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

              lbSuggest = new ListBox();
              lbSuggest.MouseUp += lbSuggest_MouseUp;
              lbSuggest.MouseMove += lbSuggest_MouseMove;
              lbSuggest.VisibleChanged += lbSuggest_VisibleChanged;
              lbSuggest.Hide();
        }
开发者ID:mirurururu,项目名称:Manga-Organizer,代码行数:15,代码来源:AutoCompleteTagger.cs


示例10: InitializeComponent

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);

}
开发者ID:myersBR,项目名称:My-FyiReporting,代码行数:48,代码来源:RdlViewer.Designer.cs


示例11: SimulationPanel

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

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

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

            Controls.Add(hscrollbar);
            Controls.Add(vscrollbar);
        }
开发者ID:afraca,项目名称:Traffic_Simulation,代码行数:17,代码来源:SimulationPanel.cs


示例12: ScrollbarAdapter

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

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

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

            m_hScrollBar = new HScrollBar();
            m_hScrollBar.Dock = DockStyle.Bottom;
            m_hScrollBar.ValueChanged += hScrollBar_ValueChanged;
        }
开发者ID:JanDeHud,项目名称:LevelEditor,代码行数:21,代码来源:ScrollbarAdapter.cs


示例13: MapController

        /**************************************************/
        /* constructors                                   */
        /**************************************************/
        public MapController()
        {
            c_hscroll = new HScrollBar();
            c_hscroll.ValueChanged += new EventHandler(c_hscroll_ValueChanged);

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

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

            Controls.Add(c_viewer);
            Controls.Add(c_hscroll);
            Controls.Add(c_vscroll);
        }
开发者ID:Bananattack,项目名称:verge3,代码行数:20,代码来源:MapController.cs


示例14: InitializeComponent

		/// <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);

		}
开发者ID:xuchuansheng,项目名称:GenXSource,代码行数:50,代码来源:NuGenTViewCtrl.cs


示例15: InitializeComponent

 private void InitializeComponent()
 {
     scrVertical = new VScrollBar();
     scrHorizontal = new HScrollBar();
     lblCorner = new Label();
     SuspendLayout();
     //
     // scrVertical
     //
     scrVertical.Anchor = (AnchorStyles.Top | AnchorStyles.Bottom)
                          | AnchorStyles.Right;
     scrVertical.Location = new Point(170, 0);
     scrVertical.Name = "scrVertical";
     scrVertical.Size = new Size(17, 411);
     scrVertical.TabIndex = 0;
     scrVertical.Scroll += scrVertical_Scroll;
     //
     // scrHorizontal
     //
     scrHorizontal.Anchor = (AnchorStyles.Bottom | AnchorStyles.Left)
                            | AnchorStyles.Right;
     scrHorizontal.Location = new Point(0, 411);
     scrHorizontal.Name = "scrHorizontal";
     scrHorizontal.Size = new Size(169, 17);
     scrHorizontal.TabIndex = 1;
     scrHorizontal.Scroll += scrHorizontal_Scroll;
     //
     // lblCorner
     //
     lblCorner.Anchor = AnchorStyles.Bottom | AnchorStyles.Right;
     lblCorner.Location = new Point(169, 411);
     lblCorner.AutoSize = false;
     lblCorner.Text = null;
     lblCorner.Size = new Size(18, 17);
     lblCorner.BackColor = SystemColors.Control;
     //
     // ScrollingControl
     //
     Controls.Add(scrHorizontal);
     Controls.Add(scrVertical);
     Controls.Add(lblCorner);
     Name = "ScrollingControl";
     Size = new Size(187, 428);
     ResumeLayout(false);
 }
开发者ID:DIVEROVIEDO,项目名称:DotSpatial,代码行数:45,代码来源:ScrollingControl.cs


示例16: MyEditor

        public MyEditor(Form1 parentForm, bool isReadOnly)
        {
            this.parentForm = parentForm;
            this.IsReadonly = isReadOnly;
            caret = new Caret(this);
            InitializeComponent();

            BackColor = Color.White;

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

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

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

            /*SetStyle(ControlStyles.SupportsTransparentBackColor |
                     ControlStyles.Opaque |
                     ControlStyles.UserPaint |
                     ControlStyles.AllPaintingInWmPaint |
                    ControlStyles.ResizeRedraw, true);*/
        }
开发者ID:cg-source,项目名称:GalaxyEditorPlusPlus,代码行数:44,代码来源:MyEditor.cs


示例17: InitializeComponent

 private void InitializeComponent()
 {
     this.components = new Container();
     this.scrollBar = new HScrollBar();
     this.SetStyle(ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.DoubleBuffer, true);
     this.UpdateStyles();
     this.ToolTip = new ToolTip(this.components);
     this.SuspendLayout();
     this.scrollBar.Dock = DockStyle.Bottom;
     this.scrollBar.TabIndex = 0;
     this.scrollBar.Scroll += OnScrollBarScroll;
     this.scrollBar.Minimum = 0;
     this.Controls.Add(this.scrollBar);
     this.MouseDown += OnChartMouseDown;
     this.MouseLeave += OnChartMouseLeave;
     this.MouseUp += OnChartMouseUp;
     this.MouseWheel += OnChartMouseWheel;
     this.ResumeLayout(false);
 }
开发者ID:fastquant,项目名称:fastquant.dll,代码行数:19,代码来源:Chart.WinForm.cs


示例18: GridView

        /// <summary>
        /// Constructor with column headers</summary>
        /// <param name="columnHeaders">Column headers</param>
        public GridView(ColumnHeaders columnHeaders)
        {
            m_selectedRows = new Selection<int>();
            m_selectedRows.Changed += selectedRows_Changed;

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

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

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

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

            SetPens();

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

            base.DoubleBuffered = true;

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

            // enable selection in the grid
            SelectionEnabed = true;

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

            // enable wrapping with the up and down arrow keys
            UpDownKeySelectionWrapEnabled = true;
        }
开发者ID:sbambach,项目名称:ATF,代码行数:46,代码来源:GridView.cs


示例19: Oscylogram

        public Oscylogram(RysunekSygnalu rysunekSygnalu, PlikWave plikWave, PictureBox pictureBoxRysunek, PictureBox pbSkalaDefX, PictureBox pbSkalaDefY, 
            TrackBar zoomTrackBar, HScrollBar scrollBar)
        {
            this.rysunekSygnalu = rysunekSygnalu;
            this.pictureBoxRysunek = pictureBoxRysunek;
            this.zoomTrackBar = zoomTrackBar;
            this.scrollBar = scrollBar;
            czestotliwoscProbkowania = plikWave.CzestotliwoscProbkowania;

            zoomTrackBar.Value = 0;
            UstawZoom();

            scrollBar.Value = 0;
            UstawMaxScroll();

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

            skalaLiniowa = new SkalaOscylogram(this, plikWave, pictureBoxRysunek, pbSkalaDefX, pbSkalaDefY);
        }
开发者ID:sliwku,项目名称:falkowy,代码行数:19,代码来源:Oscylogram.cs


示例20: Grid

       public Grid() : base ()
       {
         //SetStyle(ControlStyles.OptimizedDoubleBuffer, true); //the CellView is already dbl buffered
         SetStyle(ControlStyles.UserPaint, true);
         SetStyle(ControlStyles.AllPaintingInWmPaint, true); //no ERASE BACKGROUND
         
         SetStyle(ControlStyles.UserMouse, true);

         base.DoubleBuffered = true;
         
         UpdateStyles();
         
         m_Style = new Style(this, null);
         m_HeaderStyle = new Style(this, null);
         m_SelectedStyle = new Style(this, null);
         
         BuildDefaultStyle(m_Style);
         BuildDefaultHeaderStyle(m_HeaderStyle);
         BuildDefaultSelectedStyle(m_SelectedStyle);
         
        
                  
         m_CellView = new CellView() {   Parent = this , TabStop = false};
         
         
         m_HScrollBar = new HScrollBar() {   Parent = this, TabStop = false, Minimum=0, SmallChange=1, LargeChange =1  };
         m_HScrollBar.ValueChanged += m_HScrollBar_Scroll;
                                        
         m_VScrollBar = new VScrollBar() {   Parent = this, TabStop = false, Minimum=0, SmallChange=1   };                                          
         m_VScrollBar.ValueChanged += m_VScrollBar_Scroll;   
         
         m_DataSourceChangedNotificationTimer = new Timer();
         m_DataSourceChangedNotificationTimer.Interval = REBUILD_TIMEOUT_MS;
         m_DataSourceChangedNotificationTimer.Enabled = false;
         m_DataSourceChangedNotificationTimer.Tick += new EventHandler((o, e) =>
                                                       {
                                                        if (m_RepositioningColumn!=null || m_ResizingColumn!=null ) return;//while grid is being manipulated dont flush timer just yet
                                                        m_DataSourceChangedNotificationTimer.Stop(); 
                                                        notifyDataSourceChanged(m_DataSourceChangedNotificationRow);
                                                        m_DataSourceChangedNotificationRow = null; 
                                                       });
       }
开发者ID:kinpro,项目名称:nfx,代码行数:42,代码来源:Grid.cs



注:本文中的System.Windows.Forms.HScrollBar类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Forms.HelpEventArgs类代码示例发布时间:2022-05-26
下一篇:
C# Forms.GroupBox类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap