コード例 #1
0
ファイル: DataList.cs プロジェクト: modulexcite/ListControls
        //=====================================================================

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DataList));
            this.pnlRows = new EWSoftware.ListControls.RowPanel();
            this.btnFirst = new System.Windows.Forms.Button();
            this.ilButtons = new System.Windows.Forms.ImageList(this.components);
            this.btnPrev = new System.Windows.Forms.Button();
            this.btnNext = new System.Windows.Forms.Button();
            this.btnLast = new System.Windows.Forms.Button();
            this.btnAdd = new System.Windows.Forms.Button();
            this.txtRowNum = new EWSoftware.ListControls.NumericTextBox();
            this.lblRowCount = new System.Windows.Forms.Label();
            this.btnDelete = new System.Windows.Forms.Button();
            this.tmrRepeat = new System.Windows.Forms.Timer(this.components);
            this.lblCaption = new EWSoftware.ListControls.ClickableLabel();
            this.SuspendLayout();
            // 
            // pnlRows
            // 
            this.pnlRows.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.pnlRows.AutoScroll = true;
            this.pnlRows.Location = new System.Drawing.Point(0, 24);
            this.pnlRows.Name = "pnlRows";
            this.pnlRows.Size = new System.Drawing.Size(304, 112);
            this.pnlRows.TabIndex = 1;
            // 
            // btnFirst
            // 
            this.btnFirst.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnFirst.Enabled = false;
            this.btnFirst.ImageIndex = 0;
            this.btnFirst.ImageList = this.ilButtons;
            this.btnFirst.Location = new System.Drawing.Point(0, 144);
            this.btnFirst.Name = "btnFirst";
            this.btnFirst.Size = new System.Drawing.Size(22, 22);
            this.btnFirst.TabIndex = 2;
            this.btnFirst.TabStop = false;
            this.btnFirst.Click += new System.EventHandler(this.btnFirst_Click);
            // 
            // ilButtons
            // 
            this.ilButtons.ImageSize = new System.Drawing.Size(15, 11);
            this.ilButtons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilButtons.ImageStream")));
            this.ilButtons.TransparentColor = System.Drawing.Color.Lime;
            // 
            // btnPrev
            // 
            this.btnPrev.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnPrev.Enabled = false;
            this.btnPrev.ImageIndex = 1;
            this.btnPrev.ImageList = this.ilButtons;
            this.btnPrev.Location = new System.Drawing.Point(22, 144);
            this.btnPrev.Name = "btnPrev";
            this.btnPrev.Size = new System.Drawing.Size(22, 22);
            this.btnPrev.TabIndex = 3;
            this.btnPrev.TabStop = false;
            this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
            this.btnPrev.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnPrev_MouseUp);
            this.btnPrev.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnPrev_MouseDown);
            // 
            // btnNext
            // 
            this.btnNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnNext.Enabled = false;
            this.btnNext.ImageIndex = 2;
            this.btnNext.ImageList = this.ilButtons;
            this.btnNext.Location = new System.Drawing.Point(107, 144);
            this.btnNext.Name = "btnNext";
            this.btnNext.Size = new System.Drawing.Size(22, 22);
            this.btnNext.TabIndex = 5;
            this.btnNext.TabStop = false;
            this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
            this.btnNext.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnNext_MouseUp);
            this.btnNext.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnNext_MouseDown);
            // 
            // btnLast
            // 
            this.btnLast.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnLast.Enabled = false;
            this.btnLast.ImageIndex = 3;
            this.btnLast.ImageList = this.ilButtons;
            this.btnLast.Location = new System.Drawing.Point(129, 144);
            this.btnLast.Name = "btnLast";
            this.btnLast.Size = new System.Drawing.Size(22, 22);
            this.btnLast.TabIndex = 6;
            this.btnLast.TabStop = false;
            this.btnLast.Click += new System.EventHandler(this.btnLast_Click);
            // 
            // btnAdd
            // 
            this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnAdd.Enabled = false;
            this.btnAdd.ImageIndex = 4;
            this.btnAdd.ImageList = this.ilButtons;
            this.btnAdd.Location = new System.Drawing.Point(151, 144);
            this.btnAdd.Name = "btnAdd";
            this.btnAdd.Size = new System.Drawing.Size(22, 22);
            this.btnAdd.TabIndex = 7;
            this.btnAdd.TabStop = false;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            // 
            // txtRowNum
            //
            this.txtRowNum.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.txtRowNum.Location = new System.Drawing.Point(47, 144);
            this.txtRowNum.MaxLength = 7;
            this.txtRowNum.Name = "txtRowNum";
            this.txtRowNum.Size = new System.Drawing.Size(57, 22);
            this.txtRowNum.TabIndex = 4;
            this.txtRowNum.TabStop = false;
            this.txtRowNum.Text = "0";
            this.txtRowNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRowNum.Leave += new System.EventHandler(this.txtRowNum_Leave);
            // 
            // lblRowCount
            // 
            this.lblRowCount.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.lblRowCount.Location = new System.Drawing.Point(200, 144);
            this.lblRowCount.Name = "lblRowCount";
            this.lblRowCount.Size = new System.Drawing.Size(88, 22);
            this.lblRowCount.TabIndex = 9;
            this.lblRowCount.Text = "of 0";
            this.lblRowCount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // btnDelete
            // 
            this.btnDelete.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.btnDelete.CausesValidation = false;
            this.btnDelete.Enabled = false;
            this.btnDelete.ImageIndex = 5;
            this.btnDelete.ImageList = this.ilButtons;
            this.btnDelete.Location = new System.Drawing.Point(173, 144);
            this.btnDelete.Name = "btnDelete";
            this.btnDelete.Size = new System.Drawing.Size(22, 22);
            this.btnDelete.TabIndex = 8;
            this.btnDelete.TabStop = false;
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
            // 
            // tmrRepeat
            // 
            this.tmrRepeat.Tick += new System.EventHandler(this.tmrRepeat_Tick);
            // 
            // lblCaption
            //
            this.lblCaption.AutoEllipsis = true;
            this.lblCaption.BackColor = System.Drawing.SystemColors.ActiveCaption;
            this.lblCaption.Dock = System.Windows.Forms.DockStyle.Top;
            this.lblCaption.Font = new System.Drawing.Font("Microsoft Sans Serif", 7.8F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
            this.lblCaption.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
            this.lblCaption.Location = new System.Drawing.Point(0, 0);
            this.lblCaption.Name = "lblCaption";
            this.lblCaption.Size = new System.Drawing.Size(304, 23);
            this.lblCaption.TabIndex = 0;
            this.lblCaption.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // DataList
            // 
            this.Controls.Add(this.lblCaption);
            this.Controls.Add(this.btnDelete);
            this.Controls.Add(this.lblRowCount);
            this.Controls.Add(this.txtRowNum);
            this.Controls.Add(this.btnAdd);
            this.Controls.Add(this.btnLast);
            this.Controls.Add(this.btnNext);
            this.Controls.Add(this.btnPrev);
            this.Controls.Add(this.btnFirst);
            this.Controls.Add(this.pnlRows);
            this.Name = "DataList";
            this.Size = new System.Drawing.Size(304, 168);
            this.ResumeLayout(false);

        }
