- Timestamp:
- 11/05/15 13:07:08 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Visualization/HeuristicLab.Visualization/3.3/ChartMode.cs
r13115 r13122 45 45 } 46 46 47 public virtual void HandleOnKeyDown(object sender, KeyEventArgs e) { } 47 public void Select() { chartControl.Mode = this; } 48 public void Deselect() { chartControl.Mode = null; } 49 50 public virtual void HandleOnKeyDown(object sender, KeyEventArgs e) { 51 switch (e.KeyCode) { 52 case Keys.Escape: 53 Deselect(); 54 break; 55 } 56 } 57 48 58 public virtual void HandleOnKeyUp(object sender, KeyEventArgs e) { } 49 59 public virtual void HandleOnMouseClick(object sender, MouseEventArgs e) { } 50 60 public virtual void HandleOnMouseDoubleClick(object sender, MouseEventArgs e) { } 51 public virtual void HandleOnMouseWheel(object sender, MouseEventArgs e) { }52 61 53 62 public virtual void HandleOnMouseDown(object sender, MouseEventArgs e) { … … 62 71 } 63 72 73 public virtual void HandleOnMouseWheel(object sender, MouseEventArgs e) { } 64 74 public virtual void HandleOnMouseEnter(object sender, EventArgs e) { } 65 75 public virtual void HandleOnMouseLeave(object sender, EventArgs e) { }
Note: See TracChangeset
for help on using the changeset viewer.