Ejemplo n.º 1
0
 public SinglelineTextBox(IFocusChanged focusChanged)
     : base(focusChanged)
 {
     this.KeyDown += new KeyEventHandler(SinglelineTextBox_OnKeyDown);
 }
Ejemplo n.º 2
0
 public GridTextBox(IFocusChanged callback)
 {
     m_callback = callback;
     this.KeyDown += new KeyEventHandler(GridTextBox_OnKeyDown);
     this.TextChanged += new EventHandler(OnTextChanged);
 }
Ejemplo n.º 3
0
 public MultilineTextBox(IFocusChanged callback)
     : base(callback)
 {
     base.Multiline = true;
     base.AcceptsReturn = true;
     base.WordWrap = true;
     base.enableAutoComplete = false;
     using (Graphics g = Graphics.FromHwnd(this.Handle))
     {
         heightFactor = g.MeasureString("qA",base.Font).Height;
         float fontHeight = base.Font.Height;
         fuzzyHeight = base.Size.Height - heightFactor;
     }
     this.KeyDown += new KeyEventHandler(MultilineTextBox_OnKeyDown);
 }
Ejemplo n.º 4
0
 public GridComboBox(IFocusChanged focus,string[] items)
 {
     m_callback = focus;
     this.DropDownStyle = ComboBoxStyle.DropDownList;
     this.KeyDown += new KeyEventHandler(GridTextBox_OnKeyDown);
     Items.Add("");
     Items.AddRange(items);
 }