コード例 #2
0
        //=====================================================================

		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.components = new System.ComponentModel.Container();
            System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(DataNavigator));
            this.btnFirst = new System.Windows.Forms.Button();
            this.ilButtons = new System.Windows.Forms.ImageList(this.components);
            this.btnPrev = new System.Windows.Forms.Button();
            this.btnNext = new System.Windows.Forms.Button();
            this.btnLast = new System.Windows.Forms.Button();
            this.btnAdd = new System.Windows.Forms.Button();
            this.txtRowNum = new EWSoftware.ListControls.NumericTextBox();
            this.lblRowCount = new System.Windows.Forms.Label();
            this.btnDelete = new System.Windows.Forms.Button();
            this.tmrRepeat = new System.Windows.Forms.Timer(this.components);
            this.SuspendLayout();
            // 
            // btnFirst
            // 
            this.btnFirst.Enabled = false;
            this.btnFirst.ImageIndex = 0;
            this.btnFirst.ImageList = this.ilButtons;
            this.btnFirst.Location = new System.Drawing.Point(1, 1);
            this.btnFirst.Name = "btnFirst";
            this.btnFirst.Size = new System.Drawing.Size(22, 22);
            this.btnFirst.TabIndex = 0;
            this.btnFirst.Click += new System.EventHandler(this.btnFirst_Click);
            // 
            // ilButtons
            // 
            this.ilButtons.ImageSize = new System.Drawing.Size(15, 11);
            this.ilButtons.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("ilButtons.ImageStream")));
            this.ilButtons.TransparentColor = System.Drawing.Color.Lime;
            // 
            // btnPrev
            // 
            this.btnPrev.Enabled = false;
            this.btnPrev.ImageIndex = 1;
            this.btnPrev.ImageList = this.ilButtons;
            this.btnPrev.Location = new System.Drawing.Point(23, 1);
            this.btnPrev.Name = "btnPrev";
            this.btnPrev.Size = new System.Drawing.Size(22, 22);
            this.btnPrev.TabIndex = 1;
            this.btnPrev.Click += new System.EventHandler(this.btnPrev_Click);
            this.btnPrev.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnPrev_MouseUp);
            this.btnPrev.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnPrev_MouseDown);
            //
            // btnNext
            //
            this.btnNext.Enabled = false;
            this.btnNext.ImageIndex = 2;
            this.btnNext.ImageList = this.ilButtons;
            this.btnNext.Location = new System.Drawing.Point(108, 1);
            this.btnNext.Name = "btnNext";
            this.btnNext.Size = new System.Drawing.Size(22, 22);
            this.btnNext.TabIndex = 3;
            this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
            this.btnNext.MouseUp += new System.Windows.Forms.MouseEventHandler(this.btnNext_MouseUp);
            this.btnNext.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btnNext_MouseDown);
            // 
            // btnLast
            // 
            this.btnLast.Enabled = false;
            this.btnLast.ImageIndex = 3;
            this.btnLast.ImageList = this.ilButtons;
            this.btnLast.Location = new System.Drawing.Point(130, 1);
            this.btnLast.Name = "btnLast";
            this.btnLast.Size = new System.Drawing.Size(22, 22);
            this.btnLast.TabIndex = 4;
            this.btnLast.Click += new System.EventHandler(this.btnLast_Click);
            // 
            // btnAdd
            // 
            this.btnAdd.Enabled = false;
            this.btnAdd.ImageIndex = 4;
            this.btnAdd.ImageList = this.ilButtons;
            this.btnAdd.Location = new System.Drawing.Point(152, 1);
            this.btnAdd.Name = "btnAdd";
            this.btnAdd.Size = new System.Drawing.Size(22, 22);
            this.btnAdd.TabIndex = 5;
            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
            // 
            // txtRowNum
            // 
            this.txtRowNum.Location = new System.Drawing.Point(48, 1);
            this.txtRowNum.MaxLength = 7;
            this.txtRowNum.Name = "txtRowNum";
            this.txtRowNum.Size = new System.Drawing.Size(57, 22);
            this.txtRowNum.TabIndex = 2;
            this.txtRowNum.Text = "0";
            this.txtRowNum.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
            this.txtRowNum.Leave += new System.EventHandler(this.txtRowNum_Leave);
            //
            // lblRowCount
            // 
            this.lblRowCount.Location = new System.Drawing.Point(201, 1);
            this.lblRowCount.Name = "lblRowCount";
            this.lblRowCount.Size = new System.Drawing.Size(88, 22);
            this.lblRowCount.TabIndex = 7;
            this.lblRowCount.Text = "of 0";
            this.lblRowCount.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            // 
            // btnDelete
            // 
            this.btnDelete.CausesValidation = false;
            this.btnDelete.Enabled = false;
            this.btnDelete.ImageIndex = 5;
            this.btnDelete.ImageList = this.ilButtons;
            this.btnDelete.Location = new System.Drawing.Point(174, 1);
            this.btnDelete.Name = "btnDelete";
            this.btnDelete.Size = new System.Drawing.Size(22, 22);
            this.btnDelete.TabIndex = 6;
            this.btnDelete.Click += new System.EventHandler(this.btnDelete_Click);
            // 
            // tmrRepeat
            // 
            this.tmrRepeat.Tick += new System.EventHandler(this.tmrRepeat_Tick);
            // 
            // DataNavigator
            // 
            this.Controls.Add(this.btnDelete);
            this.Controls.Add(this.lblRowCount);
            this.Controls.Add(this.txtRowNum);
            this.Controls.Add(this.btnAdd);
            this.Controls.Add(this.btnLast);
            this.Controls.Add(this.btnNext);
            this.Controls.Add(this.btnPrev);
            this.Controls.Add(this.btnFirst);
            this.Name = "DataNavigator";
            this.Size = new System.Drawing.Size(296, 24);
            this.ResumeLayout(false);

        }