コード例 #1
0
        private void initGrfQue()
        {
            grfQue          = new C1FlexGrid();
            grfQue.Font     = fEdit;
            grfQue.Dock     = System.Windows.Forms.DockStyle.Fill;
            grfQue.Location = new System.Drawing.Point(0, 0);

            //FilterRow fr = new FilterRow(grfExpn);

            grfQue.DoubleClick += GrfQue_DoubleClick;

            //menuGw.MenuItems.Add("&แก้ไข รายการเบิก", new EventHandler(ContextMenu_edit));
            //menuGw.MenuItems.Add("&แก้ไข", new EventHandler(ContextMenu_Gw_Edit));
            //menuGw.MenuItems.Add("&ยกเลิก", new EventHandler(ContextMenu_Gw_Cancel));

            pnQue.Controls.Add(grfQue);
            grfQue.Rows[0].Visible = false;
            grfQue.Cols[0].Visible = false;
            theme1.SetTheme(grfQue, bc.iniC.themeApp);
        }
コード例 #2
0
ファイル: FrmMiscView.cs プロジェクト: eploentham/clinic_ivf
        private void setControlComponent()
        {
            int  gapLine = 10, gapX = 20;
            Size size = new Size();
            int  scrW = Screen.PrimaryScreen.Bounds.Width;

            lbCboYear          = new Label();
            lbCboYear.Text     = "...";
            lbCboYear.Font     = fEdit;
            lbCboYear.Location = new System.Drawing.Point(gapX, 5);
            lbCboYear.AutoSize = true;
            lbCboYear.Name     = "lbCboYear";

            cboYear = new C1.Win.C1Input.C1ComboBox();
            cboYear.AllowSpinLoop      = false;
            cboYear.AutoCompleteMode   = System.Windows.Forms.AutoCompleteMode.Suggest;
            cboYear.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems;
            cboYear.BorderStyle        = System.Windows.Forms.BorderStyle.FixedSingle;
            cboYear.DisabledForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(152)))), ((int)(((byte)(152)))), ((int)(((byte)(152)))));
            cboYear.Font               = fEdit;
            cboYear.GapHeight          = 0;
            cboYear.ImagePadding       = new System.Windows.Forms.Padding(0);
            cboYear.ItemsDisplayMember = "";
            cboYear.ItemsValueMember   = "";
            size             = ic.MeasureString(lbCboYear);
            cboYear.Location = new System.Drawing.Point(lbCboYear.Location.X + size.Width + 5, lbCboYear.Location.Y);
            cboYear.Name     = "cboAllergyDesc";
            cboYear.Size     = new System.Drawing.Size(331, 20);
            cboYear.Style.DropDownBackColor   = System.Drawing.Color.FromArgb(((int)(((byte)(240)))), ((int)(((byte)(240)))), ((int)(((byte)(240)))));
            cboYear.Style.DropDownBorderColor = System.Drawing.Color.Gainsboro;
            cboYear.Style.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(222)));
            cboYear.TabIndex   = 698;
            cboYear.Tag        = null;
            theme1.SetTheme(this.cboYear, "(default)");
            cboYear.VisualStyleBaseStyle = C1.Win.C1Input.VisualStyle.Office2010Blue;
        }