public void ShowSuperTip(Keyword keyword, Point location) { if (keyword != null) { ScriptToolTipController.ShowHint(keyword.BuildSupertTip(autoListBox1.imgAutoList), location); } }
public void ShowSuperTip(Keyword keyword) { var pos = Cursor.Position; if (autoListBox1.Visible) { var modx = autoListBox1.Location.X + autoListBox1.Width + 2; var mody = autoListBox1.Location.Y - 24; pos = scriptBox1.PointToScreen(new Point(modx, mody)); } ShowSuperTip(keyword, pos); }
public void ShowAutoListTip(Keyword keyword, int delay) { if (ShowSuperTipOnMouseMove) { ShoulRestoreALState = true; ShowSuperTipOnMouseMove = false; } ShowSuperTip(keyword); }
public void ShowSuperTip(Keyword keyword, Point location) { if (keyword != null) { this.BeginInvoke(new Callback(delegate() { ScriptToolTipController.ShowHint(keyword.BuildSupertTip(autoListBox1.imgAutoList), location); })); } }
/// <summary> /// Gets the keyword. /// </summary> /// <returns></returns> public Keyword GetKeyword() { var key = new Keyword(); if (Title != null) { key.Title = Title.Title; key.Description = Title.Description; } if (Config != null) { key.AutoListType = Config.AutoList; key.CaretPosition = Config.CarretPosition; key.ImageIndex = Config.ImageIndex; key.InputText = Config.InputText; } if (Params != null) { var oparams = from param in Params orderby param.Index ascending select param; oparams.ToList().ForEach(p => key.Params += string.Format("{0}: {1}{2}", p.Name, p.Description, Environment.NewLine)); } if (Examples != null) { key.Examples = Examples.GetFormatedExamples(); } return key; }
/// <summary> /// Initializes a new instance of the <see cref="SelectedKeyChanged"/> class. /// </summary> /// <param name="key">The key.</param> public SelectedKeyChanged(Keyword key) { this.SelectedKeyword = key; }