public FunctionalDataGridView() { //if (!DesignMode) LP.Validate(); InitializeComponent(); this.ConvertEnterToTab = true; refBox = new TextBox(); panel = new Panel(); spacePanel = new Panel(); hScrollBar = new HScrollBar(); this.BackgroundColor = System.Drawing.SystemColors.Control; 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; refBox.TabStop = false; hScrollBar.TabStop = false; summaryControl.TabStop = false; }
public GradientPanel() { //if (!DesignMode) LP.Validate(); _startColor = System.Drawing.Color.Black; _endColor = System.Drawing.Color.White; _gradientMode = System.Drawing.Drawing2D.LinearGradientMode.BackwardDiagonal; }
public CustomTextControl() { //if (!DesignMode) LP.Validate(); DecimalFormat = "N2"; displayList = new object[0]; this.TextChanged += new EventHandler(CustomTextControl_TextChanged); SetChildsVisibilty(); }
public StyledTextBox() { //if (!DesignMode) LP.Validate(); _ConvertEnterToTab = true; borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); enterPressed = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; ShortcutsEnabled = true; borderDrawer.RegisterFocusHoverControl(this); }
public ReadOnlyTextBox() { //InitializeComponent(); //if (!DesignMode) LP.Validate(); format = new StringFormat(StringFormatFlags.NoWrap | StringFormatFlags.FitBlackBox | StringFormatFlags.MeasureTrailingSpaces); format.LineAlignment = StringAlignment.Center; this.Height = 10; this.Width = 10; this.Padding = new Padding(2); }
public StyledComboBox() { //if (!DesignMode) LP.Validate(); borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); FlatStyle = System.Windows.Forms.FlatStyle.Flat; DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable; _separatorStyle = System.Drawing.Drawing2D.DashStyle.Solid; _separatorColor = System.Drawing.Color.FromArgb(90, 90, 90); _separatorMargin = 1; _separatorWidth = 1; _autoAdjustItemHeight = false; borderDrawer.RegisterFocusHoverControl(this); }
public CtrlDropdownHostList() { //if (!DesignMode) LP.Validate(); _ItemSourceProperty = "Id"; _ItemSource = CtrlDropdownHostList.RelatedItemSource.DataGridViewDataBoundObject;//DataBindingsBindingSource; InitializeComponent(); Disposed += new EventHandler(CtrlDropdownHostList_Disposed); textBox.TextChanged += new EventHandler(textBox_TextChanged); textBox.KeyPress += new KeyPressEventHandler(textBox_KeyPress); this.Leave += new EventHandler(CtrlDropdownHostList_Leave); Displayer = this; textBox.ConvertEnterToTab = false; if (!DesignMode) { Subform = this.MySubform; } }
public StyledButton() { //if (!DesignMode) LP.Validate(); _BorderColor = _BttnBorderColor; _BackColor2 = _BttnBackColor2; _BackFillMode = _BttnBackFillMode; base.ForeColor = _BttnTextColor; base.BackColor = _BttnBackColor1; _BackColor2 = _BttnBackColor2; _BorderColor = _BttnBorderColor; _BackFillMode = _BttnBackFillMode; base.Font = new System.Drawing.Font("Arial", 9.0F); base.UseVisualStyleBackColor = false; base.FlatStyle = System.Windows.Forms.FlatStyle.Flat; base.ImageAlign = ContentAlignment.MiddleLeft; Invalidate(); }
public CtrlTip() { //if (!DesignMode) LP.Validate(); InitializeComponent(); }
public RichTextBoxEx() { //if (!DesignMode) LP.Validate(); DetectUrls = false; }
public StyledDataGridView() { //if (!DesignMode) LP.Validate(); showGridBorder = true; HeightOfRealAndNewRows = -1; RowDividerIndex = new System.Collections.Generic.List <int>(); _CustomEnabled = true; _CustomActive = true; _EditOnSingleClick = true; SuspendLayout(); AllowUserToResizeRows = false; RowHeadersWidthSizeMode = System.Windows.Forms.DataGridViewRowHeadersWidthSizeMode.DisableResizing; AutoSizeRowsMode = System.Windows.Forms.DataGridViewAutoSizeRowsMode.DisplayedCells; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(228, 241, 249); dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; DefaultCellStyle.SelectionBackColor = System.Drawing.SystemColors.Highlight; DefaultCellStyle.SelectionForeColor = System.Drawing.SystemColors.HighlightText; CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.None; AutoGenerateColumns = false; BackgroundColor = System.Drawing.Color.FromArgb(200, 226, 243); BorderStyle = System.Windows.Forms.BorderStyle.None; ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(136, 198, 237); dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 0); dataGridViewCellStyle2.ForeColor = System.Drawing.Color.FromArgb(64, 64, 64); dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True; ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; ColumnHeadersHeight = 35; ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.DisableResizing; System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle3 = new System.Windows.Forms.DataGridViewCellStyle(); dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle3.BackColor = System.Drawing.Color.FromArgb(136, 198, 237); dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, 136); dataGridViewCellStyle3.ForeColor = System.Drawing.Color.FromArgb(64, 64, 64); dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.True; EnableHeadersVisualStyles = true; RowHeadersDefaultCellStyle = dataGridViewCellStyle3; RowHeadersWidth = 25; TabIndex = 4; GridColor = System.Drawing.SystemColors.Window; DoubleBuffered = true; CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(StyledDataGridView_CellDoubleClick); CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(StyledDataGridView_CellClick); CellEnter += new System.Windows.Forms.DataGridViewCellEventHandler(StyledDataGridView_CellEnter); this.EditingControlShowing += new DataGridViewEditingControlShowingEventHandler(StyledDataGridView_EditingControlShowing); ResumeLayout(); }