protected override bool OnFocusOutEvent(EventFocus evnt) { this.SelectRegion(0, 0); if (this.isPress) { try { if (this.CheckFinalValue(this.Text)) { this.Value = this.Text.Trim(); if (this.EntryValueChanged != null) { this.EntryValueChanged((object)this, new EntryCallBackEventArgs(this.Value)); } } else { this.Value = this.oldValue; return(false); } } catch { this.Value = this.oldValue; } } this.isPress = false; this.canSet = false; return(base.OnFocusOutEvent(evnt)); }
//LOST FOCUS protected override bool OnFocusOutEvent(EventFocus evnt) { if (LostFocus != null) { LostFocus(this, new EventArgs()); } return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus evt) { timeout = GLib.Timeout.Add(100, () => { titleWindow.Close(); return(false); }); return(base.OnFocusOutEvent(evt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { if (this.EntryValueCommitChanged != null) { this.EntryValueCommitChanged((object)this, new EventArgs()); } this.SelectRegion(0, 0); return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusInEvent(EventFocus evt) { if (timeout != 0) { GLib.Source.Remove(timeout); timeout = 0; } return(base.OnFocusInEvent(evt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { this.SelectRegion(0, 0); if (this.isPress) { if (!string.IsNullOrEmpty(this.Text)) { try { double num = Convert.ToDouble(this.Text); if (num == 0.0 && !this.CanZero) { this.Value = this.oldValue; return(false); } if (num != this.oldValue || num == this.oldValue && this.oldValue == 0.0) { this.Value = num; if (this.EntryValueChanged != null) { this.EntryValueChanged((object)this, new EntryIntEventArgs(num)); } } } catch { if (this.IsFouceChanged) { this.allowWhip = true; this.Text = '-'.ToString(); this.allowWhip = false; } else { this.Value = this.oldValue; } } } else if (this.IsFouceChanged) { this.allowWhip = true; this.Text = '-'.ToString(); this.allowWhip = false; } else { this.Value = this.oldValue; } } this.isPress = false; this.canSet = false; return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { if (Text != GenerateEntryText()) { StreetName = Text; FiasGuid = null; StreetTypeName = null; StreetTypeNameShort = null; StreetDistrict = null; } return(base.OnFocusOutEvent(evnt)); }
// HERZUM SPRINT 4.2: TLAB-202 /* * protected override bool OnFocusOutEvent (EventFocus evnt) * { * bool res = base.OnFocusOutEvent (evnt); * * if (cell != null && cell.Value != null && Buffer != null) * if ((cell.Value as TraceLabSDK.Component.Config.DirectoryPath)!=null){ * if (Buffer.Text != null && !Buffer.Text.Trim().Equals("") && !System.IO.Directory.Exists(Buffer.Text)) * Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute; * (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute = Buffer.Text; * cell.SetDirectory (Buffer.Text); * * } else if ((cell.Value as TraceLabSDK.Component.Config.FilePath) != null){ * if (Buffer.Text != null && !Buffer.Text.Trim().Equals("") && !System.IO.File.Exists(Buffer.Text)) * Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute; * (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute = Buffer.Text; * cell.SetFilePath (Buffer.Text); * } * * return res; * } */ // HERZUM SPRINT 4.3: TLAB-238 TLAB-243 protected override bool OnFocusOutEvent(EventFocus evnt) { bool res = base.OnFocusOutEvent(evnt); if (cell == null || Buffer == null) { return(res); } if ((cell as TraceLab.UI.GTK.PropertyGridEditors.DirectoryPathEditor) != null) { try { if (cell.Value != null) { if (Buffer.Text != null && !Buffer.Text.Trim().Equals("")) { if (!System.IO.Directory.Exists(Buffer.Text)) { Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute; } } (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute = Buffer.Text; } cell.SetDirectory(Buffer.Text); } catch {} } else if ((cell as TraceLab.UI.GTK.PropertyGridEditors.FilePathEditor) != null) { try { if (cell.Value != null) { if (Buffer.Text != null && !Buffer.Text.Trim().Equals("")) { if (!System.IO.File.Exists(Buffer.Text)) { Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute; } } (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute = Buffer.Text; } cell.SetFilePath(Buffer.Text); } catch {} } return(res); }
// END HERZUM SPRINT 4.3: TLAB-238 TLAB-243 protected override bool OnFocusInEvent(EventFocus evnt) { // Buffer.Text; bool res = base.OnFocusOutEvent(evnt); if (cell != null && cell.Value != null && Buffer != null) { if ((cell.Value as TraceLabSDK.Component.Config.DirectoryPath) != null) { Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.DirectoryPath).Absolute; } else if ((cell.Value as TraceLabSDK.Component.Config.FilePath) != null) { Buffer.Text = (cell.Value as TraceLabSDK.Component.Config.FilePath).Absolute; } } return(res); }
protected override bool OnFocusOutEvent(EventFocus evnt) { var houseRow = _completionListStore?.Cast <object[]>().FirstOrDefault(row => ((HouseDTO)row[0]).ComplexNumber == BuildingName); if (houseRow == null) { FiasGuid = null; FiasHouse = null; } else { var house = ((HouseDTO)houseRow[0]); FiasGuid = house.FiasGuid; FiasHouse = house; } Binding.FireChange(w => w.BuildingName); return(base.OnFocusOutEvent(evnt)); }
public HtmlTextBox(string name) : base(name, "text") { attributes.Add(attrPlaceholder = new AttrPlaceholder()); attributes.Add(attrDataNumber = new AttrDataNumber()); attributes.Add(attrDataMin = new AttrDataMin()); attributes.Add(attrDataMax = new AttrDataMax()); attributes.Add(attrDataStep = new AttrDataStep()); attributes.Add(attrDataPrecision = new AttrDataPrecision()); events.Add(eventChange = new EventChange()); events.Add(eventFocus = new EventFocus()); events.Add(eventBlur = new EventBlur()); }
protected override bool OnFocusOutEvent(EventFocus evnt) { Destroy(); return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusInEvent(EventFocus evnt) { RequestResetCaretBlink(); return(base.OnFocusInEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { alreadyHaveFocus = false; return(base.OnFocusOutEvent(evnt)); }
/// <summary> /// Delegate called on loosing focus event. /// </summary> /// <param name="evnt"></param> /// <returns></returns> protected override bool OnFocusOutEvent(EventFocus evnt) { Unfocus(); return(false); }
protected override bool OnFocusOutEvent(EventFocus evnt) { StopCaretThread(); return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { UpdateComboEntries(comboFind.ActiveText); return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus e) { NotifyCompletionContextChanged(); return(base.OnFocusOutEvent(e)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { CloseDialog(); return(base.OnFocusOutEvent(evnt)); }
protected override bool OnFocusInEvent(EventFocus evnt) { ((DefaultWorkbench)IdeApp.Workbench.RootWindow).SetActiveWidget(Focus); return(base.OnFocusInEvent(evnt)); }
protected override bool OnFocusOutEvent(EventFocus evnt) { this.isPress = false; return(base.OnFocusOutEvent(evnt)); }