コード例 #1
0
 public StyledCheckBox()
 {
     borderDrawer   = new Oranikle.Studio.Controls.BorderDrawer();
     FlatStyle      = System.Windows.Forms.FlatStyle.Flat;
     base.ForeColor = System.Drawing.Color.Black;
     borderDrawer.RegisterFocusHoverControl(this);
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 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));
 }
コード例 #5
0
 public CtrlStyledMaskedTextBox()
 {
     borderDrawer = new Oranikle.Studio.Controls.BorderDrawer();
     BorderStyle  = System.Windows.Forms.BorderStyle.FixedSingle;
     borderDrawer.RegisterFocusHoverControl(this);
 }
コード例 #6
0
 public CtrlStyledPictureBox()
 {
     borderDrawer = new Oranikle.Studio.Controls.BorderDrawer();
     borderDrawer.RegisterFocusHoverControl(this);
 }