public StyledCheckBox() { borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); FlatStyle = System.Windows.Forms.FlatStyle.Flat; base.ForeColor = System.Drawing.Color.Black; borderDrawer.RegisterFocusHoverControl(this); }
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 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 CtrlDropdownHost() { borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); horizontalOffset = 0; _BorderColor = System.Drawing.Color.LightGray; keepFocusOnTextbox = true; enterPressed = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); valueChanged = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); addNewClicked = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); editClicked = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); deleteClicked = new Oranikle.Studio.Controls.WeakEvent <System.EventArgs>(); _BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; InitializeComponent(); SetDefaultControlStyles(); base.BorderStyle = System.Windows.Forms.BorderStyle.None; textBox.LostFocus += new System.EventHandler(ChildLostFocus); pnlButton.LostFocus += new System.EventHandler(ChildLostFocus); textBox.GotFocus += new System.EventHandler(ChildGotFocus); pnlButton.GotFocus += new System.EventHandler(ChildGotFocus); textBox.EnterPressed.AddHandler(new System.EventHandler(textBox_EnterPressed)); }
public CtrlStyledMaskedTextBox() { borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; borderDrawer.RegisterFocusHoverControl(this); }
public CtrlStyledPictureBox() { borderDrawer = new Oranikle.Studio.Controls.BorderDrawer(); borderDrawer.RegisterFocusHoverControl(this); }