/// <summary>Raises the Enter event</summary> protected void RaiseEnterEvent(EditBox sender, bool wasTriggeredByUser) { // Discard events triggered programatically if these types of events haven't been // enabled if (!Parent.IsUsingNonUserEvents && !wasTriggeredByUser) return; if (Enter != null) Enter(sender, EventArgs.Empty); }
/// <summary>Adds an edit box control to the dialog</summary> public EditBox AddEditBox(int id, string text, int x, int y, int w, int h, bool isDefault) { // First create the editbox EditBox c = new EditBox(this); // Now call the add control method AddControl(c); // Set the properties of the static now c.ID = id; c.Text = (text != null) ? text : string.Empty; c.SetLocation(x, y); c.SetSize(w,h); c.isDefault = isDefault; return c; }