Example #1
0
 void TypeBlock_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e)
 {
     if (e.KeyChar == ' ')
     {
         e.Handled = true;
         NameBlock.SetCursorToTheBeginning();
     }
 }
Example #2
0
        public override void SetDefaultFocus()
        {
            if (!string.IsNullOrEmpty(this.Name))
            {
                Parameters.SetCursorToTheBeginning();
                return;
            }

            if (this.TypeBlock != null && !string.IsNullOrEmpty(this.TypeBlock.Text))
            {
                NameBlock.SetCursorToTheBeginning();
                return;
            }

            Modifiers.SetCursorToTheEnd();
        }
Example #3
0
 public override Control DefaultFocusableControl()
 {
     return(NameBlock.DefaultFocusableControl());
 }
Example #4
0
 public override GuiLabs.Canvas.Controls.Control DefaultFocusableControl()
 {
     return(NameBlock.DefaultFocusableControl());
 }