Free cookie consent management tool by TermsFeed Policy Generator

Changeset 8102 for trunk


Ignore:
Timestamp:
06/25/12 14:06:11 (12 years ago)
Author:
sforsten
Message:

#1811: added tool tip to explain that a model can be opened by double-clicking

Location:
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.Designer.cs

    r7967 r8102  
    3030      this.label1 = new System.Windows.Forms.Label();
    3131      this.cmbSamples = new System.Windows.Forms.ComboBox();
     32      this.LegendToolTip = new System.Windows.Forms.ToolTip(this.components);
    3233      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
    3334      this.SuspendLayout();
     
    3637      //
    3738      this.chart.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
    38             | System.Windows.Forms.AnchorStyles.Left)
    39             | System.Windows.Forms.AnchorStyles.Right)));
     39                  | System.Windows.Forms.AnchorStyles.Left)
     40                  | System.Windows.Forms.AnchorStyles.Right)));
    4041      chartArea1.Name = "ChartArea1";
    4142      this.chart.ChartAreas.Add(chartArea1);
     
    7374      // RegressionSolutionErrorCharacteristicsCurveView
    7475      //
    75       this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
    7676      this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
    7777      this.Controls.Add(this.label1);
     
    9191    protected System.Windows.Forms.Label label1;
    9292    protected System.Windows.Forms.ComboBox cmbSamples;
     93    private System.Windows.Forms.ToolTip LegendToolTip;
    9394  }
    9495}
  • trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionErrorCharacteristicsCurveView.cs

    r8100 r8102  
    241241    private void chart_MouseMove(object sender, MouseEventArgs e) {
    242242      HitTestResult result = chart.HitTest(e.X, e.Y);
    243       if (result.ChartElementType == ChartElementType.LegendItem)
     243      if (result.ChartElementType == ChartElementType.LegendItem) {
    244244        Cursor = Cursors.Hand;
    245       else
     245        LegendToolTip.SetToolTip(chart, "Double-click to open model");
     246      } else {
    246247        Cursor = Cursors.Default;
     248        LegendToolTip.RemoveAll();
     249      }
    247250    }
    248251  }
Note: See TracChangeset for help on using the changeset viewer.