Exemplo n.º 1
0
 public void ShowSuperTip(Keyword keyword, Point location)
 {
     if (keyword != null) {
         ScriptToolTipController.ShowHint(keyword.BuildSupertTip(autoListBox1.imgAutoList), location);
     }
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 public void ShowAutoListTip(Keyword keyword, int delay)
 {
     if (ShowSuperTipOnMouseMove) { ShoulRestoreALState = true; ShowSuperTipOnMouseMove = false; }
     ShowSuperTip(keyword);
 }
Exemplo n.º 4
0
 public void ShowSuperTip(Keyword keyword, Point location)
 {
     if (keyword != null) {
         this.BeginInvoke(new Callback(delegate() {
             ScriptToolTipController.ShowHint(keyword.BuildSupertTip(autoListBox1.imgAutoList), location);
         }));
     }
 }
Exemplo n.º 5
0
 /// <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;
 }
Exemplo n.º 6
0
 /// <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;
 }